about summary refs log tree commit diff stats
path: root/apworld/client/maps/the_stellar.gd
blob: d633535e55404ac5364c6b9fb75f53af04e4b73d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
func on_map_load(root):
	# Add the mastery to The Stellar.
	var collectable_prefab = preload("res://objects/nodes/collectable.tscn")
	var saver_prefab = preload("res://objects/nodes/saver.tscn")
	var usl_prefab = preload("res://objects/nodes/listeners/unlockSetterListener.tscn")

	var collectables = Node.new()
	collectables.name = "Collectables"

	var mastery = collectable_prefab.instantiate()
	mastery.name = "collectable"
	mastery.position = Vector3(2, 2, -31)
	mastery.rotation_degrees = Vector3(0, 90, 0)
	mastery.unlock_type = "smiley"
	mastery.material_override = load("res://assets/materials/gold.material")
	collectables.add_child.call_deferred(mastery)
	root.get_node("/root/scene/Components").add_child.call_deferred(collectables)

	var usl = usl_prefab.instantiate()
	usl.name = "unlockSetterListenerMastery"
	usl.key = "stellar_mastery"
	usl.value = "unlocked"
	usl.senders.append(NodePath("/root/scene/Components/Collectables/collectable"))
	root.get_node("/root/scene/Components").add_child.call_deferred(usl)

	var saver = saver_prefab.instantiate()
	saver.name = "saver_collectables"
	saver.type = "collectables"
	saver.senderGroup.append(NodePath("/root/scene/Components/Collectables"))
	root.get_node("/root/scene").add_child.call_deferred(saver)
