1
1
from typing import Dict , Set
2
- from BaseClasses import MultiWorld
3
-
4
-
5
- class TunicEntrance :
6
- name : str
7
- rule : bool
8
-
9
- def __init__ (self , name , rule ):
10
- self .name = name
11
- self .rule = rule
12
-
13
2
14
3
tunic_regions : Dict [str , Set [str ]] = {
15
4
"Menu" : {"Overworld" },
16
5
"Overworld" : {"Menu" , "Overworld Holy Cross" , "East Forest" , "Dark Tomb" , "Bottom of the Well" , "West Garden" ,
17
- "Ruined Atoll" , "Eastern Vault Fortress" , "Beneath the Vault" , "Quarry" , "Swamp" , "Boss Arena" },
6
+ "Ruined Atoll" , "Eastern Vault Fortress" , "Beneath the Vault" , "Quarry" , "Swamp" , "Spirit Arena" },
18
7
"Overworld Holy Cross" : {"Overworld" },
19
8
"East Forest" : {"Overworld" , "Eastern Vault Fortress" },
20
9
"Dark Tomb" : {"Overworld" , "West Garden" },
@@ -30,46 +19,5 @@ def __init__(self, name, rule):
30
19
"Rooted Ziggurat" : {"Lower Quarry" },
31
20
"Swamp" : {"Overworld" , "Cathedral" },
32
21
"Cathedral" : {"Swamp" },
33
- "Boss Arena" : {"Overworld" }
34
- }
35
-
36
-
37
-
38
- def set_region_rules (multiworld : MultiWorld , player : int ):
39
- laurels = "Hero's Laurels"
40
- grapple = "Magic Orb"
41
- lantern = "Lantern"
42
- mask = "Scavenger Mask"
43
- prayer = "Pages 24-25 (Prayer)"
44
- holy_cross = "Pages 42-43 (Holy Cross)"
45
- red_hexagon = "Red Hexagon"
46
- green_hexagon = "Green Hexagon"
47
- blue_hexagon = "Blue Hexagon"
48
-
49
- ability_shuffle = multiworld .ability_shuffling [player ].value
50
-
51
- if ability_shuffle :
52
- multiworld .get_entrance ("Overworld -> Overworld Holy Cross" , player ).access_rule = lambda state : state .has (holy_cross , player )
53
- multiworld .get_entrance ("Library -> Ruined Atoll" , player ).access_rule = lambda state : state .has (prayer , player )
54
- multiworld .get_entrance ("Overworld -> Beneath the Vault" , player ).access_rule = lambda state : state .has (lantern , player ) and state .has (prayer , player )
55
- multiworld .get_entrance ("Lower Quarry -> Rooted Ziggurat" , player ).access_rule = lambda state : state .has (grapple , player ) and state .has (prayer , player )
56
- multiworld .get_entrance ("Swamp -> Cathedral" , player ).access_rule = lambda state : state .has (laurels , player ) and state .has (prayer , player )
57
- multiworld .get_entrance ("Ruined Atoll -> Library" , player ).access_rule = lambda state : (state .has (grapple , player ) or state .has (laurels , player )) and state .has (prayer , player )
58
- multiworld .get_entrance ("Overworld -> Boss Arena" , player ).access_rule = lambda state : state .has (prayer , player ) and state .has (red_hexagon , player ) and state .has (green_hexagon , player ) and state .has (blue_hexagon , player )
59
- else :
60
- multiworld .get_entrance ("Overworld -> Beneath the Vault" , player ).access_rule = lambda state : state .has (lantern , player )
61
- multiworld .get_entrance ("Lower Quarry -> Rooted Ziggurat" , player ).access_rule = lambda state : state .has (grapple , player )
62
- multiworld .get_entrance ("Swamp -> Cathedral" , player ).access_rule = lambda state : state .has (laurels , player )
63
- multiworld .get_entrance ("Ruined Atoll -> Library" , player ).access_rule = lambda state : state .has (grapple , player ) or state .has (laurels , player )
64
- multiworld .get_entrance ("Overworld -> Boss Arena" , player ).access_rule = lambda state : state .has (red_hexagon , player ) and state .has (green_hexagon , player ) and state .has (blue_hexagon , player )
65
-
66
- multiworld .get_entrance ("Overworld -> Dark Tomb" , player ).access_rule = lambda state : state .has (lantern , player )
67
- multiworld .get_entrance ("Overworld -> West Garden" , player ).access_rule = lambda state : state .has (laurels , player )
68
- multiworld .get_entrance ("Overworld -> Eastern Vault Fortress" , player ).access_rule = lambda state : state .has (laurels , player )
69
- multiworld .get_entrance ("East Forest -> Eastern Vault Fortress" , player ).access_rule = lambda state : state .has (laurels , player )
70
- multiworld .get_entrance ("Bottom of the Well -> Dark Tomb" , player ).access_rule = lambda state : state .has (lantern , player )
71
- multiworld .get_entrance ("West Garden -> Dark Tomb" , player ).access_rule = lambda state : state .has (lantern , player )
72
- multiworld .get_entrance ("Eastern Vault Fortress -> Beneath the Vault" , player ).access_rule = lambda state : state .has (lantern , player )
73
- multiworld .get_entrance ("Quarry -> Lower Quarry" , player ).access_rule = lambda state : state .has (mask , player )
74
-
75
-
22
+ "Spirit Arena" : {"Overworld" }
23
+ }
0 commit comments