Dungeon Crawl Stone Soup Tracker - DCSS
|
Viewing Issue Advanced Details |
|
ID:
|
Category:
|
Severity:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
7051 |
Bug Report |
minor |
always |
2013-05-15 18:49 |
2013-05-20 18:52 |
|
Reporter:
|
CommanderC |
Local or Remote:
|
Both |
|
Assigned To:
|
Kate |
Operating System:
|
All |
|
Priority:
|
normal |
Console or Tiles:
|
Both |
|
Status:
|
resolved |
Product Branch:
|
0.13 ancient branch |
|
Product Version:
|
|
Resolution:
|
done |
|
Projection:
|
none |
|
|
|
ETA:
|
none |
Fixed in Branch:
|
0.13 ancient branch |
|
|
Summary:
|
0007051: Vampiric drain can't heal your last hit point. |
Description:
|
In spl-damage.cc:vampiric_drain hp_gain is divided by two without taking into account the remainder. The patch below replaces that division with div_rand_round. |
Steps To Reproduce:
|
|
Additional Information:
|
|
System Description:
|
|
Relationships | |
Attached Files:
|
0001-Let-vampiric-drain-heal-your-last-hit-point.patch [^] (787 bytes) 2013-05-15 18:49 [Show Content] [Hide Content]From 19a5ddd5512ccd1a4651ab51393a34934f75eeac Mon Sep 17 00:00:00 2001
From: Policarpo Caballero <policarpocp@gmail.com>
Date: Wed, 15 May 2013 18:46:22 +0200
Subject: [PATCH] Let vampiric drain heal your last hit point
---
crawl-ref/source/spl-damage.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crawl-ref/source/spl-damage.cc b/crawl-ref/source/spl-damage.cc
index 1ec387e..a77fff8 100644
--- a/crawl-ref/source/spl-damage.cc
+++ b/crawl-ref/source/spl-damage.cc
@@ -974,7 +974,7 @@ spret_type vampiric_drain(int pow, monster* mons, bool fail)
if (mons->alive())
print_wounds(mons);
- hp_gain /= 2;
+ hp_gain = div_rand_round(hp_gain, 2);
if (hp_gain && !mons_was_summoned && !you.duration[DUR_DEATHS_DOOR])
{
--
1.8.2.3
|
|
Issue History |
Date Modified |
Username |
Field |
Change |
2013-05-15 18:49 |
CommanderC |
New Issue |
|
2013-05-15 18:49 |
CommanderC |
File Added: 0001-Let-vampiric-drain-heal-your-last-hit-point.patch |
|
2013-05-20 18:52 |
Kate |
Note Added: 0022714 |
|
2013-05-20 18:52 |
Kate |
Status |
new => resolved |
2013-05-20 18:52 |
Kate |
Fixed in Branch |
=> 0.13 development branch |
2013-05-20 18:52 |
Kate |
Resolution |
open => done |
2013-05-20 18:52 |
Kate |
Assigned To |
=> Kate |