diff options
Diffstat (limited to 'npc/craft/tweak.txt')
-rw-r--r-- | npc/craft/tweak.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt index 9419e9462..bb9078a22 100644 --- a/npc/craft/tweak.txt +++ b/npc/craft/tweak.txt @@ -25,11 +25,11 @@ function script SmithTweakReset { return; } -// Usage: SmithTweakSystem ({price=600, retry=False}) +// Usage: SmithTweakSystem ({price=600, retries=1}) // Returns true on success, false on failure function script SmithTweakSystem { .@price=getarg(0, 600); - .@retry=getarg(1, false); + .@retry=getarg(1, 1); // Adjust price .@price=POL_AdjustPrice(.@price); @@ -100,11 +100,11 @@ function script SmithTweakSystem { // `continue` will only be cast if .@retry is set do { + .@retry-=1; // Check if you fail if (!csys_Check(.@id)) { mesc l("YOU FAIL! It is a simple item now."), 1; if (.@retry) { - .@retry=false; mesc l("...Automatically retrying..."); continue; } @@ -117,10 +117,9 @@ function script SmithTweakSystem { next; mesc l("Do you want to re-roll?"), 1; if (askyesno() == ASK_YES) { - .@retry=false; continue; } } return true; - } while (true); + } while (.@retry > 0); } |