summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-06-07 21:48:21 -0300
committerJesusaves <cpntb1@ymail.com>2024-06-07 21:48:21 -0300
commitde5fbfedeb073f5f1dfe62abdd1fa83db82c1c98 (patch)
treeb26fd711749da277e4efd217cb174a1189b33a95
parent925b8ddd7cc2df95cad853130058583cbfe9c36e (diff)
downloadserverdata-de5fbfedeb073f5f1dfe62abdd1fa83db82c1c98.tar.gz
serverdata-de5fbfedeb073f5f1dfe62abdd1fa83db82c1c98.tar.bz2
serverdata-de5fbfedeb073f5f1dfe62abdd1fa83db82c1c98.tar.xz
serverdata-de5fbfedeb073f5f1dfe62abdd1fa83db82c1c98.zip
Divide by zero because why not
-rw-r--r--npc/025-1/ihclot.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/025-1/ihclot.txt b/npc/025-1/ihclot.txt
index 243adbbd6..892555291 100644
--- a/npc/025-1/ihclot.txt
+++ b/npc/025-1/ihclot.txt
@@ -66,6 +66,7 @@
// Calculate price
.@price=.@lv**3; // Cubic function to determine price.
.@price=max(1, .@price/7);
+ if (.@price < ((50 ** 3) / 7)) Exception("Division by zero: "+.@lv, RB_SPEECH | RB_ISFATAL);
mesn;
mesq l("Please select the level I should use.");
menuint