Files
Grinch-AP/worlds/checksfinder/Items.py
Exempt-Medic 90446ad175 ChecksFinder: Refactor/Cleaning (#3725)
* Update ChecksFinder

* minor cleanup

* Check for compatible name

* Enable APWorld

* Update setup_en.md

* Update en_ChecksFinder.md

* The client is getting updated instead

* Qwint suggestions, ' -> ", streamline fill_slot_data

* Oops, too many refactors

---------

Co-authored-by: SunCat <suncat.game@ya.ru>
2024-08-06 16:39:56 +02:00

21 lines
417 B
Python

from BaseClasses import Item
import typing
class ItemData(typing.NamedTuple):
code: int
progression: bool = True
class ChecksFinderItem(Item):
game: str = "ChecksFinder"
item_table = {
"Map Width": ItemData(80000),
"Map Height": ItemData(80001),
"Map Bombs": ItemData(80002),
}
lookup_id_to_name: typing.Dict[int, str] = {data.code: item_name for item_name, data in item_table.items()}