OSDN Git Service

[Feature] #38813 デバッグのために暫定ウィザードコマンド実装。 / Implement temporary wizard command for...
authorDeskull <deskull@users.sourceforge.jp>
Fri, 28 Dec 2018 03:21:55 +0000 (12:21 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Fri, 28 Dec 2018 06:29:29 +0000 (15:29 +0900)
src/wizard2.c

index 92a68d8..6326958 100644 (file)
@@ -2120,8 +2120,15 @@ void do_cmd_debug(void)
 
        /* For temporary test. */
        case 'X':
+       {
+               int i;
+               for(i = INVEN_TOTAL - 1; i >= 0; i--)
+               {
+                       if(inventory[i].k_idx) inven_drop(i, 999);
+               }
                player_outfit();
                break;
+       }
 
        /* Not a Wizard Command */
        default: