forked from mirror/Archipelago
Some checks failed
Analyze modified files / flake8 (push) Failing after 2m28s
Build / build-win (push) Has been cancelled
Build / build-ubuntu2204 (push) Has been cancelled
ctest / Test C++ ubuntu-latest (push) Has been cancelled
ctest / Test C++ windows-latest (push) Has been cancelled
Analyze modified files / mypy (push) Has been cancelled
Build and Publish Docker Images / Push Docker image to Docker Hub (push) Successful in 5m4s
Native Code Static Analysis / scan-build (push) Failing after 5m2s
type check / pyright (push) Successful in 1m7s
unittests / Test Python 3.11.2 ubuntu-latest (push) Failing after 16m23s
unittests / Test Python 3.12 ubuntu-latest (push) Failing after 28m19s
unittests / Test Python 3.13 ubuntu-latest (push) Failing after 14m49s
unittests / Test hosting with 3.13 on ubuntu-latest (push) Successful in 5m0s
unittests / Test Python 3.13 macos-latest (push) Has been cancelled
unittests / Test Python 3.11 windows-latest (push) Has been cancelled
unittests / Test Python 3.13 windows-latest (push) Has been cancelled
30 lines
1018 B
Python
30 lines
1018 B
Python
from ..data.EntranceList import (bowser_shortened_entrances_add, bowser_shortened_entrances_rmv,
|
|
bowser_boss_rush_entrances_add, bowser_boss_rush_entrances_rmv)
|
|
|
|
|
|
def get_entrance_pair(old_data, new_data) -> (int, int):
|
|
old_area, old_map, old_exit = old_data
|
|
|
|
new_area, new_map, new_exit = new_data
|
|
|
|
key = ((0xA3 << 24) | (old_area << 16) | (old_map << 8) | old_exit)
|
|
value = ((new_area << 16) | (new_map << 8) | new_exit)
|
|
return key, value
|
|
|
|
|
|
def get_entrance_pairs(entrances_to_remove: list, entrances_to_add: list):
|
|
entrance_list = []
|
|
|
|
for i in range(0, len(entrances_to_remove)):
|
|
entrance_list.append(get_entrance_pair(entrances_to_remove[i], entrances_to_add[i]))
|
|
|
|
return entrance_list
|
|
|
|
|
|
def get_bowser_rush_pairs():
|
|
return get_entrance_pairs(bowser_boss_rush_entrances_rmv, bowser_boss_rush_entrances_add)
|
|
|
|
|
|
def get_bowser_shortened_pairs():
|
|
return get_entrance_pairs(bowser_shortened_entrances_rmv, bowser_shortened_entrances_add)
|