OSDN Git Service

[Fix] #40514 calc_nuke_damage_rate() のリファクタリングミス修正. / Fixed refactoring mistake in...
authordeskull <deskull@users.sourceforge.jp>
Sun, 4 Oct 2020 10:42:53 +0000 (19:42 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 4 Oct 2020 10:42:53 +0000 (19:42 +0900)
src/effect/effect-player.c
src/player/player-status-resist.c

index 45c5a25..adc62d3 100644 (file)
@@ -26,7 +26,8 @@
 #include "target/projection-path-calculator.h"
 #include "view/display-messages.h"
 
-/*! 盲目時の代替メッセージ // TODO: 各種の盲目時メッセージからまとめ上げて統合 */
+/*! 盲目時の代替メッセージ // TODO: 各種の盲目時メッセージからまとめ上げて統合
+*/
 concptr blind_spell_effect_messages[MAX_GF] =
 {
     "", // GF_NONE = 0,
index 5723550..a9585b4 100644 (file)
@@ -170,11 +170,12 @@ PERCENTAGE calc_pois_damage_rate(player_type *creature_ptr)
 
 PERCENTAGE calc_nuke_damage_rate(player_type *creature_ptr)
 {
+
     PERCENTAGE per = 100;
     if (creature_ptr->resist_pois)
-        per = (per + 2) / 3;
+        per = (2 * per + 2) / 5;
     if (is_oppose_pois(creature_ptr))
-        per = (per + 2) / 3;
+        per = (2 * per + 2) / 5;
 
     return per;
 }