OSDN Git Service

[Refactor] #40514 lite判定整理. / Clear lite judgment.
authordeskull <deskull@users.sourceforge.jp>
Wed, 12 Aug 2020 07:46:19 +0000 (16:46 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 12 Aug 2020 07:46:19 +0000 (16:46 +0900)
src/player/player-personality.c
src/player/player-status-flags.c
src/player/player-status.c

index f68496e..e2fb271 100644 (file)
@@ -144,11 +144,6 @@ const player_personality *ap_ptr;
 
 void set_personality_flags(player_type *creature_ptr)
 {
-
     if (creature_ptr->pseikaku == PERSONALITY_LUCKY)
         creature_ptr->muta3 |= MUT3_GOOD_LUCK;
-    if (creature_ptr->pseikaku == PERSONALITY_MUNCHKIN) {
-        if (creature_ptr->pclass != CLASS_NINJA)
-            creature_ptr->lite = TRUE;
-    }
 }
index 927491f..23a6d2f 100644 (file)
@@ -2116,7 +2116,11 @@ void have_lite(player_type *creature_ptr)
     if (creature_ptr->pclass == CLASS_NINJA)
         return;
 
-    if (creature_ptr->mimic_form == MIMIC_VAMPIRE) {
+    if (creature_ptr->pseikaku == PERSONALITY_MUNCHKIN) {
+        creature_ptr->lite = TRUE;
+    }
+
+       if (creature_ptr->mimic_form == MIMIC_VAMPIRE) {
         creature_ptr->lite = TRUE;
     }
 
index 0a65c26..7ebd00b 100644 (file)
@@ -710,7 +710,6 @@ void calc_bonuses(player_type *creature_ptr)
 
     calc_race_status(creature_ptr);
 
-
     if (creature_ptr->special_defense & KAMAE_MASK) {
         if (!(empty_hands_status & EMPTY_HAND_RARM)) {
             set_action(creature_ptr, ACTION_NONE);