 568a71cdbe
			
		
	
	568a71cdbe
	
	
	
		
			
			(There's still a lot of work ahead, such as: registering locations and items to the World, as well as methods to create_item_from_name() many more method names for various stages embedding Options into the world type and many more...)
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from typing import Optional
 | |
| 
 | |
| from BaseClasses import Location, Item
 | |
| from ..AutoWorld import World
 | |
| 
 | |
| class ALTTPWorld(World):
 | |
|     game: str = "A Link to the Past"
 | |
| 
 | |
| 
 | |
| class ALttPLocation(Location):
 | |
|     game: str = "A Link to the Past"
 | |
| 
 | |
|     def __init__(self, player: int, name: str = '', address=None, crystal: bool = False,
 | |
|                  hint_text: Optional[str] = None, parent=None,
 | |
|                  player_address=None):
 | |
|         super(ALttPLocation, self).__init__(player, name, address, parent)
 | |
|         self.crystal = crystal
 | |
|         self.player_address = player_address
 | |
|         self._hint_text: str = hint_text
 | |
| 
 | |
| 
 | |
| class ALttPItem(Item):
 | |
| 
 | |
|     game: str = "A Link to the Past"
 | |
| 
 | |
|     def __init__(self, name='', advancement=False, type=None, code=None, pedestal_hint=None, pedestal_credit=None, sickkid_credit=None, zora_credit=None, witch_credit=None, fluteboy_credit=None, hint_text=None, player=None):
 | |
|         super(ALttPItem, self).__init__(name, advancement, code, player)
 | |
|         self.type = type
 | |
|         self._pedestal_hint_text = pedestal_hint
 | |
|         self.pedestal_credit_text = pedestal_credit
 | |
|         self.sickkid_credit_text = sickkid_credit
 | |
|         self.zora_credit_text = zora_credit
 | |
|         self.magicshop_credit_text = witch_credit
 | |
|         self.fluteboy_credit_text = fluteboy_credit
 | |
|         self._hint_text = hint_text |