adapted monster structure and save game
This commit is contained in:
parent
04873e3880
commit
aa4afc4c4b
22 changed files with 358 additions and 183 deletions
|
|
@ -12,17 +12,10 @@ func _process(delta: float) -> void:
|
|||
pass
|
||||
|
||||
func populate(monster) -> void:
|
||||
# thumbnail
|
||||
# id
|
||||
# name
|
||||
# level
|
||||
# health
|
||||
# healthprogress
|
||||
# experience
|
||||
%MonsterID.text = str(0)
|
||||
%MonsterName.text = monster.name
|
||||
%MonsterName.text = monster.display_name
|
||||
%MonsterLevel.text = "Lvl. %s" % monster.level
|
||||
%HealthProgressBar.value = monster.health
|
||||
%HealthProgressBar.max_value = monster.max_health
|
||||
%ExperienceProgressBar.value = monster.experience
|
||||
%ExperienceProgressBar.max_value = monster.experience_for_next_level
|
||||
%HealthProgressBar.max_value = monster.health
|
||||
%ExperienceProgressBar.value = monster.xp
|
||||
%ExperienceProgressBar.max_value = monster.base_xp_for_next_level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue