Store CreatureIndex on Creature, includes helper function to get a creatures party from a battle.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -63,6 +63,9 @@ namespace CreatureLib::Battling {
|
||||
}
|
||||
}
|
||||
}
|
||||
inline bool HasCreature(ArbUt::BorrowedPtr<Creature> creature) const noexcept {
|
||||
return _party.Contains(creature);
|
||||
}
|
||||
|
||||
virtual CreatureParty* Clone() const {
|
||||
auto party = new CreatureParty(_party.Count());
|
||||
|
||||
Reference in New Issue
Block a user