v3.0.0: reduced cases where disarming traps would fail to teleport
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ public class DisarmingTrap extends Trap{
|
|||||||
if (weapon != null && !weapon.cursed) {
|
if (weapon != null && !weapon.cursed) {
|
||||||
|
|
||||||
int cell;
|
int cell;
|
||||||
int tries = 20;
|
int tries = 50;
|
||||||
do {
|
do {
|
||||||
cell = Dungeon.level.randomRespawnCell( null );
|
cell = Dungeon.level.randomRespawnCell( null );
|
||||||
if (tries-- < 0 && cell != -1) break;
|
if (tries-- < 0 && cell != -1) break;
|
||||||
|
|||||||
Reference in New Issue
Block a user