From 885e3f31a70f9055bac8d78578acd39ee96ce015 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 2 Jun 2020 20:13:35 -0300 Subject: Give this variable a meaningful name --- npc/functions/resetstatus.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'npc/functions/resetstatus.txt') 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."), -- cgit v1.2.3-60-g2f50