sugary-panda (#1)
Reviewed-on: #1 Co-authored-by: Bryce <bryce@brycecovertoperations.com> Co-committed-by: Bryce <bryce@brycecovertoperations.com>
This commit was merged in pull request #1.
This commit is contained in:
@@ -75,3 +75,9 @@ func _input(event):
|
||||
ActionState.Action.TALK:
|
||||
if talked.get_connections().size() > 0:
|
||||
emit_signal("talked")
|
||||
ActionState.Action.ITEM:
|
||||
if InventoryManager.selected_item:
|
||||
var item_id = InventoryManager.selected_item
|
||||
var scene = get_node_or_null("/root/Node2D/SceneViewport/background")
|
||||
if scene and scene is Scene:
|
||||
scene._use_item_on_setpiece(item_id, self)
|
||||
|
||||
Reference in New Issue
Block a user