v0.9.3: fixed bugs caused by observe changes

This commit is contained in:
Evan Debenham 2021-05-07 16:53:57 -04:00
parent 5ade968e4f
commit 25f9c66f4d

View File

@ -196,7 +196,7 @@ public class Dungeon {
quickslot.reset(); quickslot.reset();
QuickSlotButton.reset(); QuickSlotButton.reset();
depth = 0; depth = 24;
gold = 0; gold = 0;
droppedItems = new SparseArray<>(); droppedItems = new SparseArray<>();
@ -698,8 +698,9 @@ public class Dungeon {
Rankings.INSTANCE.submit( true, cause ); Rankings.INSTANCE.submit( true, cause );
} }
//default to recomputing based on max hero vision, in case vision just shrank/grew
public static void observe(){ public static void observe(){
int dist = Dungeon.hero.viewDistance; int dist = 8;
dist *= 1f + 0.25f*Dungeon.hero.pointsInTalent(Talent.FARSIGHT); dist *= 1f + 0.25f*Dungeon.hero.pointsInTalent(Talent.FARSIGHT);
observe( dist+1 ); observe( dist+1 );
} }