Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old September 30, 2012, 03:18   #21
fizzix
Veteran
 
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 2,298
fizzix is on a distinguished road
So I've finally gotten around to implementing this (in v4 first as per Magnate's suggestion.)

I split the implementation into 3 separate commits. The first commit is essentially all the changes in the melee2.c that bron posted (fixing the GF_ACID/which_element error). I tested it out and it seems to work properly.

The second commit makes certain attacks not deal any physical damage when they are elemental.

Code:
/* Some attacks do no physical damage */
	if (method == RBM_TOUCH  ||
		method == RBM_ENGULF ||
		method == RBM_DROOL  ||
		method == RBM_SPIT   ||
		method == RBM_CRAWL  ||
		method == RBM_GAZE   ||
		method == RBM_WAIL   ||
		method == RBM_SPORE  ||
		method == RBM_BEG    ||
		method == RBM_INSULT ||
		method == RBM_MOAN){
		physical_dam = 0;
	}
I'm pretty sure the only ones I really needed were touch, engulf, and spore, but I included the others for completeness. After all someone *might* want to introduce a monster that begs to burn.

The third commit gives the player an AC bonus of 50 for the purpose of calculating the physical damage (only for elemental attacks). The bonus of 50 should give roughly a 1/8 reduction in damage, which isn't really all that much. I wasn't sure about the usefulness of this one, it felt right though. That's why I sequestered it into it's own commit.
fizzix is offline   Reply With Quote
Old September 30, 2012, 05:17   #22
jujuben
Apprentice
 
Join Date: Jan 2012
Posts: 52
jujuben is on a distinguished road
Insult to burn could be fun...
__________________
A soft answer turneth away wrath. Once wrath is looking the other way, shoot it in the head.
--The Seven Habits of Highly Effective Pirates
jujuben is offline   Reply With Quote
Old September 30, 2012, 14:34   #23
fizzix
Veteran
 
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 2,298
fizzix is on a distinguished road
Quote:
Originally Posted by jujuben View Post
Insult to burn could be fun...
Code:
Boldor the yeek moons you!
You have received a sick burn!
You drink the pint of ale
You are no longer aware that all the yeeks are laughing at you.
fizzix is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Damage bonuses that don't provide extra damage? Egavactip v4 2 May 27, 2012 01:51
It did how much damage? Raggy Vanilla 27 June 26, 2011 21:12
Why AC instead of physical resistance? pampl Idle chatter 7 February 19, 2011 03:54
Monster susceptibilities and immunities CunningGabe Vanilla 11 February 2, 2011 16:40
Randart immunities TJS Vanilla 4 June 25, 2010 18:06


All times are GMT +1. The time now is 12:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.