Update to latest Arbutils.
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:
@@ -25,8 +25,6 @@ namespace CreatureLib::Battling {
|
||||
|
||||
void Creature::ChangeSpecies(const ArbUt::BorrowedPtr<const Library::CreatureSpecies>& species,
|
||||
const ArbUt::BorrowedPtr<const Library::SpeciesVariant>& variant) {
|
||||
AssertNotNull(species);
|
||||
AssertNotNull(variant);
|
||||
_species = species;
|
||||
|
||||
// If the creature is genderless, but it's new species is not, we want to set its gender
|
||||
@@ -51,7 +49,6 @@ namespace CreatureLib::Battling {
|
||||
}
|
||||
|
||||
void Creature::ChangeVariant(const ArbUt::BorrowedPtr<const Library::SpeciesVariant>& variant) {
|
||||
AssertNotNull(variant)
|
||||
_variant = variant;
|
||||
|
||||
// Set the types to the new variant.
|
||||
@@ -145,8 +142,8 @@ namespace CreatureLib::Battling {
|
||||
bool Creature::IsFainted() const noexcept { return this->_currentHealth == 0; }
|
||||
|
||||
void Creature::OnFaint() {
|
||||
AssertNotNull(_battle)
|
||||
AssertNotNull(_side)
|
||||
EnsureNotNull(_battle)
|
||||
EnsureNotNull(_side)
|
||||
// HOOK: On Faint
|
||||
if (_battle.HasValue()) {
|
||||
_battle.GetValue()->TriggerEventListener<FaintEvent>(this);
|
||||
|
||||
Reference in New Issue
Block a user