diff --git a/game/player/Mob.gd b/game/player/Mob.gd index 136ce40..fbbbdf5 100644 --- a/game/player/Mob.gd +++ b/game/player/Mob.gd @@ -136,7 +136,7 @@ func _notification_scharacter_level_up(value: int) -> void: refresh_spells(value) func refresh_spells(value: int): - if free_spell_points_gets() == 0 and class_talent_points_gets_free() == 0: + if spell_points_gets_free() == 0 and class_talent_points_gets_free() == 0: return var ecd : EntityClassData = sentity_data.entity_class_data diff --git a/game/ui/spellbook/SpellBookWindow.gd b/game/ui/spellbook/SpellBookWindow.gd index 6df36bb..3d3b024 100644 --- a/game/ui/spellbook/SpellBookWindow.gd +++ b/game/ui/spellbook/SpellBookWindow.gd @@ -137,7 +137,7 @@ func refresh_all() -> void: _page = _max_pages if ESS.use_spell_points: - _spell_points_label.text = "Free spell points: " + str(_player.free_spell_points_getc()) + _spell_points_label.text = "Free spell points: " + str(_player.spell_points_getc_free()) refresh_entries() @@ -162,7 +162,7 @@ func set_player(p_player: Entity) -> void: centity_data_changed(null) func cfree_spell_points_changed(entity: Entity, value: int) -> void: - _spell_points_label.text = "Free spell points: " + str(_player.free_spell_points_getc()) + _spell_points_label.text = "Free spell points: " + str(_player.spell_points_getc_free()) func centity_data_changed(data: EntityData): _spells.clear()