diff options
author | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2023-03-04 01:54:57 +0000 |
---|---|---|
committer | NetSysFire <16-NetSysFire@users.noreply.git.themanaworld.org> | 2023-03-04 01:54:57 +0000 |
commit | 29f27b67d65e7e32c87cf44bc28f04dfc4061c28 (patch) | |
tree | eab9bb33d841a76ac1d7e2c715aa22519f364daf | |
parent | 462ebd016c331e20d7180ebcccd33f86ff2dd6ba (diff) | |
download | serverdata-29f27b67d65e7e32c87cf44bc28f04dfc4061c28.tar.gz serverdata-29f27b67d65e7e32c87cf44bc28f04dfc4061c28.tar.bz2 serverdata-29f27b67d65e7e32c87cf44bc28f04dfc4061c28.tar.xz serverdata-29f27b67d65e7e32c87cf44bc28f04dfc4061c28.zip |
Applied 7 suggestions from the MR body.
-rw-r--r-- | npc/functions/treasure.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt index 303c9dba6..cdafc960f 100644 --- a/npc/functions/treasure.txt +++ b/npc/functions/treasure.txt @@ -59,7 +59,7 @@ function script TreasureBox { if (.@loot == SnakeEgg) .@count=rand(2, 6); else if (.@loot == Lockpicks) - .@count=rand(3, 6); + .@count=rand2(3, 6); else if (.@loot == DeathPotion) .@count=rand(2, 5); // rare @@ -69,7 +69,7 @@ function script TreasureBox { if (.@loot == Coal) .@count=rand(6, 10); else if (.@loot == Lockpicks) - .@count=rand(1, 3); + .@count=rand2(1, 3); else if (.@loot == IronOre) .@count=rand(2, 5); else if (.@loot == CopperOre) @@ -91,13 +91,13 @@ function script TreasureBox { else if (.@loot == ScrollSCave) .@count=rand(2, 5); else if (.@loot == Beer) - .@count=rand(2, 4); + .@count=rand2(2, 4); else if (.@loot == WoodenLog) - .@count=rand(1, 3); + .@count=rand2(1, 3); else if (.@loot == SmallMushroom) .@count=rand(5, 8); else if (.@loot == IcedBottle) { - .@count=rand(2, 3); + .@count=(season() == WINTER ? rand2(2, 3) : rand2(1, 3)); if (season() == SUMMER) dispbottom l("Just the right thing to cool down right now!"); } @@ -105,13 +105,13 @@ function script TreasureBox { } else { .@loot=any(FatesPotion, PiberriesInfusion, EmptyBottle, ChocolateBar, Chagashroom, Plushroom, SmallMushroom, MaggotSlime, RawLog, LeatherPatch, Coal, EmptyBox, ChamomileTea, EquipmentBlueprintA, ScrollSCave, ScrollSMaggot); if (.@loot == Coal || .@loot == EmptyBottle) - .@count=rand(1, 3); + .@count=rand2(1, 3); else if (.@loot == Chagashroom || .@loot == Plushroom) .@count=rand(10, 20); else if (.@loot == RawLog || .@loot == EmptyBox) .@count=rand(2, 4); else if (.@loot == LeatherPatch) - .@count=rand(1, 2); + .@count=rand2(1, 2); else if (.@loot == ScrollSMaggot) .@count=rand(1, 5); else if (.@loot == MaggotSlime) { |