Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upFixes bleed being applied when damage has been mitigated. Had been using... #6460
Conversation
KA101
reviewed
Mar 6, 2014
| if (hp_cur[hp_head] < 0) { | ||
| lifetime_stats()->damage_taken+=hp_cur[hp_head]; | ||
| hp_cur[hp_head] = 0; | ||
| } | ||
| */ |
This comment has been minimized.
This comment has been minimized.
KA101
Mar 6, 2014
Contributor
Two issues here.
-
It's possible, though not certain, that the head's supposed to take double damage. That's not unknown in location-based HP. Worth discussing that, IMO.
-
the if-statement there is so you don't take overkill damage on a fatal hit. hp_head <= 0 => Game Over, press spacebar. The game looks out for that enough to make me think it's worth keeping around.
This comment has been minimized.
This comment has been minimized.
frycarson
Mar 6, 2014
Author
Contributor
I'll revert that bit of the change for now then until we determine whether double damage is intended or not. The if statement is in the other spot in the code where the damage is initially applied, and if double damage is the intent I think that should be moved to where the rest of the damage is applied to make the intent clear (player::apply_damage() as opposed to player::deal_damage()). I could probably also eliminate many of the other comments.
KA101
assigned
KA101
and unassigned
KA101
Mar 6, 2014
This comment has been minimized.
This comment has been minimized.
|
OK, pending a resolution to the head-damage question, then. |
KA101
added
the
Suggestion (Discuss)
label
Mar 6, 2014
This comment has been minimized.
This comment has been minimized.
|
I'd really like this to get put into master -- I'd say leave the 2x head damage thing and maybe open a different PR to either remove it or change how that works so it (among other things) shows correct damage in the game log. |
This comment has been minimized.
This comment has been minimized.
|
Concur. |
KA101
self-assigned this
Mar 7, 2014
KA101
merged commit 3599a57
into
CleverRaven:master
Mar 7, 2014
1 check passed
This comment has been minimized.
This comment has been minimized.
|
Did you strip the commenting to readd the 2x head damage, or do I need On 3/6/14, KA101 notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
|
I've had to clean up enough PRs recently that right now I don't really remember. Go ahead and PR it just in case. |
frycarson commentedMar 5, 2014
... damage before armor or block had been taken into account. Issue #6432