Initial Commit
This commit is contained in:
commit
fa38469735
30 files changed
+6902
No files matched your search
@@ -0,0 +1,16 @@
|
||||
from .Data import game_table
|
||||
|
||||
game_name: str = "Manual_%s_%s" % (game_table["game"], game_table["creator"])
|
||||
filler_item_name: str | list[str] = game_table["filler_item_name"] if "filler_item_name" in game_table else "Filler"
|
||||
glitches_item_name: str | None = game_table["glitches_item_name"] if "glitches_item_name" in game_table else None
|
||||
starting_items: list[dict] | None = game_table["starting_items"] if "starting_items" in game_table else None
|
||||
|
||||
if "starting_index" in game_table:
|
||||
try:
|
||||
starting_index = int(game_table["starting_index"])
|
||||
except ValueError:
|
||||
raise Exception("The value of data/game.json:'starting_index' should be an int")
|
||||
else:
|
||||
starting_index = 1
|
||||
|
||||
unused_goals_are_locations = game_table.get("unused_goals_are_locations", False)
|
||||
Reference in new issue
Block a user