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 Feb 11, 2024
1 parent 7a102b2 commit caadc94
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,3 +650,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 caadc94

Please sign in to comment.