v0.6.2: fixed incorrect runestone appearing in runestone room
This commit is contained in:
parent
55090000a7
commit
27457ea94f
|
@ -22,7 +22,7 @@
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.secret;
|
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.secret;
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLiquidFlame;
|
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLiquidFlame;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.stones.StoneOfIntuition;
|
import com.shatteredpixel.shatteredpixeldungeon.items.stones.StoneOfEnchantment;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
||||||
|
@ -66,7 +66,7 @@ public class SecretRunestoneRoom extends SecretRoom {
|
||||||
do{
|
do{
|
||||||
dropPos = level.pointToCell(random());
|
dropPos = level.pointToCell(random());
|
||||||
} while (level.map[dropPos] != Terrain.EMPTY_SP);
|
} while (level.map[dropPos] != Terrain.EMPTY_SP);
|
||||||
level.drop( new StoneOfIntuition(), dropPos);
|
level.drop( new StoneOfEnchantment(), dropPos);
|
||||||
|
|
||||||
entrance.set(Door.Type.HIDDEN);
|
entrance.set(Door.Type.HIDDEN);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user