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
50 lines
1.4 KiB
Python
50 lines
1.4 KiB
Python
from collections.abc import Mapping
|
|
from typing import Any
|
|
|
|
from worlds.AutoWorld import World
|
|
|
|
from . import items, locations, options, regions, rules, web_world
|
|
|
|
class CatQuestWorld(World):
|
|
"""
|
|
Cat Quest is a small open world ARPG set in a cute world full of cats and cat puns.
|
|
Slash and dodge enemies while completing quests, dungeons and obtaining new gear.
|
|
"""
|
|
|
|
game = "Cat Quest"
|
|
web = web_world.CatQuestWebWorld()
|
|
|
|
options_dataclass = options.CatQuestOptions
|
|
options: options.CatQuestOptions
|
|
|
|
location_name_to_id = locations.LOCATION_NAME_TO_ID
|
|
item_name_to_id = items.ITEM_NAME_TO_ID
|
|
|
|
origin_region_name = "Felingard"
|
|
|
|
def create_regions(self) -> None:
|
|
regions.create_and_connect_regions(self)
|
|
locations.create_all_locations(self)
|
|
|
|
def set_rules(self) -> None:
|
|
rules.set_all_rules(self)
|
|
|
|
def create_items(self) -> None:
|
|
items.create_all_items(self)
|
|
|
|
def create_item(self, name: str) -> items.CatQuestItem:
|
|
return items.create_item_with_correct_classification(self, name)
|
|
|
|
def get_filler_item_name(self) -> str:
|
|
return items.get_random_filler_item_name(self)
|
|
|
|
def fill_slot_data(self) -> Mapping[str, Any]:
|
|
return self.options.as_dict(
|
|
"goal",
|
|
"include_temples",
|
|
"skill_upgrade",
|
|
"include_monuments",
|
|
"include_quest_reward_exp",
|
|
"include_quest_reward_coins"
|
|
)
|
|
|