* Stardew Valley Archipelago implementation * fix breaking changes * - Added and Updated Documentation for the game * Removed fun * Remove entire idea of step, due to possible inconsistency with the main AP core * Commented out the desired steps, fix renaming after rebase * Fixed wording * tests now passes on 3.8 * run flake8 * remove dependency so apworld work again * remove dependency for real * - Fix Formatting in the Game Page - Removed disabled Option Descriptions for Entrance Randomizer - Improved Game Page's description of the Arcade Machine buffs - Trimmed down the text on the Options page for Arcade Machines, so that it is smaller * - Removed blankspace * remove player field * remove None check in options * document the scripts * fix pytest warning * use importlib.resources.files * fix * add version requirement to importlib_resources * remove __init__.py from data folder * increment data version * let the __init__.py for 3.9 * use sorted() instead of list() * replace frozenset from fish_data with tuples * remove dependency on pytest * - Add a bit of text to the guide to tell them about how to redeem some received items * - Added a comment about which mod version to use * change single quotes for double quotes * Minimum client version both ways * Changed version number to be more specific. The mod will handle deciding --------- Co-authored-by: Alex Gilbert <alexgilbert@yahoo.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			814 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			814 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Items export script
 | 
						|
This script can be used to export all the AP items into a json file in the output folder. This file is used by the tests
 | 
						|
of the mod to ensure it can handle all possible items.
 | 
						|
 | 
						|
To run the script, use `python -m worlds.stardew_valley.scripts.export_items` from the repository root.
 | 
						|
"""
 | 
						|
 | 
						|
import json
 | 
						|
import os.path
 | 
						|
 | 
						|
from worlds.stardew_valley import item_table
 | 
						|
 | 
						|
if not os.path.isdir("output"):
 | 
						|
    os.mkdir("output")
 | 
						|
 | 
						|
if __name__ == "__main__":
 | 
						|
    with open("output/stardew_valley_item_table.json", "w+") as f:
 | 
						|
        items = {
 | 
						|
            item.name: {
 | 
						|
                "code": item.code,
 | 
						|
                "classification": item.classification.name
 | 
						|
            }
 | 
						|
            for item in item_table.values()
 | 
						|
            if item.code is not None
 | 
						|
        }
 | 
						|
        json.dump({"items": items}, f)
 |