[hellfire] AddTrap bin exact

This commit is contained in:
qndel
2019-11-30 10:54:10 +01:00
committed by Anders Jenbo
parent 014393eb22
commit ef3134f2d0
+8
View File
@@ -1085,6 +1085,14 @@ void AddTrap(int i, int ot)
int mt;
mt = currlevel / 3 + 1;
#ifdef HELLFIRE
if (currlevel > 16) {
mt = (currlevel - 4) / 3 + 1;
}
if (currlevel > 20) {
mt = (currlevel - 8) / 3 + 1;
}
#endif
mt = random(148, mt);
if (mt == 0)
object[i]._oVar3 = 0; // arrow