From df63a99394dffaa2cbdf9be21c9cf3bfd500a04f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 13 Jan 2021 02:48:16 -0300 Subject: Heroes Hold traps may now lower some MP as well (The two first dungeons probably won't do so) --- npc/018-2-2/main.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt index dd97a79bd..49f3acfb3 100644 --- a/npc/018-2-2/main.txt +++ b/npc/018-2-2/main.txt @@ -92,9 +92,9 @@ OnPlayerCycle: end; } // TODO: Handle traps (We'll use isin() command because you can give 3~4 steps each counter) - if (rand(0,1000) <= @HH_LEVEL) { + if (rand2(1000) <= @HH_LEVEL) { dispbottom l("You set off a trap!"); - heal -(@HH_LEVEL*rand(2,5)), 0; + heal -(@HH_LEVEL*rand2(2,5)), -(@HH_LEVEL/2); } // Continue the execution -- cgit v1.2.3-70-g09d2