about summary refs log tree commit diff stats
path: root/apworld/client/player.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-09-25 18:26:53 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-09-25 18:26:53 -0400
commit05827d25733698a26cc0f305966e6a8a03be4684 (patch)
tree75dbec594a0bd0c2494df31b712bb6435730197c /apworld/client/player.gd
parentcb2eca4fed1eb3692eaa13715f65ebcaf8472b64 (diff)
downloadlingo2-archipelago-05827d25733698a26cc0f305966e6a8a03be4684.tar.gz
lingo2-archipelago-05827d25733698a26cc0f305966e6a8a03be4684.tar.bz2
lingo2-archipelago-05827d25733698a26cc0f305966e6a8a03be4684.zip
Game talks through CommonClient now
Diffstat (limited to 'apworld/client/player.gd')
-rw-r--r--apworld/client/player.gd20
1 files changed, 6 insertions, 14 deletions
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():
105 != ap.kLETTER_BEHAVIOR_VANILLA 105 != ap.kLETTER_BEHAVIOR_VANILLA
106 ): 106 ):
107 var scout = ap.scout_location(letter.get_ap_id()) 107 var scout = ap.scout_location(letter.get_ap_id())
108 if ( 108 if scout != null and not (scout["for_self"] and scout["flags"] & 4 != 0):
109 scout != null 109 var collectable = get_tree().get_root().get_node("scene").get_node_or_null(
110 and not (scout["player"] == ap.client._slot and scout["flags"] & 4 != 0) 110 letter.get_path()
111 ): 111 )
112 var item_name = "Unknown" 112 if collectable != null:
113 var item_player_game = ap.client._game_by_player[float(scout["player"])] 113 collectable.setScoutedText.call_deferred(scout["item"])
114 if ap.client._item_id_to_name[item_player_game].has(scout["item"]):
115 item_name = ap.client._item_id_to_name[item_player_game][scout["item"]]
116
117 var collectable = get_tree().get_root().get_node("scene").get_node_or_null(
118 letter.get_path()
119 )
120 if collectable != null:
121 collectable.setScoutedText.call_deferred(item_name)
122 114
123 # Set up mastery locations. 115 # Set up mastery locations.
124 for mastery in gamedata.objects.get_masteries(): 116 for mastery in gamedata.objects.get_masteries():