diff --git a/docs/api.md b/docs/api.md index 01110e98..13bb14bb 100644 --- a/docs/api.md +++ b/docs/api.md @@ -57,8 +57,10 @@ game. A `WebWorld` class contains specific attributes and methods that can be modified for your world specifically on the webhost. At the moment this comprises of `settings_page` -which can be changed to a link instead of an AP generated settings page; such is the case -for Final Fantasy. +which can be changed to a link instead of an AP generated settings page, and a `theme` to be used for your game specific AP pages. Available themes: +| dirt | grass (default) | grassFlowers | ice | jungle | ocean | partyTime | +|---|---|---|---|---|---|---| +| | | | | | | | ### MultiWorld Object diff --git a/docs/img/theme_dirt.JPG b/docs/img/theme_dirt.JPG new file mode 100644 index 00000000..b8d7cc44 Binary files /dev/null and b/docs/img/theme_dirt.JPG differ diff --git a/docs/img/theme_grass.JPG b/docs/img/theme_grass.JPG new file mode 100644 index 00000000..2b6ba2d7 Binary files /dev/null and b/docs/img/theme_grass.JPG differ diff --git a/docs/img/theme_grassFlowers.JPG b/docs/img/theme_grassFlowers.JPG new file mode 100644 index 00000000..92f3fc96 Binary files /dev/null and b/docs/img/theme_grassFlowers.JPG differ diff --git a/docs/img/theme_ice.JPG b/docs/img/theme_ice.JPG new file mode 100644 index 00000000..045c34d5 Binary files /dev/null and b/docs/img/theme_ice.JPG differ diff --git a/docs/img/theme_jungle.JPG b/docs/img/theme_jungle.JPG new file mode 100644 index 00000000..c55feb41 Binary files /dev/null and b/docs/img/theme_jungle.JPG differ diff --git a/docs/img/theme_ocean.JPG b/docs/img/theme_ocean.JPG new file mode 100644 index 00000000..d1614ec5 Binary files /dev/null and b/docs/img/theme_ocean.JPG differ diff --git a/docs/img/theme_partyTime.JPG b/docs/img/theme_partyTime.JPG new file mode 100644 index 00000000..7641ee2f Binary files /dev/null and b/docs/img/theme_partyTime.JPG differ diff --git a/worlds/timespinner/__init__.py b/worlds/timespinner/__init__.py index 9ed6b18c..1e10ca23 100644 --- a/worlds/timespinner/__init__.py +++ b/worlds/timespinner/__init__.py @@ -1,6 +1,6 @@ from typing import Dict, List, Set, Tuple, TextIO from BaseClasses import Item, MultiWorld, Location -from ..AutoWorld import World +from ..AutoWorld import World, WebWorld from .LogicMixin import TimespinnerLogic from .Items import get_item_names_per_category, item_table, starter_melee_weapons, starter_spells, starter_progression_items, filler_items from .Locations import get_locations, starter_progression_locations, EventId @@ -8,6 +8,8 @@ from .Regions import create_regions from .Options import is_option_enabled, get_option_value, timespinner_options from .PyramidKeys import get_pyramid_keys_unlock +class TimespinnerWebWorld(WebWorld): + theme = "ice" class TimespinnerWorld(World): """ @@ -20,6 +22,7 @@ class TimespinnerWorld(World): topology_present = True remote_items = False data_version = 8 + web = TimespinnerWebWorld() item_name_to_id = {name: data.code for name, data in item_table.items()} location_name_to_id = {location.name: location.code for location in get_locations(None, None)}