Skip to content

Commit 392143c

Browse files
authored
Merge pull request #2519 from 2dos/dev
Dev -> Master
2 parents 6551dca + 6906210 commit 392143c

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
22
commit = True
33
tag = False
4-
current_version = 4.10.70
4+
current_version = 4.10.73
55

66
[bumpversion:file:version.py]
77
search = version = "{current_version}"

controller/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import time
1010
import sys
1111
import socket
12-
from datetime import UTC, datetime
12+
from datetime import timezone, datetime
1313
from os import environ, path, walk
1414

1515
import requests
@@ -589,12 +589,12 @@ def get_total_info():
589589
last_generated_time = datetime.strptime(f.read().strip(), "%Y-%m-%d %H:%M:%S.%f%z")
590590
except ValueError:
591591
logging.error("Incorrect date format in last_generated_time.cfg, resetting to current time.")
592-
last_generated_time = datetime.now(UTC)
592+
last_generated_time = datetime.now(timezone.utc)
593593
with open("last_generated_time.cfg", "w") as f:
594594
f.write(last_generated_time.isoformat())
595595
except Exception:
596596
# If we can't read the file, just set it to the current time.
597-
last_generated_time = datetime.now(UTC)
597+
last_generated_time = datetime.now(timezone.utc)
598598
with open("last_generated_time.cfg", "w") as f:
599599
f.write(last_generated_time.isoformat())
600600
return current_total, last_generated_time

randomizer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ <h2>Attempting to get Spoiler Log</h2>
255255
Generate Spoiler Log
256256
</label>
257257
</div>
258-
<div class="form-check form-switch item-switch" style="text-align: center">
258+
<div class="form-check form-switch item-switch" style="text-align: center; display: none">
259259
<label data-toggle="tooltip"
260260
title="Locks entry into the file with a password. Used solely for races.">
261261
<input class="form-check-input"

randomizer/Enums/Transitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class Transitions(IntEnum):
8989
FactoryRaceToRandD = auto()
9090
FactoryChunkyRoomToPower = auto()
9191
FactoryPowerToChunkyRoom = auto()
92-
FactoryBeyondHatchToInsideCore = auto()
93-
FactoryInsideCoreToBeyondHatch = auto()
92+
FactoryLowerCoreToInsideCore = auto()
93+
FactoryInsideCoreToLowerCore = auto()
9494
FactoryMainToBBlast = auto()
9595

9696
# Gloomy Galleon Exits

