This commit is contained in:
Arthur
2022-12-10 20:01:26 +01:00
parent bbdfd1930c
commit 8ea8fe272a
2 changed files with 3 additions and 3 deletions

View File

@@ -19,12 +19,12 @@ func _ready():
#TODO: FINISH #TODO: FINISH
func interact(player): func interact(player):
if currentState == STATE.INACTIVE: if currentState == STATE.INACTIVE:
if player.getResource == 0: if player.getResource() == 0:
if currentStashValue < maxStashValue: if currentStashValue < maxStashValue:
currentStashValue += 1 currentStashValue += 1
return return
return return
if player.getResource == 1: if player.getResource() == 1:
if currentPowderStashValue < maxPowderStashValue: if currentPowderStashValue < maxPowderStashValue:
currentPowderStashValue += 1 currentPowderStashValue += 1
return return

View File

@@ -91,7 +91,7 @@ func fill_inventory(type):
func getResource(): func getResource():
return self.resource return resource
func clearInventory(): func clearInventory():
inventory = 0 inventory = 0