about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-04-10 22:34:43 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-04-10 22:34:43 -0400
commit8b97ed0755c8d950f5cc8f9a957636982f33f012 (patch)
tree938d9054f071c42f1260207f7830d83f0b964377 /Archipelago/load.gd
parentcd62328a657aa8deb07910267ab549aa990f8aff (diff)
downloadlingo-archipelago-8b97ed0755c8d950f5cc8f9a957636982f33f012.tar.gz
lingo-archipelago-8b97ed0755c8d950f5cc8f9a957636982f33f012.tar.bz2
lingo-archipelago-8b97ed0755c8d950f5cc8f9a957636982f33f012.zip
Replace early color hallways painting
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd38
1 files changed, 14 insertions, 24 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 566ee39..1b77c9e 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -6,7 +6,7 @@ const EXCLUDED_PAINTINGS = [
6 "ascension_nw.tscn", 6 "ascension_nw.tscn",
7 "ascension_se.tscn", 7 "ascension_se.tscn",
8 "ascension_sw.tscn", 8 "ascension_sw.tscn",
9 "dan_L1_gate.tscn", 9 "color_hallways.tscn",
10 "frame.tscn", 10 "frame.tscn",
11 "scenery_0.tscn", 11 "scenery_0.tscn",
12 "scenery_1.tscn", 12 "scenery_1.tscn",
@@ -372,33 +372,23 @@ func _load():
372 ] 372 ]
373 373
374 if apclient._early_color_hallways: 374 if apclient._early_color_hallways:
375 var painting_scene = load("res://nodes/paintings/dan_L1_gate.tscn") 375 var exit_painting = get_node("Decorations/Paintings/crown_painting_exit").duplicate()
376 var mypainting_script = apclient.SCRIPT_mypainting 376 exit_painting.name = "color_hallways_exit"
377 377 exit_painting.translation.x = 48
378 var exit_painting = painting_scene.instance() 378 exit_painting.translation.y = 0.25
379 exit_painting.set_name("color_exit_painting") 379 exit_painting.translation.z = -18
380 exit_painting.translation.x = -98.75
381 exit_painting.translation.y = 1
382 exit_painting.translation.z = 3.5
383 exit_painting.rotation_degrees.y = -90
384
385 var exit_mps = mypainting_script.new()
386 exit_mps.set_name("Script")
387 exit_mps.orientation = "west"
388 exit_painting.add_child(exit_mps)
389 $Decorations/Paintings.add_child(exit_painting) 380 $Decorations/Paintings.add_child(exit_painting)
390 381
382 var painting_scene = load("res://nodes/paintings/color_hallways.tscn")
391 var enter_painting = painting_scene.instance() 383 var enter_painting = painting_scene.instance()
392 enter_painting.set_name("color_enter_painting") 384 enter_painting.set_name("color_hallways")
393 enter_painting.translation.x = 4.5 385 enter_painting.translation.x = 4.5
394 enter_painting.translation.y = 1 386 enter_painting.translation.y = 0.25
395 enter_painting.translation.z = 6.75 387 enter_painting.translation.z = 7
396 388 enter_painting.rotation_degrees.y = 180
397 var enter_mps = mypainting_script.new() 389 enter_painting.set_script(load("res://scripts/painting.gd"))
398 enter_mps.set_name("Script") 390 enter_painting.rotate = "90"
399 enter_mps.orientation = "south" 391 enter_painting.target_path = "../color_hallways_exit"
400 enter_mps.target = exit_mps
401 enter_painting.add_child(enter_mps)
402 $Decorations/Paintings.add_child(enter_painting) 392 $Decorations/Paintings.add_child(enter_painting)
403 393
404 # Randomize the paintings, if necessary. 394 # Randomize the paintings, if necessary.