Merge branch 'main' of https://forge.darkwagonstudio.com/dark-wagon-studio/tcg
This commit is contained in:
commit
3e8dc34646
6 changed files with 52 additions and 15 deletions
|
|
@ -43,12 +43,14 @@ func _ready():
|
|||
support1_green.visible = false
|
||||
support2_green.visible = false
|
||||
support2_red.visible = false
|
||||
incoming_damage_label.visible = false
|
||||
for child in deck.get_children():
|
||||
child.queue_free()
|
||||
|
||||
func _on_update(transition):
|
||||
hovering_cards_duration.clear()
|
||||
selected_card = null
|
||||
incoming_damage_label.visible = true
|
||||
|
||||
for child in deck.get_children():
|
||||
child.queue_free()
|
||||
|
|
@ -81,7 +83,7 @@ func _on_update(transition):
|
|||
if monster:
|
||||
monster_card_ui.visible = true
|
||||
monster_card_ui.show_monster(monster)
|
||||
incoming_damage_label.text = "Incoming Damage: " + str(monster.health_delta)
|
||||
incoming_damage_label.text = "HP " + ("+0" if monster.health_delta == 0 else str(monster.health_delta))
|
||||
|
||||
else:
|
||||
monster_card_ui.visible = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue