Compare commits
No commits in common. "1913f51f006a3a13162617327e3dd64e150ecb11" and "a49f9dde326e4386330d7e7bb6e7fdb46c7a3e46" have entirely different histories.
1913f51f00
...
a49f9dde32
@ -27,7 +27,6 @@ class Game:
|
|||||||
self.majorItemLocations = list()
|
self.majorItemLocations = list()
|
||||||
self.minorItemLocations = list()
|
self.minorItemLocations = list()
|
||||||
self.itemLocations = list()
|
self.itemLocations = list()
|
||||||
self.itemArea = dict()
|
|
||||||
self.patcher = dict()
|
self.patcher = dict()
|
||||||
self.graph.clear()
|
self.graph.clear()
|
||||||
self.areaConnections.clear()
|
self.areaConnections.clear()
|
||||||
@ -235,8 +234,7 @@ class Game:
|
|||||||
for area in range(0, 7):
|
for area in range(0, 7):
|
||||||
if 'S{}'.format(area) in start:
|
if 'S{}'.format(area) in start:
|
||||||
if 'S{}'.format(area) not in point:
|
if 'S{}'.format(area) not in point:
|
||||||
if self.itemArea.get(point) != area:
|
return None
|
||||||
return None
|
|
||||||
edge = (start, point)
|
edge = (start, point)
|
||||||
self.queue.append(edge)
|
self.queue.append(edge)
|
||||||
while self.queue:
|
while self.queue:
|
||||||
|
@ -3127,7 +3127,6 @@ def start_randomizer(rom, settings):
|
|||||||
BossLocations.append(name)
|
BossLocations.append(name)
|
||||||
if 'Item' in name or nodeType == 'Boss' or nodeType == 'Data':
|
if 'Item' in name or nodeType == 'Boss' or nodeType == 'Data':
|
||||||
AreaItemLocations[areaIndex].append(name)
|
AreaItemLocations[areaIndex].append(name)
|
||||||
World.itemArea[name] = areaIndex
|
|
||||||
|
|
||||||
World.ConnectAllNodes()
|
World.ConnectAllNodes()
|
||||||
StartLocation = 'S0-00'
|
StartLocation = 'S0-00'
|
||||||
|
22
build.sh
22
build.sh
@ -1,22 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
mkdir -p myapp
|
|
||||||
|
|
||||||
if ! test -d myapp/bps; then
|
|
||||||
echo "Installing dependencies to ./myapp"
|
|
||||||
pip install -r requirements.txt --target myapp
|
|
||||||
rm -rf myapp/bin/ myapp/bps/test/ myapp/{bps,PySimpleGUI}/__pycache__/ myapp/*.dist-info/
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Copying source files to ./myapp"
|
|
||||||
cp Fusion_Graph.py myapp/Fusion_Graph.py
|
|
||||||
cp Fusion_Items.py myapp/Fusion_Items.py
|
|
||||||
cp Randomizer.py myapp/Randomizer.py
|
|
||||||
cp GUI.py myapp/GUI.py
|
|
||||||
cp MFOR.py myapp/__main__.py
|
|
||||||
|
|
||||||
echo "Building MFOR.pyz"
|
|
||||||
python3 -m zipapp -o MFOR.pyz --python "/usr/bin/env python3" --compress myapp
|
|
||||||
|
|
||||||
echo "Done"
|
|
Loading…
x
Reference in New Issue
Block a user