The pirate treasure: each player's own mound at their X, dug with a pickaxe; the drowned crew rise at night or when the chest comes up; the ship's compass, a spyglass, a cutlass and pirate gold; 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)))
|
||||
|
||||
## Whose treasure's been dug (and how far): everyone here sees their own
|
||||
## mound go down, or go.
|
||||
func treasure_state(d: Dictionary) -> void:
|
||||
_all("_s2c_treasure", [d])
|
||||
mark_changed()
|
||||
|
||||
@rpc("authority", "call_remote", "reliable")
|
||||
func _s2c_treasure(d: Dictionary) -> void:
|
||||
if not is_client() or world.treasure == null:
|
||||
return
|
||||
world.treasure.load_data(d)
|
||||
|
||||
## 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:
|
||||
|
||||
Reference in New Issue
Block a user