v2.2.0: fixed intense music not playing correctly for newborn elemental
This commit is contained in:
+8
-9
@@ -378,7 +378,14 @@ public class Wandmaker extends NPC {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
} else if (type == 2){
|
} else if (type == 2){
|
||||||
//hero is in the ritual room and all 4 candles are with them
|
//hero has summoned the newborn elemental
|
||||||
|
for (Mob m : Dungeon.level.mobs) {
|
||||||
|
if (m instanceof Elemental.NewbornFireElemental) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//or hero is in the ritual room and all 4 candles are with them
|
||||||
if (((RegularLevel) Dungeon.level).room(Dungeon.hero.pos) instanceof RitualSiteRoom) {
|
if (((RegularLevel) Dungeon.level).room(Dungeon.hero.pos) instanceof RitualSiteRoom) {
|
||||||
int candles = 0;
|
int candles = 0;
|
||||||
if (Dungeon.hero.belongings.getItem(CeremonialCandle.class) != null){
|
if (Dungeon.hero.belongings.getItem(CeremonialCandle.class) != null){
|
||||||
@@ -403,14 +410,6 @@ public class Wandmaker extends NPC {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//or they have summoned but not killed the newborn elemental
|
|
||||||
for (Mob m : Dungeon.level.mobs) {
|
|
||||||
if (m instanceof Elemental.NewbornFireElemental) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user