Added locked barriers and a new ghost enemy
This commit is contained in:
@@ -45,8 +45,17 @@ func add_currency(amount: int) -> void:
|
||||
return
|
||||
|
||||
|
||||
func has_item(item: String) -> bool:
|
||||
return $Inventory.contains(item)
|
||||
|
||||
|
||||
func add_item(item: String) -> void:
|
||||
print('%s added to inventory' % [item])
|
||||
$Inventory.add(item)
|
||||
return
|
||||
|
||||
|
||||
func remove_item(item: String) -> void:
|
||||
$Inventory.remove(item)
|
||||
return
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user