summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-23 11:17:49 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-23 11:17:49 -0300
commitd7d97cdb603f2fb0be85ada5408a5f89cede9fde (patch)
tree5fafbe1494f9a024c6adab722e92dc47b067f09b /npc
parent15d81154c2ed1ba989924f89fbef672a49965d38 (diff)
downloadserverdata-d7d97cdb603f2fb0be85ada5408a5f89cede9fde.tar.gz
serverdata-d7d97cdb603f2fb0be85ada5408a5f89cede9fde.tar.bz2
serverdata-d7d97cdb603f2fb0be85ada5408a5f89cede9fde.tar.xz
serverdata-d7d97cdb603f2fb0be85ada5408a5f89cede9fde.zip
Better formula syntax
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/dungeon.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/dungeon.txt b/npc/functions/dungeon.txt
index ef0bcc08e..f29fea403 100644
--- a/npc/functions/dungeon.txt
+++ b/npc/functions/dungeon.txt
@@ -93,9 +93,9 @@ OnSick:
}
// The effect is based on HP
- if (MaxHp*7/10 > Hp)
+ if (Hp*10 > MaxHp*7)
.@eff = SC_BLOODING;
- else if (MaxHp*4/10 > Hp)
+ else if (Hp*10 > MaxHp*4)
.@eff = SC_POISON;
else
.@eff = SC_DPOISON;