OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24f5dde
)
[Fix] #41192 魔道具能力向上がないのに魔道具の吸収量が減衰していたのを修正 / Resolved the issue that the quantity...
author
Hourier
<hourier@users.sourceforge.jp>
Fri, 22 Jan 2021 11:17:28 +0000
(20:17 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Fri, 22 Jan 2021 11:17:28 +0000
(20:17 +0900)
src/monster-attack/monster-eating.c
patch
|
blob
|
history
diff --git
a/src/monster-attack/monster-eating.c
b/src/monster-attack/monster-eating.c
index
c78365d
..
9f72f70
100644
(file)
--- a/
src/monster-attack/monster-eating.c
+++ b/
src/monster-attack/monster-eating.c
@@
-210,7
+210,7
@@
bool process_un_power(player_type *target_ptr, monap_type *monap_ptr)
object_kind *kind_ptr = &k_info[monap_ptr->o_ptr->k_idx];
PARAMETER_VALUE pval = kind_ptr->pval;
DEPTH level = monap_ptr->rlev;
- HIT_POINT drain =
pval * level / 400 + pval * randint1(level) / 400
;
+ HIT_POINT drain =
is_magic_mastery ? pval * level / 400 + pval * randint1(level) / 400 : pval
;
if (drain <= 0)
return FALSE;