diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-06-07 21:48:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-06-07 21:48:21 -0300 |
commit | de5fbfedeb073f5f1dfe62abdd1fa83db82c1c98 (patch) | |
tree | b26fd711749da277e4efd217cb174a1189b33a95 | |
parent | 925b8ddd7cc2df95cad853130058583cbfe9c36e (diff) | |
download | serverdata-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.txt | 1 |
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 |