Book 3 - Shrines (Part 1)
Part 1 - Shrine Locations
A shrine room is a kind of room.
Some shrine rooms are defined by the Table of Defined Shrine Rooms.
Table of Defined Shrine Rooms
shrine rooms |
S1 |
S2 |
S3 |
S4 |
S5 |
S6 |
S7 |
S8 |
S9 |
S10 |
A shrine entrance is a kind of thing. A shrine entrance is usually fixed in place.
Some shrine entrances are defined by the Table of Defined Shrine Entrances.
Table of Defined Shrine Entrances
shrine entrance |
SD1 |
SD2 |
SD3 |
SD4 |
SD5 |
SD6 |
SD7 |
SD8 |
SD9 |
SD10 |
Table of Defined Shrine Connections
shrine | shrine entrance | |
S1 | SD1 | |
S2 | SD2 | |
S3 | SD3 | |
S4 | SD4 | |
S5 | SD5 | |
S6 | SD6 | |
S7 | SD7 | |
S8 | SD8 | |
S9 | SD9 | |
S10 | SD10 |
Admission relates one shrine entrance to one shrine room.
The verb to admit to (it admits to, it admitted to, it is admitting to) implies the admission relation.
Definition: A room (called the chosen room) is shrine-full rather than shrine-free if a shrine entrance is in the chosen room.
To randomize shrine locations:
repeat through the Table of Defined Shrine Connections:
now the shrine entrance entry admits to the shrine entry;
repeat with temporary entrance running through shrine entrances:
let the temporary room be a random shrine-free Blight room;
while the temporary room is R1:
let the temporary room be a random shrine-free Blight room;
now the temporary entrance is in the temporary room;
if the temporary entrance admits to a shrine room (called the target shrine):
change the inside exit of the temporary room to the target shrine;
change the outside exit of the target shrine to the temporary room.
Before entering a shrine entrance:
try going inside instead.
A shrine entrance can be attempted or unattempted. A shrine entrance is usually unattempted.
Before going inside from a shrine-full room:
if a shrine entrance (called the target shrine entrance) is visible:
now the target shrine entrance is attempted.