randomizer/Lists/ShufflableExit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def __init__(self, name: str, region: Regions, back: TransitionBack, category: O
120120
Transitions.FactoryRaceToRandD: ShufflableExit("Frantic Factory Car Race to Research and Development", Regions.FactoryTinyRace, TransitionBack(Regions.FactoryTinyRaceLobby, "From Car Race", "Frantic Factory Main from Car Race", Transitions.FactoryRandDToRace)),
121121
Transitions.FactoryChunkyRoomToPower: ShufflableExit("Frantic Factory Main to Power Shed", Regions.ChunkyRoomPlatform, TransitionBack(Regions.PowerHut, "From Factory Main", "Frantic Factory Power Shed", Transitions.FactoryPowerToChunkyRoom), ExitCategories.FactoryExterior, entryKongs={Kongs.donkey}, regionKongs={Kongs.donkey}),
122122
Transitions.FactoryPowerToChunkyRoom: ShufflableExit("Frantic Factory Power Room to Chunky Room", Regions.PowerHut, TransitionBack(Regions.ChunkyRoomPlatform, "From Power Shed", "Frantic Factory Main from Power Shed", Transitions.FactoryChunkyRoomToPower)),
123-
Transitions.FactoryBeyondHatchToInsideCore: ShufflableExit("Frantic Factory Main to Crusher Room", Regions.BeyondHatch, TransitionBack(Regions.InsideCore, "From Factory Main", "Frantic Factory Crusher Room", Transitions.FactoryInsideCoreToBeyondHatch), ExitCategories.FactoryExterior, regionKongs={Kongs.donkey, Kongs.lanky}),
124-
Transitions.FactoryInsideCoreToBeyondHatch: ShufflableExit("Frantic Factory Crusher Room to Main", Regions.InsideCore, TransitionBack(Regions.BeyondHatch, "From Crusher Room", "Frantic Factory Main from Crusher Room", Transitions.FactoryBeyondHatchToInsideCore)),
123+
Transitions.FactoryLowerCoreToInsideCore: ShufflableExit("Frantic Factory Main to Crusher Room", Regions.LowerCore, TransitionBack(Regions.InsideCore, "From Factory Main", "Frantic Factory Crusher Room", Transitions.FactoryInsideCoreToLowerCore), ExitCategories.FactoryExterior, regionKongs={Kongs.donkey, Kongs.lanky}),
124+
Transitions.FactoryInsideCoreToLowerCore: ShufflableExit("Frantic Factory Crusher Room to Main", Regions.InsideCore, TransitionBack(Regions.LowerCore, "From Crusher Room", "Frantic Factory Main from Crusher Room", Transitions.FactoryLowerCoreToInsideCore)),
125125
# Transitions.FactoryMainToBBlast: ShufflableExit("Frantic Factory Main to BBlast", Regions.BeyondHatch, TransitionBack(Regions.FactoryBaboonBlast, "From Factory Main", "Frantic Factory Baboon Blast"), ExitCategories.FactoryExterior, entryKongs={Kongs.donkey}, regionKongs={Kongs.donkey}, move=True),
126126

127127
# Gloomy Galleon Exits

randomizer/LogicFiles/AngryAztec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
Event(Events.AztecW1aTagged, lambda l: True),
4747
], [
4848
TransitionFront(Regions.AngryAztecStart, lambda l: l.can_use_vines or (l.istiny and l.twirl) or l.CanPhase()),
49-
TransitionFront(Regions.AngryAztecOasis, lambda l: l.assumeAztecEntry or l.can_use_vines or (l.istiny and l.twirl) or l.CanPhase()),
49+
TransitionFront(Regions.AztecTunnelBeforeOasis, lambda l: l.assumeAztecEntry or l.can_use_vines or (l.istiny and l.twirl) or l.CanPhase()),
5050
]),
5151

5252
Regions.AztecTunnelBeforeOasis: Region("Angry Aztec Tunnel Before Oasis", HintRegion.AztecTunnels, Levels.AngryAztec, False, -1, [

randomizer/LogicFiles/FranticFactory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140
], [
141141
Event(Events.TestingGateOpened, lambda l: l.Slam),
142142
Event(Events.FactoryW1bTagged, lambda l: True),
143-
Event(Events.FactoryW4aTagged, lambda l: True),
144143
], [
145144
TransitionFront(Regions.FactoryArcadeTunnel, lambda l: l.climbing),
146145
TransitionFront(Regions.LowerCore, lambda l: True),
@@ -193,24 +192,25 @@
193192
Event(Events.LankyCoreSwitch, lambda l: l.CanSlamSwitch(Levels.FranticFactory, 1) and l.lanky),
194193
Event(Events.TinyCoreSwitch, lambda l: l.CanSlamSwitch(Levels.FranticFactory, 1) and l.tiny),
195194
Event(Events.ChunkyCoreSwitch, lambda l: l.CanSlamSwitch(Levels.FranticFactory, 1) and l.chunky),
195+
Event(Events.FactoryW4aTagged, lambda l: True),
196196
], [
197197
TransitionFront(Regions.BeyondHatch, lambda l: True),
198198
TransitionFront(Regions.AlcoveBeyondHatch, lambda l: Events.HatchOpened in l.Events and l.climbing),
199199
TransitionFront(Regions.FranticFactoryStart, lambda l: Events.HatchOpened in l.Events and l.climbing),
200-
TransitionFront(Regions.InsideCore, lambda l: Events.MainCoreActivated in l.Events or l.CanPhase(), Transitions.FactoryBeyondHatchToInsideCore),
200+
TransitionFront(Regions.InsideCore, lambda l: Events.MainCoreActivated in l.Events or l.CanPhase(), Transitions.FactoryLowerCoreToInsideCore),
201201
TransitionFront(Regions.MiddleCore, lambda l: Events.MainCoreActivated in l.Events),
202202
]),
203203

