diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-02 20:13:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-02 20:14:08 -0300 |
commit | 885e3f31a70f9055bac8d78578acd39ee96ce015 (patch) | |
tree | 7410b4393f038a31a553dc891cbbb69638fa237f | |
parent | 3d25518cf10f72d280ed9c6bf79956919a484d02 (diff) | |
download | serverdata-885e3f31a70f9055bac8d78578acd39ee96ce015.tar.gz serverdata-885e3f31a70f9055bac8d78578acd39ee96ce015.tar.bz2 serverdata-885e3f31a70f9055bac8d78578acd39ee96ce015.tar.xz serverdata-885e3f31a70f9055bac8d78578acd39ee96ce015.zip |
Give this variable a meaningful name
-rw-r--r-- | npc/functions/resetstatus.txt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/npc/functions/resetstatus.txt b/npc/functions/resetstatus.txt index fca8a43a8..06b125ee0 100644 --- a/npc/functions/resetstatus.txt +++ b/npc/functions/resetstatus.txt @@ -50,19 +50,19 @@ function script StatusResetReinvest { // ConfirmReset( {price, town=True} ) function script ConfirmStatusReset { if (BaseLevel >= 15) - .@plush_count=(1000-BaseLevel*10+(BaseLevel*18)); + .@raw_price=(1000-BaseLevel*10+(BaseLevel*18)); else if (BaseLevel >= 10) - .@plush_count=(BaseLevel*210-(10*210))/(BaseLevel/10); + .@raw_price=(BaseLevel*210-(10*210))/(BaseLevel/10); else - .@plush_count=1; + .@raw_price=1; if (getarg(0,-1) >= 0) - .@plush_count=getarg(0,-1); + .@raw_price=getarg(0,-1); if (getarg(1, true)) - .@plush_count=POL_AdjustPrice(.@plush_count); + .@raw_price=POL_AdjustPrice(.@raw_price); else - .@plush_count=.@plush_count; + .@raw_price=.@raw_price; mesc l("WARNING: Permanent boosts will return to their fruit form."), 1; @@ -72,11 +72,11 @@ function script ConfirmStatusReset { { case 1: speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("Let me just have a quick look at you. Hm... I will need @@ GP to reset your stats.", .@plush_count); + l("Let me just have a quick look at you. Hm... I will need @@ GP to reset your stats.", .@raw_price); select - rif(Zeny >= .@plush_count, l("Here, take as much as you need, I have plenty!")), - rif(Zeny > 0 && Zeny < .@plush_count, l("I don't have enough money...")), + rif(Zeny >= .@raw_price, l("Here, take as much as you need, I have plenty!")), + rif(Zeny > 0 && Zeny < .@raw_price, l("I don't have enough money...")), rif(Zeny == 0, l("Oh no, I don't have any money on me right now.")), l("I have to go, sorry."); @@ -99,9 +99,9 @@ function script ConfirmStatusReset { l("Come back when you will really need me."); } else { if (getarg(1, true)) - POL_PlayerMoney(.@plush_count); + POL_PlayerMoney(.@raw_price); else - Zeny-=.@plush_count; + Zeny-=.@raw_price; speech S_LAST_NEXT, l("Let's see... @@ of your status points have just been reset!", StatusPoint - .@wasSP), l("Spend it wisely this time."), |