* add groups and a preset * formatting * pull zig's tarin's gift improvements * typing * alias groups for progressive items * change tarins gift option a bit * add bush breakers item group * fix typo * bush_breaker option, respect non_local_items * review suggestions * cleaner thx exempt * Update worlds/ladx/__init__.py Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> * fix gen failures for dungeon shuffle * exclude shovel based on entrance mapping --------- Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			751 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			751 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from .itemInfo import ItemInfo
 | 
						|
from .constants import *
 | 
						|
from .droppedKey import DroppedKey
 | 
						|
from ..assembler import ASM
 | 
						|
from ..utils import formatText
 | 
						|
from ..roomEditor import RoomEditor
 | 
						|
 | 
						|
 | 
						|
class StartItem(DroppedKey):
 | 
						|
    MULTIWORLD = False
 | 
						|
 | 
						|
    def __init__(self):
 | 
						|
        super().__init__(0x2A3)
 | 
						|
        self.give_bowwow = False
 | 
						|
 | 
						|
    def patch(self, rom, option, *, multiworld=None):
 | 
						|
        assert multiworld is None
 | 
						|
 | 
						|
        if self.give_bowwow:
 | 
						|
            option = BOWWOW
 | 
						|
            rom.texts[0xC8] = formatText("Got BowWow!")
 | 
						|
 | 
						|
        if option != SHIELD:
 | 
						|
            rom.patch(5, 0x0CDA, ASM("ld a, $22"), ASM("ld a, $00"))  # do not change links sprite into the one with a shield
 | 
						|
 | 
						|
        super().patch(rom, option)
 |