diff options
author | Jesusaves <cpntb1@ymail.com> | 2025-03-18 23:33:32 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2025-03-18 23:33:32 -0300 |
commit | cf727b9f35a9ad728ebda8fa76e2fa2cd3625d4d (patch) | |
tree | ae701e156cfff9df82a2c83208267db72697cdde | |
parent | 247ffa35e368668c2b8dbc7ed21d52008f3c1864 (diff) | |
download | serverdata-cf727b9f35a9ad728ebda8fa76e2fa2cd3625d4d.tar.gz serverdata-cf727b9f35a9ad728ebda8fa76e2fa2cd3625d4d.tar.bz2 serverdata-cf727b9f35a9ad728ebda8fa76e2fa2cd3625d4d.tar.xz serverdata-cf727b9f35a9ad728ebda8fa76e2fa2cd3625d4d.zip |
Add notes and fix imprecisions
-rw-r--r-- | npc/functions/dungeon.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/npc/functions/dungeon.txt b/npc/functions/dungeon.txt index 261c9fce9..0dbe759f7 100644 --- a/npc/functions/dungeon.txt +++ b/npc/functions/dungeon.txt @@ -260,7 +260,7 @@ OnWindy: // You are in a WINDYMAP$, Move speed is impacted until it is neutered .@penalty = 40 - (max(100, rand2(readparam2(bVit))) / 5); - if (@windyio <= gettimetick(2) || Class != Orc) + if (@windyio <= gettimetick(2) && Class != Orc) SC_Bonus(15, SC_MOVESLOW_POTION, .@penalty); else SC_Bonus(15, SC_MOVESLOW_POTION, 5); @@ -291,11 +291,12 @@ OnLeech: dispbottom l("This map is infested by Parasites, your HP will be periodically leeched to enemies!"); } - // You are in a LEECHMAP$ so you lose HP and leech it to mobs (5%, 14x14 square) - if (@leechio <= gettimetick(2) || Class != Tritan) { - percentheal -5, 0; - grenade(14, -500, false); - } else { + // You are in a LEECHMAP$ so you lose HP and leech it to mobs + if (@leechio <= gettimetick(2) && Class != Tritan) { + percentheal -3, 0; + grenade(14, -500, false); // Won't recover HP for bosses + } else if (rand2(3)) { + // 67% chances of you still losing some HP percentheal -1, 0; } @@ -321,7 +322,7 @@ OnFrost: } // You are in a FROSTMAP$ and may get frostbites - if (@frostio <= gettimetick(2) || (Class != Elf && Class != Ukar)) { + if (@frostio <= gettimetick(2) && (Class != Elf && Class != Ukar)) { // You get Frostbites at 100% probability percentheal -2, 0; // You may get cold at ~8% chance |