Skip to content

TUNIC: Add option presets #3377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion worlds/tunic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .regions import tunic_regions
from .er_scripts import create_er_regions
from .er_data import portal_mapping
from .options import TunicOptions, EntranceRando, tunic_option_groups
from .options import TunicOptions, EntranceRando, tunic_option_groups, tunic_option_presets
from worlds.AutoWorld import WebWorld, World
from worlds.generic import PlandoConnection
from decimal import Decimal, ROUND_HALF_UP
Expand All @@ -28,6 +28,7 @@ class TunicWeb(WebWorld):
theme = "grassFlowers"
game = "TUNIC"
option_groups = tunic_option_groups
options_presets = tunic_option_presets


class TunicItem(Item):
Expand Down
23 changes: 22 additions & 1 deletion worlds/tunic/options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass

from typing import Dict, Any
from Options import (DefaultOnToggle, Toggle, StartInventoryPool, Choice, Range, TextChoice, PerGameCommonOptions,
OptionGroup)

Expand Down Expand Up @@ -199,3 +199,24 @@ class TunicOptions(PerGameCommonOptions):
Maskless,
])
]

tunic_option_presets: Dict[str, Dict[str, Any]] = {
"Sync": {
"ability_shuffling": True,
},
"Async": {
"progression_balancing": 0,
"ability_shuffling": True,
"shuffle_ladders": True,
"laurels_location": "10_fairies",
},
"Glace Mode": {
"accessibility": "minimal",
"ability_shuffling": True,
"entrance_rando": "yes",
"fool_traps": "onslaught",
"logic_rules": "unrestricted",
"maskless": True,
"lanternless": True,
},
}
Loading