30 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766
# It is supposed to be in logic to jump from Maze to Maze King Painting, but I
# find this difficult to do, and unshuffled paintings never requires it, so I am
# making it not in logic.
connections {
  from_room: "Welcome Spine (Obverse)"
  to_room: "Trans Rights"
  door { name: "Agender Door" }
}
connections {
  from_room: "Through Woman (Obverse)"
  to_room: "Welcome Spine (Reverse)"
  door { name: "Agender Door" }
  oneway: true
}
connections {
  from_room: "Above Trans Rights"
  to_room: "Through Woman (Reverse)"
  door { name: "Agender Door" }
  oneway: true
}
connections {
  from {
    painting {
      room: "Big U"
      name: "GO3"
    }
  }
  to {
    painting {
      room: "Trans Rights"
      name: "STOP2"
    }
  }
  oneway: true
}
connections {
  from_room: "Pillar Ramp"
  to_room: "Highest Point"
  door { name: "Pea Door" }
}
connections {
  from {
    painting {
      room: "Fatherland Quicktravel"
      name: "GO7"
    }
  }
  to {
    painting {
      room: "Pillar Ramp"
      name: "STOP6"
    }
  }
  oneway: true
}
connections {
  from_room: "Maze"
  to_room: "Mediums Quicktravel"
  door { name: "Mediums Door" }
}
connections {
  from {
    painting {
      room: "Big U"
      name: "GO1"
    }
  }
  to {
    painting {
      room: "Pillar Ramp"
      name: "STOP10"
    }
  }
  oneway: true
}
connections {
  from_room: "Pillar Ramp"
  to_room: "Banana Belt Door"
  door { name: "Asteroid Bunch Door" }
}
connections {
  from_room: "Through Woman (Obverse)"
  to_room: "Cow Quicktravel"
  door { name: "Cow Door" }
}
connections {
  from {
    painting {
      room: "Welcome Spine Quicktravel"
      name: "GO5"
    }
  }
  to {
    painting {
      room: "Cow Quicktravel"
      name: "STOP4"
    }
  }
  oneway: true
}
connections {
  from_room: "Through Woman (Obverse)"
  to_room: "Behind Welcome Spine"
  door { name: "Ant Door" }
}
connections {
  from_room: "Above Trans Rights"
  to_room: "Behind Welcome Spine"
  door { name: "Ant Door" }
  oneway: true
}
connections {
  from_room: "Through Woman (Obverse)"
  to_room: "Big U"
  door { name: "Man Door" }
}
connections {
  from {
    painting {
      room: "Trans Rights"
      name: "GO2"
    }
  }
  to {
    painting {
      room: "Big U"
      name: "STOP1"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Cow Quicktravel"
      name: "GO4"
    }
  }
  to {
    painting {
      room: "Big U"
      name: "STOP3"
    }
  }
  oneway: true
}
connections {
  from_room: "Welcome Spine (Obverse)"
  to_room: "Through Woman (Obverse)"
  door { name: "Woman Door" }
}
connections {
  from_room: "Fatherland"
  to_room: "Fatherland Quicktravel"
  door { name: "Fatherland Door" }
}
connections {
  from {
    painting {
      room: "Mini Icarus Sun Loop"
      name: "GO8"
    }
  }
  to {
    painting {
      room: "Fatherland Quicktravel"
      name: "STOP7"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Pillar Ramp"
      name: "GO10"
    }
  }
  to {
    painting {
      room: "Mediums Quicktravel"
      name: "STOP9"
    }
  }
  oneway: true
}
connections {
  from_room: "Mini Icarus Wings Painting"
  to_room: "Mini Icarus 2"
  door { name: "Battery Door" }
  oneway: true
}
connections {
  from_room: "Mini Icarus 2"
  to_room: "Mini Icarus Sun Loop"
  door { name: "Battery Door" }
}
connections {
  from {
    painting {
      room: "Mediums Quicktravel"
      name: "GO9"
    }
  }
  to {
    painting {
      room: "Mini Icarus Sun Loop"
      name: "STOP8"
    }
  }
  oneway: true
}
connections {
  from_room: "Mini Icarus 2"
  to_room: "Mini Icarus 3"
  door { name: "Animals Door" }
}
connections {
  from_room: "Mini Icarus 2"
  to_room: "Mini Icarus Wings Painting"
  door { name: "Troupe Door" }
}
connections {
  from_room: "Mini Icarus 2"
  to_room: "Mini Icarus Sun Loop"
  door { name: "Reversed Arrows Door" }
}
connections {
  from_room: "Welcome Spine (Reverse)"
  to_room: "Welcome Spine Quicktravel"
  door { name: "Termite Door" }
}
connections {
  from {
    painting {
      room: "Pillar Ramp"
      name: "GO6"
    }
  }
  to {
    painting {
      room: "Welcome Spine Quicktravel"
      name: "STOP5"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Spiral Ramp"
      name: "SUN5"
    }
  }
  to {
    painting {
      room: "Pillar Ramp"
      name: "SUN6"
    }
  }
  oneway: true
}
connections {
  from_room: "Pillar Ramp"
  to_room: "Patricide Room"
  door { name: "Patricide Door" }
}
connections {
  from_room: "Maze"
  to_room: "Maze Back"
  door { name: "These Door" }
}
connections {
  from_room: "Welcome Spine (Reverse)"
  to_room: "Maze Back"
  oneway: true
}
connections {
  from_room: "Welcome Spine (Obverse)"
  to_room: "Through Woman (Reverse)"
  oneway: true
}
connections {
  from {
    painting {
      room: "Through Woman (Obverse)"
      name: "SUN2"
    }
  }
  to {
    painting {
      room: "Above Trans Rights"
      name: "SUN"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Maze"
      name: "WINGS14"
    }
  }
  to {
    painting {
      room: "Through Woman (Obverse)"
      name: "WINGS6"
    }
  }
  oneway: true
}
connections {
  from_room: "Through Woman (Obverse)"
  to_room: "Behind Welcome Spine"
  door { name: "Woman Door" }
  oneway: true
}
connections {
  from {
    painting {
      room: "Cow Quicktravel"
      name: "SUN4"
    }
  }
  to {
    painting {
      room: "Highest Point"
      name: "SUN3"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Through Woman (Reverse)"
      name: "WINGS8"
    }
  }
  to {
    painting {
      room: "Spiral Ramp"
      name: "WINGS7"
    }
  }
  oneway: true
}
connections {
  from_room: "Through Woman (Reverse)"
  to_room: "Big U"
  oneway: true
}
connections {
  from {
    painting {
      room: "Spiral Ramp"
      name: "WINGS6"
    }
  }
  to {
    painting {
      room: "Through Woman (Obverse)"
      name: "WINGS3"
    }
  }
  # rare two-way painting!
  bypass_target_door: true
}
connections {
  from_room: "Spiral Ramp"
  to_room: "Pillar Ramp"
  oneway: true
}
connections {
  from_room: "Pillar Ramp"
  to_room: "The Orb"
}
connections {
  from {
    painting {
      room: "Banana Belt Door"
      name: "SUN14"
    }
  }
  to {
    painting {
      room: "Above Trans Rights"
      name: "SUN"
    }
  }
  oneway: true
}
connections {
  from_room: "Trans Rights"
  to_room: "Mini Icarus Wings Painting"
  oneway: true
}
connections {
  from {
    painting {
      room: "Mini Icarus Wings Painting"
      name: "WINGS4"
    }
  }
  to {
    painting {
      room: "Mini Icarus Sun Loop"
      name: "TROUBLEDESTINATION"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Painting Maze 1"
      name: "SUN9"
    }
  }
  to {
    painting {
      room: "Mini Icarus 2"
      name: "SUN10"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Mini Icarus 2"
      name: "SUN11"
    }
  }
  to {
    painting {
      room: "Mini Icarus Sun Loop"
      name: "SUN12"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Mini Icarus Sun Loop"
      name: "SUN13"
    }
  }
  to {
    painting {
      room: "Maze"
      name: "SUN14"
    }
  }
  oneway: true
}
connections {
  from_room: "Mini Icarus 3"
  to_room: "Mini Icarus Sun Loop"
  door { name: "Battery Door" }
  oneway: true
}
connections {
  from {
    painting {
      room: "Maze"
      name: "SUN5"
    }
  }
  to {
    painting {
      room: "Painting Maze 2"
      name: "SUN6"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Maze"
      name: "WINGS16"
    }
  }
  to {
    painting {
      room: "Maze Wings Passage"
      name: "WINGS12"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Maze Wings Passage"
      name: "WINGS12"
    }
  }
  to {
    painting {
      room: "Patricide Room"
      name: "WINGS10"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Patricide Room"
      name: "SUN4"
    }
  }
  to {
    painting {
      room: "Maze"
      name: "SUN4"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Maze"
      name: "WINGS9"
    }
  }
  to {
    painting {
      room: "Patricide Room"
      name: "WINGS10"
    }
  }
  oneway: true
}
connections {
  from_room: "Maze"
  to_room: "Maze King Panel"
  oneway: true
}
connections {
  from_room: "Maze King Painting"
  to_room: "Maze King Panel"
  oneway: true
}
connections {
  from {
    painting {
      room: "Maze King Painting"
      name: "WINGS13"
    }
  }
  to {
    painting {
      room: "Maze Wings Passage"
      name: "WINGS12"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Fatherland"
      name: "SUN7"
    }
  }
  to {
    painting {
      room: "Painting Maze 1"
      name: "SUN8"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Painting Maze 2"
      name: "WINGS11"
    }
  }
  to {
    painting {
      room: "Fatherland"
      name: "WINGS2"
    }
  }
  oneway: true
}
connections {
  from {
    painting {
      room: "Painting Maze 1"
      name: "WINGS3"
    }
  }
  to {
    painting {
      room: "Maze Wings Passage"
      name: "WINGS12"
    }
  }
  oneway: true
}
connections {
  from_room: "Trans Rights"
  to_room: "Trans Rights Panels"
  oneway: true
}
connections {
  from_room: "Above Trans Rights"
  to_room: "Trans Rights Panels"
  oneway: true
}
connections {
  from_room: "Welcome Spine (Obverse)"
  to_room: "Mastery"
  door { name: "Mastery" }
}
# It is possible to fall out of the map from every room, which always sends you
# back to the beginning.
connections {
  from_room: "Above Trans Rights"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Banana Belt Door"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Behind Welcome Spine"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Big U"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Cow Quicktravel"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Fatherland Quicktravel"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Fatherland"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Highest Point"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Maze Back"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Maze King Painting"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Maze Wings Passage"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Maze"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Mediums Quicktravel"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Mini Icarus 2"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Mini Icarus 3"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Mini Icarus Sun Loop"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Mini Icarus Wings Painting"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Painting Maze 1"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Painting Maze 2"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Patricide Room"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Pillar Ramp"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Spiral Ramp"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "The Orb"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Through Woman (Obverse)"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Through Woman (Reverse)"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Trans Rights"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Welcome Spine (Reverse)"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}
connections {
  from_room: "Welcome Spine Quicktravel"
  to_room: "Welcome Spine (Obverse)"
  oneway: true
}