Change battle actions to use battle decisions instead.

This commit is contained in:
2026-01-15 19:09:46 -06:00
parent 3b7de160dc
commit 274cbef780
15 changed files with 173 additions and 41 deletions

View File

@@ -102,8 +102,8 @@ func mpRestore(amount:int) -> void:
mp = min(mp + amount, maxMp)
mpChanged.emit(amount)
func isCrit() -> bool:
# 10% chance of a crit
var chance = 10 + min(luck * 5, 60)
var roll = randi() % 100
return roll < chance
func isPlayerControlled() -> bool:
return controller == FighterController.PLAYER
func getAIDecision() -> BattleDecision:
return null