8 if (user ==
nullptr || skill ==
nullptr)
11 return {
false, 0,
false,
"Miss"};
19 if (target ==
nullptr)
22 return {
false, 0,
false,
"Miss"};
31 return {
false, 0,
false,
"Miss"};
44 return {
true, -(s32)damage, oneMore, skill->
name};
49 return {
true, (s32)healed,
false, skill->
name};
52 return {
false, 0,
false, skill->
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.
static u32 healing(BattleParticipant &user, Skill &skill)
Calculates heal of a skill.
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.
TurnResult resolve(PartyMember *user, BattleParticipant *target, Skill *skill) override
Result of a singular turn. Note that currently multi target skills do use a seperate turn result for ...