Pot shuffle
This commit is contained in:
@@ -121,6 +121,8 @@ class World(object):
|
||||
set_player_attr('open_pyramid', False)
|
||||
set_player_attr('treasure_hunt_icon', 'Triforce Piece')
|
||||
set_player_attr('treasure_hunt_count', 0)
|
||||
set_player_attr('potshuffle', False)
|
||||
set_player_attr('pot_contents', None)
|
||||
|
||||
def get_name_string_for_object(self, obj):
|
||||
return obj.name if self.players == 1 else f'{obj.name} ({self.get_player_names(obj.player)})'
|
||||
@@ -1853,3 +1855,48 @@ flooded_keys = {
|
||||
'Trench 1 Switch': 'Swamp Palace - Trench 1 Pot Key',
|
||||
'Trench 2 Switch': 'Swamp Palace - Trench 2 Pot Key'
|
||||
}
|
||||
|
||||
|
||||
class PotItem(FastEnum):
|
||||
Nothing = 0x0
|
||||
OneRupee = 0x1
|
||||
RockCrab = 0x2
|
||||
Bee = 0x3
|
||||
Random = 0x4
|
||||
Bomb_0 = 0x5
|
||||
Heart_0 = 0x6
|
||||
FiveRupees = 0x7
|
||||
Key = 0x8
|
||||
FiveArrows = 0x9
|
||||
Bomb = 0xA
|
||||
Heart = 0xB
|
||||
SmallMagic = 0xC
|
||||
BigMagic = 0xD
|
||||
Chicken = 0xE
|
||||
GreenSoldier = 0xF
|
||||
AliveRock = 0x10
|
||||
BlueSoldier = 0x11
|
||||
GroundBomb = 0x12
|
||||
Heart_2 = 0x13
|
||||
Fairy = 0x14
|
||||
Heart_3 = 0x15
|
||||
Hole = 0x80
|
||||
Warp = 0x82
|
||||
Staircase = 0x84
|
||||
Bombable = 0x86
|
||||
Switch = 0x88
|
||||
|
||||
|
||||
class PotFlags(FastEnum):
|
||||
Normal = 0x0
|
||||
NoSwitch = 0x1 # A switch should never go here
|
||||
SwitchLogicChange = 0x2 # A switch can go here, but requires a logic change
|
||||
|
||||
|
||||
class Pot(object):
|
||||
def __init__(self, x, y, item, room, flags = PotFlags.Normal):
|
||||
self.x = x
|
||||
self.y = y
|
||||
self.item = item
|
||||
self.room = room
|
||||
self.flags = flags
|
||||
Reference in New Issue
Block a user