v3.3.2: fixed floor resetting not also resetting key replacement
This commit is contained in:
@@ -33,6 +33,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.ShadowBox;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.LostBackpack;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.SkeletonKey;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.journal.Document;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.journal.Notes;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||
@@ -766,6 +767,11 @@ public class InterlevelScene extends PixelScene {
|
||||
if (pos == -1) pos = level.entrance();
|
||||
level.drop(new LostBackpack(), pos);
|
||||
|
||||
//need to reset key replacement tracking as well
|
||||
if (Dungeon.hero.buff(SkeletonKey.KeyReplacementTracker.class) != null){
|
||||
Dungeon.hero.buff(SkeletonKey.KeyReplacementTracker.class).setupKeysForDepth();
|
||||
}
|
||||
|
||||
} else {
|
||||
level = Dungeon.level;
|
||||
BArray.setFalse(level.heroFOV);
|
||||
|
||||
Reference in New Issue
Block a user