Ready to work on actual logic for battles.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user