Pass creature along with OnEndTurn.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2021-03-28 18:37:10 +02:00
parent 21231761ef
commit 374a4d10a8
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ void TurnHandler::RunTurn(const ArbUt::BorrowedPtr<ChoiceQueue>& queue, const Ar
if (!creature.HasValue()) {
continue;
}
HOOK(OnEndTurn, creature.GetValue());
HOOK(OnEndTurn, creature.GetValue(), creature.GetValue());
}
}
}

View File

@ -86,7 +86,7 @@ namespace CreatureLib::Battling {
virtual void PreventOpponentRunAway([[maybe_unused]] const FleeTurnChoice* choice,
[[maybe_unused]] bool* result){};
virtual void OnEndTurn(){};
virtual void OnEndTurn([[maybe_unused]] Creature* creature){};
};
}