204204
Regions.InsideCore: Region("Inside Core", HintRegion.ProductionRoom, Levels.FranticFactory, False, -1, [
205205
LocationLogic(Locations.FactoryDonkeyCrusherRoom, lambda l: (l.strongKong and l.isdonkey) or l.generalclips or l.CanPhase()),
206206
], [], [
207-
TransitionFront(Regions.LowerCore, lambda l: True, Transitions.FactoryInsideCoreToBeyondHatch),
207+
TransitionFront(Regions.LowerCore, lambda l: True, Transitions.FactoryInsideCoreToLowerCore),
208208
]),
209209

210210
Regions.MiddleCore: Region("Middle Core", HintRegion.ProductionRoom, Levels.FranticFactory, False, None, [], [], [
211211
TransitionFront(Regions.LowerCore, lambda l: True),
212212
TransitionFront(Regions.SpinningCore, lambda l: l.climbing),
213-
TransitionFront(Regions.InsideCore, lambda l: l.ledgeclip, Transitions.FactoryBeyondHatchToInsideCore, isGlitchTransition=True),
213+
TransitionFront(Regions.InsideCore, lambda l: l.ledgeclip, Transitions.FactoryLowerCoreToInsideCore, isGlitchTransition=True),
214214
]),
215215

216216
Regions.SpinningCore: Region("Spinning Core", HintRegion.ProductionRoom, Levels.FranticFactory, True, None, [

randomizer/Patching/ApplyLocal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import time
1010
import string
1111
from datetime import datetime as Datetime
12-
from datetime import UTC
12+
from datetime import timezone
1313
import js
1414
from randomizer.Enums.Models import Model, ModelNames, HeadResizeImmune
1515
from randomizer.Enums.Settings import RandomModels, BigHeadMode
@@ -108,7 +108,7 @@ async def patching_response(data, from_patch_gen=False, lanky_from_history=False
108108
js.write_seed_history(seed_id, str(data), json.dumps(settings.seed_hash))
109109
js.load_old_seeds()
110110

111-
curr_time = Datetime.now(UTC)
111+
curr_time = Datetime.now(timezone.utc)
112112
unix = time.mktime(curr_time.timetuple())
113113
random.seed(int(unix))
114114
split_version = version.split(".")

randomizer/Patching/ApplyRandomizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
import os
55
from datetime import datetime as Datetime
6-
from datetime import UTC
6+
from datetime import timezone
77
import time
88
from tempfile import mktemp
99
from randomizer.Enums.Settings import (
@@ -146,7 +146,7 @@ def patching_response(spoiler):
146146

147147
# Write date to ROM for debugging purposes
148148

149-
dt = Datetime.now(UTC).strftime("%Y-%m-%d %H:%M:%S")
149+
dt = Datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
150150
temp_json = json.loads(spoiler.json)
151151
temp_json["Settings"]["Generation Timestamp"] = dt
152152
spoiler.json = json.dumps(temp_json, indent=4)

templates/overworld.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h2 class="title">GLOBAL SETTINGS</h2>
101101
class="form-select"
102102
aria-label="Logic"
103103
data-toggle="tooltip"
104-
title="If this is checked, then locations and entrances will be shuffled without logic.&#10;WARNING: This can lead to unbeatable seeds, or seeds that require a high level of glitch knowledge to complete.">
104+
title="Modifies the considerations logic makes when generating your seed:&#10;- Glitchless Logic: Seed is beatable without performing any glitches or complex movement tech.&#10;- Glitch Logic: Seed is beatable, but requires usage of glitches or movement tech to complete. To modify which glitches will be considered, use the cog icon to the right.&#10;- No logic: The seed does not verify that the seed is beatable at all, nor makes any logical considerations during the creation of the seed. This has a high potential to generate unbeatable seeds.">
105105
<option id="glitchless" selected value="glitchless">
106106
Glitchless Logic
107107
</option>

0 commit comments

Comments
 (0)