OSDN Git Service

[Fix] #37285 ここまでの関数名差異を修正. / Fix difference of functions name.
authordeskull <deskull@users.sourceforge.jp>
Thu, 12 Nov 2020 03:44:12 +0000 (12:44 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 12 Nov 2020 03:44:12 +0000 (12:44 +0900)
src/monster-attack/monster-attack-switcher.c
src/player/player-status.c
src/spell-kind/spells-enchant.c

index 6be8e3a..3c8c30c 100644 (file)
@@ -165,7 +165,7 @@ static void calc_blow_drain_exp(player_type *target_ptr, monap_type *monap_ptr,
     if (has_hold_exp(target_ptr))
         damage_ratio -= 75;
 
-    if (is_resist_neth(target_ptr))
+    if (has_resist_neth(target_ptr))
         damage_ratio -= 75;
 
     monap_ptr->damage = monap_ptr->damage * damage_ratio / 1000;
@@ -188,7 +188,7 @@ static void calc_blow_time(player_type *target_ptr, monap_type *monap_ptr)
         return;
 
     process_monster_attack_time(target_ptr, monap_ptr);
-    if (is_resist_time(target_ptr))
+    if (has_resist_time(target_ptr))
         monap_ptr->damage = monap_ptr->damage * (randint1(4) + 4) / 9;
 
     monap_ptr->get_damage += take_hit(target_ptr, DAMAGE_ATTACK, monap_ptr->damage, monap_ptr->ddesc, -1);
index 7780c8c..bf2413b 100644 (file)
@@ -290,7 +290,6 @@ WEIGHT calc_inventory_weight(player_type *creature_ptr)
     WEIGHT weight = 0;
 
     object_type *o_ptr;
-    BIT_FLAGS flgs[TR_FLAG_SIZE];
     for (inventory_slot_type i = 0; i < INVEN_TOTAL; i++) {
         o_ptr = &creature_ptr->inventory_list[i];
         if (!o_ptr->k_idx)
index 5305783..fcf9f6f 100644 (file)
@@ -137,7 +137,6 @@ bool mundane_spell(player_type *owner_ptr, bool only_equip)
     POSITION ix = o_ptr->ix;
     OBJECT_IDX next_o_idx = o_ptr->next_o_idx;
     byte marked = o_ptr->marked;
-    WEIGHT weight = o_ptr->number * o_ptr->weight;
     u16b inscription = o_ptr->inscription;
 
     object_prep(owner_ptr, o_ptr, o_ptr->k_idx);