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
35 lines
930 B
Python
35 lines
930 B
Python
from typing import Dict, NamedTuple, Optional
|
|
|
|
from BaseClasses import Item, ItemClassification
|
|
from .Data import SONGS, SNACKS, PROPS, PLAYABLE_CHARACTERS, OUTFITS, PROGRESSION_PROPS
|
|
|
|
class KONItem(Item):
|
|
game: str = "K-On! After School Live!!"
|
|
|
|
item_ids: Dict[str, int] = {
|
|
"Happy End": 301,
|
|
"Hard Difficulty": 302,
|
|
"Teatime Token": 700,
|
|
"Cassette Tape": 701,
|
|
"Snack Upgrade": 800
|
|
}
|
|
|
|
for song in SONGS:
|
|
item_ids[song] = SONGS[song]["item_id"]
|
|
|
|
for snack in SNACKS:
|
|
item_ids[snack] = SNACKS[snack]["item_id"]
|
|
|
|
for prop in PROPS:
|
|
if "item_id" in PROPS[prop]:
|
|
if prop in PROGRESSION_PROPS:
|
|
item_ids[prop] = PROPS[prop]["item_id"]
|
|
else:
|
|
item_ids[prop] = PROPS[prop]["item_id"]
|
|
|
|
for outfit in OUTFITS:
|
|
if "item_id" in OUTFITS[outfit]:
|
|
item_ids[outfit] = OUTFITS[outfit]["item_id"]
|
|
|
|
for playable_character in PLAYABLE_CHARACTERS:
|
|
item_ids[playable_character] = PLAYABLE_CHARACTERS[playable_character]["item_id"] |