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<>();
portedItems = new SparseArray<>();
for (LimitedDrops a : LimitedDrops.values())
a.count = 0;
LimitedDrops.reset();
chapters = new HashSet<>();
@ -382,7 +381,7 @@ public class Dungeon {
}
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;