Skip to content

Commit

Permalink
add fatal report on pre-battle
Browse files Browse the repository at this point in the history
  • Loading branch information
MokhaLeee committed Jan 7, 2025
1 parent b705216 commit ae3fc36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Wizardry/Core/BattleSys/Source/PreBattleCalc.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void ComputeBattleUnitSpeed(struct BattleUnit *bu)

int wt = GetItemWeight(bu->weaponBefore);
int con = bu->unit.conBonus;

con += k_udiv(bu->battleAttack * gpKernelBattleDesignerConfig->as_calc_atk_perc, 100);

wt -= con;
Expand Down Expand Up @@ -1303,6 +1303,9 @@ void PreBattleCalcSkills(struct BattleUnit *attacker, struct BattleUnit *defende
#endif

case MAX_SKILL_NUM:
Fatal("ENOSUPP");
break;

default:
break;
}
Expand Down

0 comments on commit ae3fc36

Please sign in to comment.