summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-13 02:48:16 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-13 02:48:16 -0300
commitdf63a99394dffaa2cbdf9be21c9cf3bfd500a04f (patch)
tree44d85d3eb8636b711f2b908635cfa2716a372461
parent72ff7307ae8a18680f9ca001daede3842bc15c42 (diff)
downloadserverdata-df63a99394dffaa2cbdf9be21c9cf3bfd500a04f.tar.gz
serverdata-df63a99394dffaa2cbdf9be21c9cf3bfd500a04f.tar.bz2
serverdata-df63a99394dffaa2cbdf9be21c9cf3bfd500a04f.tar.xz
serverdata-df63a99394dffaa2cbdf9be21c9cf3bfd500a04f.zip
Heroes Hold traps may now lower some MP as well
(The two first dungeons probably won't do so)
-rw-r--r--npc/018-2-2/main.txt4
1 files 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