From a6563420ed37967fb35809616702b4206086082b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 25 Jan 2018 17:18:30 +0100 Subject: [PATCH] some extra commandline options --- commandline.cpp | 17 +++++++++++++++++ inventory.cpp | 8 ++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/commandline.cpp b/commandline.cpp index 18f88619..ba7577e7 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -127,6 +127,18 @@ int arg::readCommon() { shift(); int q = argi(); placeItems(q, i); } + else if(argis("-IU")) { + PHASE(3) cheater++; timerghost = false; + shift(); eItem i = readItem(args()); + shift(); inv::usedup[i] += argi(); + inv::compute(); + } + else if(argis("-IX")) { + PHASE(3) autocheat = true; cheater++; timerghost = false; + shift(); eItem i = readItem(args()); + shift(); inv::extra_orbs[i] += argi(); + inv::compute(); + } else if(argis("-ambush")) { // make all ambushes use the given number of dogs // example: hyper -W Hunt -IP Shield 1 -ambush 60 @@ -140,6 +152,11 @@ int arg::readCommon() { printf("m = %s q = %d\n", dnameof(m), q); restoreGolems(q, m, 7); } + else if(argis("-MK")) { + PHASE(3) cheater++; timerghost = false; + shift(); eMonster m = readMonster(args()); + shift(); kills[m] += argi(); + } else if(argis("-L")) { printf("Treasures:\n"); for(int i=1; i usedup; + array remaining; + array extra_orbs; int rseed; bool usedForbidden; @@ -254,7 +255,7 @@ namespace inv { extra = ""; orbinfoline = ""; - for(int i=0; i= TESTMIRRORED) { remaining[i] += MIRRORED; remaining[i] -= mirrorqty0(eItem(i)); @@ -360,7 +361,6 @@ namespace inv { for(int i=0; i orbmap;