Adds script hook to change choice speed when determining turn order
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-19 16:11:25 +01:00
parent c078d91b0d
commit 5fce541ffb
3 changed files with 11 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ namespace CreatureLib::Battling {
class BaseTurnChoice : public ScriptSource {
int32_t _randomValue;
uint32_t _speed;
protected:
ArbUt::BorrowedPtr<Creature> _user;
@@ -21,6 +22,9 @@ namespace CreatureLib::Battling {
inline void __SetRandomValue(int32_t val) noexcept { _randomValue = val; }
inline int32_t __GetRandomValue() const noexcept { return _randomValue; }
inline void __SetSpeed(uint32_t val) noexcept { _speed = val; }
inline uint32_t __GetSpeed() const noexcept { return _speed; }
};
}