9 if (user ==
nullptr || target ==
nullptr || user->
baseAttackAction ==
nullptr)
12 return {
false, 0,
false,
"Miss"};
24 return {
false, 0,
false,
"Miss"};
37 return {
true, -(s32)damage, oneMore, atk->
name};
void logMessage(LogSeverity severity, std::string_view message, std::source_location location)
Logs a diagnostic message and halts only for fatal messages.
Util to handle error logging.
TurnResult resolve(PartyMember *user, BattleParticipant *target, Skill *skill=nullptr) override
static bool hit(BattleParticipant &attacker, BattleParticipant &defender, Skill &skill)
Calculates if a skill hit the target.
static u32 attack(BattleParticipant &attacker, BattleParticipant &defender, Skill &skill)
Calculates damage of an attack.
Result of a singular turn. Note that currently multi target skills do use a seperate turn result for ...