feat: Implement Tekton roaming NPC with movement, combat, carry, throw, and knock mechanics.
This commit is contained in:
@@ -288,7 +288,8 @@ func add_score(peer_id: int, amount: int):
|
||||
player_scores[peer_id] += amount
|
||||
|
||||
# Sync
|
||||
rpc("sync_player_score", peer_id, player_scores[peer_id])
|
||||
if multiplayer.has_multiplayer_peer() and multiplayer.multiplayer_peer.get_connection_status() == MultiplayerPeer.CONNECTION_CONNECTED:
|
||||
rpc("sync_player_score", peer_id, player_scores[peer_id])
|
||||
print("[GoalsCycle] Added %d points to Player %d. Total: %d" % [amount, peer_id, player_scores[peer_id]])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user