mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
Add VVVVVV to Archipelago (#178)
This commit is contained in:

committed by
GitHub

parent
4291912577
commit
344f4afdbd
47
worlds/v6/__init__.py
Normal file
47
worlds/v6/__init__.py
Normal file
@@ -0,0 +1,47 @@
|
||||
import string
|
||||
from .Items import item_table, V6Item
|
||||
from .Locations import location_table, V6Location
|
||||
from .Options import v6_options
|
||||
from .Rules import set_rules
|
||||
from .Regions import create_regions
|
||||
from BaseClasses import Region, RegionType, Entrance, Item, MultiWorld
|
||||
from ..AutoWorld import World
|
||||
|
||||
client_version = 1
|
||||
|
||||
class V6World(World):
|
||||
"""
|
||||
VVVVVV is a platform game all about exploring one simple mechanical idea - what if you reversed gravity instead of jumping?
|
||||
""" #Lifted from Store Page
|
||||
|
||||
game: str = "VVVVVV"
|
||||
topology_present = False
|
||||
|
||||
item_name_to_id = item_table
|
||||
location_name_to_id = location_table
|
||||
|
||||
data_version = 1
|
||||
forced_auto_forfeit = False
|
||||
|
||||
options = v6_options
|
||||
|
||||
def create_regions(self):
|
||||
create_regions(self.world,self.player)
|
||||
|
||||
def set_rules(self):
|
||||
set_rules(self.world,self.player)
|
||||
|
||||
def create_item(self, name: str) -> Item:
|
||||
item_id = item_table[name]
|
||||
item = V6Item(name, True, item_id, self.player)
|
||||
return item
|
||||
|
||||
def generate_basic(self):
|
||||
self.world.itempool += [self.create_item(name) for name in self.item_names]
|
||||
|
||||
def fill_slot_data(self):
|
||||
return {
|
||||
"DoorCost": self.world.DoorCost[self.player].value,
|
||||
"DeathLink": self.world.DeathLink[self.player].value,
|
||||
"DeathLink_Amnesty": self.world.DeathLinkAmnesty[self.player].value
|
||||
}
|
Reference in New Issue
Block a user