now correctly removes player and enemy monster node

This commit is contained in:
Luca 2024-09-29 21:52:34 +02:00
parent 4963131d3e
commit c9458f3627
3 changed files with 7 additions and 4 deletions

View file

@ -1,11 +1,11 @@
extends HBoxContainer
class_name PartyListEntry
func populate(monster) -> void:
func populate(monster: MonsterData) -> void:
%MonsterID.text = str(0)
%MonsterName.text = monster.name
%MonsterLevel.text = "Lvl. %s" % monster.level
%HealthProgressBar.value = monster.health
%HealthProgressBar.value = monster.current_health
%HealthProgressBar.max_value = monster.health
%ExperienceProgressBar.value = monster.xp
%ExperienceProgressBar.max_value = monster.base_xp