Files
dockipelago/worlds/pvzr/Items.py
Jonathan Tinney 7971961166
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
add schedule I, sonic 1/frontiers/heroes, spirit island
2026-04-02 23:46:36 -07:00

51 lines
1.2 KiB
Python

from typing import Dict, NamedTuple, Optional
from BaseClasses import Item, ItemClassification
from .Data import ALL_PLANTS, LEVELS
class PVZRItem(Item):
game: str = "Plants vs. Zombies: Replanted"
item_ids: Dict[str, int] = {
"Music Video": 1,
"Crazy Dave's Car Keys": 2,
"Extra Seed Slot": 3,
"Shovel": 4,
"Suburban Almanac": 5,
"Zen Garden": 6,
"Mini-games": 7,
"Puzzle Mode": 8,
"Survival Mode": 9,
"Cloudy Day": 10,
"Bonus Levels": 11,
"Roof Cleaners": 12,
"Pool Cleaners": 13,
"Lawn Mowers": 14,
"Twiddydinkies Restock": 15,
"Wall-nut First Aid": 16,
"Rake": 17,
"Day Access": 20,
"Night Access": 21,
"Pool Access": 22,
"Fog Access": 23,
"Roof Access": 24,
"Mustache Mode": 50,
"Future Zombies Mode": 51,
"Tricked Out Mode": 52,
"Daisies Mode": 53,
"Pinata Mode": 54,
"Alternate Brains Sound": 55,
"Dancing Zombies Mode": 56,
"Silver Coin": 60,
"Gold Coin": 61,
"Diamond": 62,
"Nothing": 63,
"Mower Deploy Trap": 70,
"Seed Packet Cooldown Trap": 71,
"Zombie Ambush Trap": 72
}
for seed_packet in ALL_PLANTS:
item_ids[seed_packet] = 100 + ALL_PLANTS.index(seed_packet)
for level in LEVELS:
item_ids[LEVELS[level]["unlock_item_name"]] = 200 + LEVELS[level]["id"]