v0.2.3: artifacts are now unique, also have better interaction with remains

This commit is contained in:
Evan Debenham
2014-11-18 21:04:59 -05:00
parent e58df1bc9c
commit 567f80a689
3 changed files with 102 additions and 3 deletions
@@ -29,6 +29,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ConfusionGas;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ParalyticGas;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ToxicGas;
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLevitation;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLiquidFlame;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfParalyticGas;
@@ -160,6 +161,8 @@ public class Dungeon {
challenges = ShatteredPixelDungeon.challenges();
Generator.initArtifacts();
Actor.clear();
PathFinder.setMapSize( Level.WIDTH, Level.HEIGHT );
@@ -484,6 +487,7 @@ public class Dungeon {
Statistics.storeInBundle( bundle );
Journal.storeInBundle( bundle );
Generator.storeInBundle( bundle );
if (quickslot instanceof Class) {
bundle.put( QUICKSLOT, ((Class<?>)quickslot).getName() );
@@ -619,6 +623,7 @@ public class Dungeon {
Statistics.restoreFromBundle( bundle );
Journal.restoreFromBundle( bundle );
Generator.restoreFromBundle( bundle );
}
public static Level loadLevel( HeroClass cl ) throws IOException {