OSDN Git Service

[Feature] #38790 新性格『チャージマン』のモンスター誤認仕様実装。 / Implement monster misunderstanding featur...
authorDeskull <deskull@users.sourceforge.jp>
Fri, 7 Dec 2018 12:46:29 +0000 (21:46 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Fri, 7 Dec 2018 12:46:29 +0000 (21:46 +0900)
src/defines.h
src/monster2.c

index 4cf51fe..6955ce2 100644 (file)
@@ -5119,6 +5119,7 @@ extern int PlayerUID;
 #define MON_WYRM_SPACE    1064
 #define MON_JIZOTAKO      1065
 #define MON_TANUKI        1067
+#define MON_ALIEN_JURAL   1082
 #define MON_HATOPOPPO     1083
 #define MON_KOGAN         1096
 
index 38a07a6..a6d0059 100644 (file)
@@ -2904,10 +2904,14 @@ static bool monster_hook_tanuki(MONRACE_IDX r_idx)
 static IDX initial_r_appearance(MONRACE_IDX r_idx)
 {
        int attempts = 1000;
-
        IDX ap_r_idx;
        DEPTH min = MIN(base_level-5, 50);
 
+       if (p_ptr->pseikaku == SEIKAKU_CHARGEMAN)
+       {
+               if (base_level == 0 || one_in_(5)) return MON_ALIEN_JURAL;
+       }
+
        if (!(r_info[r_idx].flags7 & RF7_TANUKI))
                return r_idx;