public override void Interact(LivingCreature lc) { if (lc.GetInteractionType() == EnumMazeObject.Monster) { Monster killer = (Monster)lc; if (killer.PartySize() + this.PartySize() <= _maxPartySize) { killer.AddMonsters(_monsterParty); this.Die(); } } else { //enter battle arena this.Die(); } // do nothing }
public override void Interact(LivingCreature creature) { if (!Dead) { if (creature.GetInteractionType() == EnumMazeObject.Monster) { MazeMonster killer = (MazeMonster)creature; if (killer.PartySize() + this.PartySize() <= MaxPartySize) { killer.AddMonsters(_monsterParty); killer.TakeLoot(_creatureInventory.GetItems()); this.Die(); } } else { //enter battle arena BattleWindow theBattle = new BattleWindow(_monsterParty); MainWindow.PauseHive(); theBattle.ShowDialog(); if (creature.Dead) { Restart(); } MainWindow.StartHive(); //exit BA creature.TakeLoot(_creatureInventory.GetItems()); this.Die(); } } }