feat: let the player live as a citizen with needs and carried inventory
This commit is contained in:
@@ -322,6 +322,18 @@ func _run() -> void:
|
||||
opportunity_bush_state.set_amount_remaining(1.0)
|
||||
player.global_position = opportunity_bush.interaction_point.global_position
|
||||
player.call("try_interact")
|
||||
_check(
|
||||
(
|
||||
simulation_manager.get_player_state().get_inventory_amount(SimulationIds.RESOURCE_FOOD)
|
||||
>= 1.0
|
||||
),
|
||||
"Player gathering should first carry the finite yield"
|
||||
)
|
||||
var player_pantry := (
|
||||
main_scene.get_node("JajceWorld/WorldObjects/StorageSites/VillagePantry") as StorageNode
|
||||
)
|
||||
player.global_position = player_pantry.get_interaction_position()
|
||||
player.call("try_interact")
|
||||
village_ui.selected_npc_index = contributor.id
|
||||
village_ui.call("_refresh_npc_inspector")
|
||||
_check(
|
||||
|
||||
Reference in New Issue
Block a user