Skip to content

Commit

Permalink
Player can now regen health in BaseCamp
Browse files Browse the repository at this point in the history
  • Loading branch information
NancokPS2 committed Jan 28, 2024
1 parent 4ba52ad commit eb2262d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,3 +646,6 @@ func _on_energy_regen_timer_timeout():

if energy != energy_max:
energy_recovery(target_node.get_name(), energy_regen)

if hp != hp_max and MapArea2D.is_rule_active_at(target_node.global_position, MapArea2D.Rules.SAFE):
heal(target_node.get_name(), hp_max * 0.05)

0 comments on commit eb2262d

Please sign in to comment.