feat: Implement Tekton roaming NPC with movement, combat, carry, throw, and knock mechanics.
This commit is contained in:
@@ -74,7 +74,7 @@ func _on_boost_full():
|
||||
NotificationManager.send_message(player, NotificationManager.MESSAGES.ATTACK_MODE_READY, NotificationManager.MessageType.POWERUP)
|
||||
print("[PowerUp] Player %s Boost Full! Ready for Attack Mode." % player.name)
|
||||
|
||||
if player.is_multiplayer_authority():
|
||||
if player.is_multiplayer_authority() and player.has_method("can_rpc") and player.can_rpc():
|
||||
rpc("sync_boost", current_boost)
|
||||
|
||||
func reset_boost():
|
||||
@@ -83,7 +83,7 @@ func reset_boost():
|
||||
emit_signal("points_changed", 0, int(MAX_BOOST))
|
||||
emit_signal("boost_reset")
|
||||
|
||||
if player.is_multiplayer_authority():
|
||||
if player.is_multiplayer_authority() and player.has_method("can_rpc") and player.can_rpc():
|
||||
rpc("sync_boost", 0.0)
|
||||
|
||||
# =============================================================================
|
||||
@@ -173,7 +173,7 @@ func consume_boost(amount: float):
|
||||
|
||||
emit_signal("points_changed", int(current_boost), int(MAX_BOOST))
|
||||
|
||||
if player.is_multiplayer_authority():
|
||||
if player.is_multiplayer_authority() and player.has_method("can_rpc") and player.can_rpc():
|
||||
rpc("sync_boost", current_boost)
|
||||
|
||||
func spawn_boost_reward() -> bool:
|
||||
@@ -207,6 +207,6 @@ func add_goal_completion_reward():
|
||||
|
||||
# Optional: Notify user of difficulty increase?
|
||||
|
||||
if multiplayer.is_server():
|
||||
if multiplayer.is_server() and player.has_method("can_rpc") and player.can_rpc():
|
||||
rpc("sync_boost_level", current_level)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user