feat: Implement Tekton roaming NPC with movement, combat, carry, throw, and knock mechanics.

This commit is contained in:
Yogi Wiguna
2026-02-19 17:29:14 +08:00
parent a7a8106b7e
commit e90cbfe246
11 changed files with 235 additions and 84 deletions
+2 -1
View File
@@ -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]])