Skip to content

Commit

Permalink
Desert Laser fixes
Browse files Browse the repository at this point in the history
Added a script, $laser|num to check status of a laser
  • Loading branch information
Beaker271 committed Apr 22, 2023
1 parent 59ec55b commit 875115f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions locations/locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@
{
"name": "Elevator EP",
"visibility_rules": ["eps"],
"access_rules": ["@Places/desertLaser", "Desert Laser"],
"access_rules": ["@Places/desertLaser, $laser|4"],
"item_count": 1
}
],
Expand Down Expand Up @@ -934,7 +934,7 @@
{
"name": "Elevator EP (Desert Side 4)",
"visibility_rules": ["obelisks"],
"access_rules": ["@Places/desertLaser", "Desert Laser"],
"access_rules": ["@Places/desertLaser, $laser|4"],
"item_count": 1
}
],
Expand Down Expand Up @@ -1845,7 +1845,7 @@
"access_rules": ["@Pressure Plates 4/Pressure Plates, @Places/keepTower"],
"visibility_rules": ["obelisks"],
"item_count": 1
},
}
],
"map_locations": [
{
Expand Down Expand Up @@ -2512,7 +2512,7 @@
"sections": [
{
"name": "Main Island Thundercloud EP",
"access_rules": ["@Desert/Laser", "Desert Laser"],
"access_rules": ["$laser|4"],
"visibility_rules": ["eps"],
"item_count": 1
}
Expand Down Expand Up @@ -2812,7 +2812,7 @@
"visibility_rules": ["obelisks, epDiffEclipse, Unrandomized"],
"access_rules": ["@Theater/Challenge Video", "epDiffNormal", "epdiffTedious"],
"item_count": 1
},
}

],
"map_locations": [
Expand Down Expand Up @@ -4849,7 +4849,7 @@
"name": "Challenge Water EP (Town Side 4)",
"visibility_rules": ["obelisks"],
"item_count": 1
},
}
],
"map_locations": [
{
Expand Down
4 changes: 2 additions & 2 deletions locations/logic.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"access_rules": [
"$isDoors|off, [$hasPanel|Desert Flood Room Flood Controls (Panel)], @Places/desertFlood",
"$isDoors|on, Desert Door to Elevator Room, @Places/desertFlood",
"$isDoors|on, Desert Laser, Theater Walkway Door to Desert Elevator Room, @Places/tunnels"
"$isDoors|on, $laser|4, Theater Walkway Door to Desert Elevator Room, @Places/tunnels"
],
"item_count": 1
},
Expand Down Expand Up @@ -603,7 +603,7 @@
"access_rules": [
"$isDoors|off, @Mountain Challenge Area/Door to Tunnels Panel, @Places/challenge",
"$isDoors|on, Theater Walkway Door to Town",
"$isDoors|on, Theater Walkway Door to Desert Elevator Room, @Places/desertLaser",
"$isDoors|on, Theater Walkway Door to Desert Elevator Room, $laser|4, @Places/desertLaser",
"$isDoors|on, Theater Walkway Door to Back of Theater, @Places/windmill",
"$isDoors|on, Challenge Door to Theater Walkway, @Places/challenge"
],
Expand Down
4 changes: 4 additions & 0 deletions scripts/archipelago.lua
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ function showGoal()
print(Tracker:FindObjectForCode("Goal").CurrentStage, Tracker:FindObjectForCode("hiddenGoal").CurrentStage)
end

function laser(num)
return (lasers[tonumber(num)] > 0)
end


-- add AP callbacks
-- un-/comment as needed
Expand Down

0 comments on commit 875115f

Please sign in to comment.