Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > AAR

Reply
 
Thread Tools Display Modes
Old January 2, 2010, 18:14   #1
TJS
Swordsman
 
Join Date: May 2008
Posts: 473
TJS is on a distinguished road
Dead to nexus breath (spolier question)

Well I died again.

Thought I'd be alright fighting a dracolisk with fire immunity and rNexus with > 300 HP. Dead with one nexus breath.

How exactly is the damage from breaths worked out? I looked in constants.h and saw BR_NEXU_MAX = 400 and BR_NEXU_DIVISOR = 6 and assumed that meant the maximum nexus breath is 400 and if you have the resist you divide it by 6. Obviously that didn't work out too well.
TJS is offline   Reply With Quote
Old January 2, 2010, 18:29   #2
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 38
Posts: 777
pav is on a distinguished road
Send a message via ICQ to pav
[bad bad bad]
__________________
See the elves and everything! http://angband.oook.cz
pav is offline   Reply With Quote
Old January 2, 2010, 18:40   #3
TJS
Swordsman
 
Join Date: May 2008
Posts: 473
TJS is on a distinguished road
Quote:
Originally Posted by pav View Post
It means HP / 6 capped 400. Ie. for Dracolisk ~3000 / 6 = 500 unresisted

RES_NEXU_ADJ(dam, dam_aspect) (((dam) * 6) / (damcalc(1, 6, dam_aspect) + 6))

which means 3000 / 7 = 428 worst case scenario when resisted (best would be 250)
Thanks, but I'm still a little confused.

What does capped at 400 mean if the max damage is 500? Also why do you divide by 7 for the resisted damage? Do you just add 1 to the number you divide for non-resisted damage?

Am I right in saying that in this case the resist only reduced the possible maximum damage from 500 to 428? It doesn't seem like the resist makes all that much difference really (apart from the secondary effect).

How do hobbit mages ever fight monsters that do high breath damage?
TJS is offline   Reply With Quote
Old January 2, 2010, 18:42   #4
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 38
Posts: 777
pav is on a distinguished road
Send a message via ICQ to pav
[delete bad advise]

Hope I'm reading the source right... I'm not
__________________
See the elves and everything! http://angband.oook.cz
pav is offline   Reply With Quote
Old January 2, 2010, 19:00   #5
Tobias
Adept
 
Tobias's Avatar
 
Join Date: Dec 2009
Posts: 172
Tobias is on a distinguished road
BR_NEXU_DIVISOR = 6 means that a nexus breather does 1/6 of its hp in damage. Or 400 as a maximum.
Resistance is defined in RES_NEXU_ADJ which means that with resistance you recieve 6/(1d6+6) of the damage (about half to full).

So the Dracolisk does 200 to 342 nexus damage to someone who resists. You should have had 50 HP more. The Dracolisk's fire breath also does 342 damage through a single resist.
Tobias is offline   Reply With Quote
Old January 2, 2010, 19:00   #6
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
(1) Divide hp by some number to get breath
(2) If value > max, reduce value to max
(3) Apply resistance

However, with poor luck resistance for high elements only reduces 400 -> 400 * 6 / 7. High resists are more about avoiding the side effects than about reducing the damage.
PowerDiver is offline   Reply With Quote
Old January 4, 2010, 13:43   #7
TJS
Swordsman
 
Join Date: May 2008
Posts: 473
TJS is on a distinguished road
Thanks for the information. So in a worse case scenario (which is what you plan for) the resist only takes off 1/7 damage, which seems a bit miserly. I guess the harshness is what makes Angband the game it is.

Another question, does the breath damage come from current monster HP or the maximum HP?
TJS is offline   Reply With Quote
Old January 4, 2010, 14:47   #8
Tobias
Adept
 
Tobias's Avatar
 
Join Date: Dec 2009
Posts: 172
Tobias is on a distinguished road
Quote:
Originally Posted by TJS View Post
Thanks for the information. So in a worse case scenario (which is what you plan for) the resist only takes off 1/7 damage, which seems a bit miserly. I guess the harshness is what makes Angband the game it is.

Another question, does the breath damage come from current monster HP or the maximum HP?
Maximum. If you get the life-rating (after 304 / monster_level +4 kills) (or ca 2-5 kills for uniques) in the monster recall you will also get the breath damage displayed.
Tobias is offline   Reply With Quote
Old January 4, 2010, 16:14   #9
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,443
Derakon is on a distinguished road
Quote:
Originally Posted by Tobias View Post
Maximum. If you get the life-rating (after 304 / monster_level +4 kills) (or ca 2-5 kills for uniques) in the monster recall you will also get the breath damage displayed.
Are you sure about that? I could've sworn that I've seen almost-dead ancient dragons try to breath on me to no effect, which leads me to believe that it's current HP that's used to determine breath damage.
Derakon is offline   Reply With Quote
Old January 4, 2010, 16:19   #10
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 38
Posts: 1,516
d_m is on a distinguished road
Source code says it uses current HP for breathing:

Code:
(m_ptr->hp / BR_FIRE_DIVISOR) > BR_FIRE_MAX ? BR_FIRE_MAX : (m_ptr->hp / BR_FIRE_DIVISOR)
__________________
linux->xterm->screen->pmacs
d_m 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
Feature request: breath/spell damage in monster memory Marble Dice Vanilla 7 October 21, 2009 07:17
When Nexus Works For You ElectricPaladin AAR 0 May 3, 2009 08:49
Black Breath in Oangband jbissell Variants 1 January 21, 2009 06:37
nexus scramble? orbs Vanilla 2 May 31, 2008 05:53
learning not to underestimate monster breath will_asher AAR 5 October 17, 2007 19:16


All times are GMT +1. The time now is 06:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.