OSDN Git Service

[Implement] #39832 ウィザードモードの@コマンドに "vanish dungeon" を追加. / Add 'vanish dungeon' to...
authordeskull <deskull@users.sourceforge.jp>
Wed, 11 Dec 2019 11:19:09 +0000 (20:19 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 11 Dec 2019 11:19:09 +0000 (20:19 +0900)
src/spells.h
src/spells3.c
src/wizard2.c

index 7fdc73e..c5c1ef3 100644 (file)
@@ -273,6 +273,7 @@ extern bool confusing_light(player_type *creature_ptr);
 extern bool rodeo(player_type *creature_ptr);
 extern bool clear_mind(player_type *creature_ptr);
 extern bool concentration(player_type *creature_ptr);
+extern bool vanish_dungeon(player_type *caster_ptr);
 
 /*
  * Bit flags for teleportation
index edf89ce..37fdf92 100644 (file)
@@ -1031,7 +1031,7 @@ bool apply_disenchant(player_type *target_ptr, BIT_FLAGS mode)
  * @params caster_ptr 術者の参照ポインタ
  * @return 実際に処理が反映された場合TRUE
  */
-static bool vanish_dungeon(player_type *caster_ptr)
+bool vanish_dungeon(player_type *caster_ptr)
 {
        POSITION y, x;
        grid_type *g_ptr;
index 4c3b089..b7b0c04 100644 (file)
@@ -101,9 +101,10 @@ typedef struct debug_spell_command
 } debug_spell_command;
 
 
-#define SPELL_MAX 1
+#define SPELL_MAX 2
 debug_spell_command debug_spell_commands_list[SPELL_MAX] =
 {
+       { 2, "vanish dungeon", {.spell2 = vanish_dungeon} },
        { 3, "true healing", {.spell3 = true_healing} }
 };
 
@@ -125,6 +126,10 @@ static bool do_cmd_debug_spell(player_type *creature_ptr)
                {
                        switch (debug_spell_commands_list[i].type)
                        {
+                       case 2:
+                               (*(debug_spell_commands_list[i].command_function.spell2.spell_function))(creature_ptr);
+                               break;
+
                        case 3:
                                tmp_val[0] = '\0';
                                if (!get_string("POWER:", tmp_val, 32)) return FALSE;