Ready to work on actual logic for battles.

This commit is contained in:
2026-01-15 22:17:50 -06:00
parent 274cbef780
commit 346e3f0607
9 changed files with 75 additions and 22 deletions

View File

@@ -30,6 +30,9 @@ func isInteractable() -> bool:
if entity.oneTimeItem.item == Item.Id.NULL:
return false
return true
if entity.interactType == Entity.InteractType.BATTLE_TEST:
return true
return false
@@ -63,6 +66,18 @@ func onInteract(other:Entity) -> void:
entity.cutscene.queue(cutscene)
cutscene.start()
return
Entity.InteractType.BATTLE_TEST:
var testEnemy = BattleFighter.new({
'controller': BattleFighter.FighterController.AI
})
var cutscene:Cutscene = Cutscene.new()
cutscene.addCallable(BattleStartAction.getStartBattleCallable({
BATTLE.BattlePosition.RIGHT_MIDDLE_FRONT: PartySingleton.PARTY_JOHN,
BATTLE.BattlePosition.LEFT_MIDDLE_FRONT: testEnemy
}))
cutscene.start()
return
_:
pass