From 4fcbee767848cb0a4b34db504fa0cb30d55dc78d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 Sep 2019 14:07:53 -0300 Subject: Use readparam2() instead of readparam() in several places --- npc/items/alcohol.txt | 2 +- npc/items/croconut.txt | 6 +++--- npc/items/rand_sc_heal.txt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'npc/items') diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt index 1c157584b..c83ae406b 100644 --- a/npc/items/alcohol.txt +++ b/npc/items/alcohol.txt @@ -43,7 +43,7 @@ OnUse: // Do you have enough vitality to hold your beer? // Skip this check on the first drink if (ALC_THRESHOLD) { - .@vit=readparam(bVit); + .@vit=readparam2(bVit); if (@Alcohol+ALC_THRESHOLD > .@vit) { dispbottom l("You vomit, you are too drunk for this to have effect anymore."); dispbottom l("Raise vitality to be able to drink even more."); diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt index a1c4097ae..5525b269b 100644 --- a/npc/items/croconut.txt +++ b/npc/items/croconut.txt @@ -39,11 +39,11 @@ L_TooWeak: mesn "Narrator"; .@q = rand(5); - if (readparam(bStr) > 30) + if (readparam2(bStr) > 30) .@q = .@q + 1; - if (readparam(bStr) > 60) + if (readparam2(bStr) > 60) .@q = .@q + 1; - if (readparam(bStr) > 90) + if (readparam2(bStr) > 90) .@q = .@q + 1; if (.@q == 0) goto L_TooWeakLost; diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt index c14f33a97..b8a797585 100644 --- a/npc/items/rand_sc_heal.txt +++ b/npc/items/rand_sc_heal.txt @@ -77,8 +77,8 @@ OnUse: // Vitality raises the minimum healing value in 1%, capped at maximum vlaue // It also raises @max up to double - @max = min(@max*2, @min+(readparam(bVit)/50)); - @min = min(@max, @min+(readparam(bVit)/30)); + @max = min(@max*2, @min+(readparam2(bVit)/50)); + @min = min(@max, @min+(readparam2(bVit)/30)); // Make these abstract % in absolute values @min=max(1, MaxHp*@min/100); -- cgit v1.2.3-70-g09d2