Minor text changes

foo
Hecht 4 days ago
parent 22e2ecd4c9
commit fef8caec93

@ -145,21 +145,21 @@ func _init() -> void:
var player1 : Someone = Someone.new("John") var player1 : Someone = Someone.new("John")
var player2 : Someone = Someone.new("Joe") 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)), Attack.new(player1, "Kick", player2, 1.0, Absorb.new(player2, "Hit", 1, 12.0)),
Buff.new(player2, "SSJ"), Buff.new(player2, "SSJ"),
Attack.new(player1, "Punch", player2, 2.0, Block.new(player2, "Block", 1.0, true)), Attack.new(player1, "Punch", player2, 2.0, Block.new(player2, "Block", 1.0, true)),
Wait.new(player2, "Wait", 5.0) Wait.new(player2, "Wait", 5.0)
] ]
var r2 = self.convert(player1, player2, rounds) var rounds = self.convert(player1, player2, motions)
for r in r2: for round in rounds:
var activeIndex = r.action var activeIndex = round.action
var reactiveIndex = 0 if r.action == 1 else 0 var reactiveIndex = 0 if round.action == 1 else 0
var orientation = "Left" if r.action == 1 else "Right" 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]) 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 r.animations[1] != null: if round.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("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() print()

Loading…
Cancel
Save