v0.3.2: fixed some wandmaker quest bugs
This commit is contained in:
parent
c3ea21d5f4
commit
43327a5f4e
src/com/shatteredpixel/shatteredpixeldungeon
|
@ -270,7 +270,7 @@ public class Wandmaker extends NPC {
|
|||
node.put( GIVEN, given );
|
||||
|
||||
node.put( WAND1, wand1 );
|
||||
node.put(WAND2, wand2);
|
||||
node.put( WAND2, wand2 );
|
||||
|
||||
if (type == 2){
|
||||
node.put( RITUALPOS, CeremonialCandle.ritualPos );
|
||||
|
@ -288,7 +288,7 @@ public class Wandmaker extends NPC {
|
|||
if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) {
|
||||
|
||||
//TODO remove when pre-0.3.2 saves are no longer supported
|
||||
if (bundle.contains(TYPE)) {
|
||||
if (node.contains(TYPE)) {
|
||||
type = node.getInt(TYPE);
|
||||
} else {
|
||||
type = node.getBoolean("alternative")? 1 : 3;
|
||||
|
@ -300,7 +300,7 @@ public class Wandmaker extends NPC {
|
|||
wand2 = (Wand)node.get( WAND2 );
|
||||
|
||||
if (type == 2){
|
||||
CeremonialCandle.ritualPos = bundle.getInt( RITUALPOS );
|
||||
CeremonialCandle.ritualPos = node.getInt( RITUALPOS );
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
@ -47,6 +47,8 @@ public class RitualSitePainter extends Painter {
|
|||
|
||||
level.customTiles.add(vis);
|
||||
|
||||
fill(level, c.x-1, c.y-1, 3, 3, Terrain.EMPTY_DECO);
|
||||
|
||||
level.addItemToSpawn(new CeremonialCandle());
|
||||
level.addItemToSpawn(new CeremonialCandle());
|
||||
level.addItemToSpawn(new CeremonialCandle());
|
||||
|
|
Loading…
Reference in New Issue
Block a user