v0.3.2: lots of wandmaker quest implementation

This commit is contained in:
Evan Debenham
2015-10-17 03:10:14 -04:00
parent cf2c54d115
commit c3ea21d5f4
4 changed files with 200 additions and 98 deletions
@@ -82,14 +82,7 @@ public class PrisonLevel extends RegularLevel {
}
}
return true;
}
@Override
protected void createItems() {
super.createItems();
Wandmaker.Quest.spawn( this, roomEntrance );
return Wandmaker.Quest.spawn( this, roomEntrance, rooms );
}
@Override
@@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.levels.painters;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.items.keys.IronKey;
import com.shatteredpixel.shatteredpixeldungeon.items.quest.CeremonialCandle;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.levels.Room;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
@@ -45,6 +46,13 @@ public class RitualSitePainter extends Painter {
vis.pos(c.x - 1, c.y - 1);
level.customTiles.add(vis);
level.addItemToSpawn(new CeremonialCandle());
level.addItemToSpawn(new CeremonialCandle());
level.addItemToSpawn(new CeremonialCandle());
level.addItemToSpawn(new CeremonialCandle());
CeremonialCandle.ritualPos = c.x + (Level.WIDTH * c.y);
}
public static class RitualMarker extends CustomTileVisual{