BING CHILLING FINALE FINALE COPY v2 4 real on god

This commit is contained in:
Victor Turgeon
2023-10-11 12:17:01 -04:00
parent 077ada5db4
commit 36f6c08f8b
4 changed files with 24 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ var is_win: bool = true
var army: Dictionary = {}
var totalBlud: float = 0
var remainingTime: String = "0"
var maxBludGen = 0
func _ready():
if is_win:
@@ -34,6 +35,7 @@ func _ready():
$TotalArmyComp/Separation/ArmyTotals/Necromancers/AmtNecromancer.text = "0" if !army.has("Necromancer") else str(army["Necromancer"])
$"TotalArmyComp/Separation/ArmyTotals/Pit Fiends/AmtPitFiend".text = "0" if !army.has("Pit Fiend") else str(army["Pit Fiend"])
$TotalArmyComp/Separation/TotalBludGen/AmtBlud.text = str(floor(totalBlud))
$TotalArmyComp/Separation/MaxBludGen/MaxBludGen.text = str(maxBludGen) + "/s"
func _on_quit_pressed():
get_tree().quit()

View File

@@ -28,6 +28,7 @@ func win_screen():
end.level = enemy.level
end.exp = enemy.experience
end.message = "The holy knight Fabio is defeated, Evil has won and your magic staff is safe."
end.maxBludGen = player.maxBludGen
self.queue_free()
get_tree().root.add_child(end)
@@ -41,6 +42,7 @@ func lose_screen():
end.exp = enemy.experience
end.is_win = false
end.message = "The holy knight Fabio destroyed you army of evil and left with your magic staff..."
end.maxBludGen = player.maxBludGen
self.queue_free()
get_tree().root.add_child(end)