v0.9.2: removed duplicated code in Dungeon.init()

This commit is contained in:
Evan Debenham 2021-02-01 14:05:27 -05:00
parent 46df3a1033
commit 61fbeeb46b

View File

@ -200,8 +200,7 @@ public class Dungeon {
droppedItems = new SparseArray<>(); droppedItems = new SparseArray<>();
portedItems = new SparseArray<>(); portedItems = new SparseArray<>();
for (LimitedDrops a : LimitedDrops.values()) LimitedDrops.reset();
a.count = 0;
chapters = new HashSet<>(); chapters = new HashSet<>();
@ -382,7 +381,7 @@ public class Dungeon {
} }
Light light = hero.buff( Light.class ); Light light = hero.buff( Light.class );
hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance ); hero.viewDistance = 2;
hero.curAction = hero.lastAction = null; hero.curAction = hero.lastAction = null;