From 05827d25733698a26cc0f305966e6a8a03be4684 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 25 Sep 2025 18:26:53 -0400 Subject: Game talks through CommonClient now --- apworld/client/player.gd | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'apworld/client/player.gd') diff --git a/apworld/client/player.gd b/apworld/client/player.gd index e58f1bc..fb88880 100644 --- a/apworld/client/player.gd +++ b/apworld/client/player.gd @@ -105,20 +105,12 @@ func _ready(): != ap.kLETTER_BEHAVIOR_VANILLA ): var scout = ap.scout_location(letter.get_ap_id()) - if ( - scout != null - and not (scout["player"] == ap.client._slot and scout["flags"] & 4 != 0) - ): - var item_name = "Unknown" - var item_player_game = ap.client._game_by_player[float(scout["player"])] - if ap.client._item_id_to_name[item_player_game].has(scout["item"]): - item_name = ap.client._item_id_to_name[item_player_game][scout["item"]] - - var collectable = get_tree().get_root().get_node("scene").get_node_or_null( - letter.get_path() - ) - if collectable != null: - collectable.setScoutedText.call_deferred(item_name) + if scout != null and not (scout["for_self"] and scout["flags"] & 4 != 0): + var collectable = get_tree().get_root().get_node("scene").get_node_or_null( + letter.get_path() + ) + if collectable != null: + collectable.setScoutedText.call_deferred(scout["item"]) # Set up mastery locations. for mastery in gamedata.objects.get_masteries(): -- cgit 1.4.1