mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Update health on start
This commit is contained in:
parent
4f048f3deb
commit
9b69b7ab17
5 changed files with 20 additions and 10 deletions
|
|
@ -30,7 +30,7 @@ public partial class ActorResourceProvider : Node2D
|
|||
{
|
||||
_currentResource = value;
|
||||
|
||||
if (_currentResource > MaxResource) {
|
||||
if (_currentResource >= MaxResource) {
|
||||
_currentResource = MaxResource;
|
||||
EmitSignal(SignalName.ResourceMaxed, MaxResource);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue