From fef8caec93bb9b705c2a44ce38f45e04dda14456 Mon Sep 17 00:00:00 2001 From: Hecht Date: Mon, 8 Sep 2025 21:02:22 +0200 Subject: [PATCH] Minor text changes --- scenes/Global/FightLib.gd | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scenes/Global/FightLib.gd b/scenes/Global/FightLib.gd index f82715b..23ed17c 100644 --- a/scenes/Global/FightLib.gd +++ b/scenes/Global/FightLib.gd @@ -145,21 +145,21 @@ func _init() -> void: var player1 : Someone = Someone.new("John") var player2 : Someone = Someone.new("Joe") - var rounds : Array[Motion] = [ + var motions : Array[Motion] = [ Attack.new(player1, "Kick", player2, 1.0, Absorb.new(player2, "Hit", 1, 12.0)), Buff.new(player2, "SSJ"), Attack.new(player1, "Punch", player2, 2.0, Block.new(player2, "Block", 1.0, true)), Wait.new(player2, "Wait", 5.0) ] - var r2 = self.convert(player1, player2, rounds) + var rounds = self.convert(player1, player2, motions) - for r in r2: - var activeIndex = r.action - var reactiveIndex = 0 if r.action == 1 else 0 - var orientation = "Left" if r.action == 1 else "Right" + for round in rounds: + var activeIndex = round.action + var reactiveIndex = 0 if round.action == 1 else 0 + var orientation = "Left" if round.action == 1 else "Right" - print("%s Player {'Animation': '%s', 'hp_change': %f, 'stamina_change': %f}" % [orientation, r.animations[0].animation, r.animations[0].hp_change, r.animations[0].stamina_change]) - if r.animations[1] != null: - print("Other Player {'Animation': '%s', 'hp_change': %f, 'stamina_change': %f}" % [r.animations[1].animation, r.animations[1].hp_change, r.animations[1].stamina_change]) + print("%s Player {'Animation': '%s', 'hp_change': %f, 'stamina_change': %f}" % [orientation, round.animations[0].animation, round.animations[0].hp_change, round.animations[0].stamina_change]) + if round.animations[1] != null: + print("Other Player {'Animation': '%s', 'hp_change': %f, 'stamina_change': %f}" % [round.animations[1].animation, round.animations[1].hp_change, round.animations[1].stamina_change]) print()