The Cove's wreck: driftwood and salt on the beach, the captain's sea chest (a treasure map, nails, salt; once each), each player's own X on the map; online too
This commit is contained in:
@@ -377,6 +377,18 @@ func tunnel_state(d: Dictionary) -> void:
|
||||
if Lands.hub:
|
||||
Lands.push_tunnel(int(d.get("dug", 0)))
|
||||
|
||||
## Who's had their share of the wreck's sea chest changed: everyone here
|
||||
## sees whether it's empty for them.
|
||||
func wreck_state(d: Dictionary) -> void:
|
||||
_all("_s2c_wreck", [d])
|
||||
mark_changed()
|
||||
|
||||
@rpc("authority", "call_remote", "reliable")
|
||||
func _s2c_wreck(d: Dictionary) -> void:
|
||||
if not is_client() or world.wreck == null:
|
||||
return
|
||||
world.wreck.load_data(d)
|
||||
|
||||
@rpc("authority", "call_remote", "reliable")
|
||||
func _s2c_tunnel(d: Dictionary) -> void:
|
||||
if not is_client() or world.tunnel == null:
|
||||
|
||||
Reference in New Issue
Block a user