mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-30 11:03:21 -07:00
Create the combat logic option
This commit is contained in:
@@ -169,7 +169,11 @@ class TunicWorld(World):
|
||||
|
||||
def create_item(self, name: str) -> TunicItem:
|
||||
item_data = item_table[name]
|
||||
return TunicItem(name, item_data.classification, self.item_name_to_id[name], self.player)
|
||||
if self.options.combat_logic:
|
||||
classification = item_data.combat_ic or item_data.classification
|
||||
else:
|
||||
classification = item_data.classification
|
||||
return TunicItem(name, classification, self.item_name_to_id[name], self.player)
|
||||
|
||||
def create_items(self) -> None:
|
||||
|
||||
|
||||
@@ -166,6 +166,20 @@ class TunicPlandoConnections(PlandoConnections):
|
||||
duplicate_exits = True
|
||||
|
||||
|
||||
class CombatLogic(Choice):
|
||||
"""
|
||||
If enabled, the player will logicaly require a combination of stat upgrades and items to reach combat breakpoints in order to get through certain areas.
|
||||
Note that this option marks many more items as progression and may force weapons much earlier than normal.
|
||||
If disabled, the standard logic is used.
|
||||
"""
|
||||
internal_name = "combat_logic"
|
||||
display_name = "Combat Logic"
|
||||
option_off = 0
|
||||
option_bosses_only = 1
|
||||
option_on = 2
|
||||
default = 0
|
||||
|
||||
|
||||
class LaurelsZips(Toggle):
|
||||
"""
|
||||
Choose whether to include using the Hero's Laurels to zip through gates, doors, and tricky spots.
|
||||
@@ -239,6 +253,7 @@ class TunicOptions(PerGameCommonOptions):
|
||||
hexagon_goal: HexagonGoal
|
||||
extra_hexagon_percentage: ExtraHexagonPercentage
|
||||
laurels_location: LaurelsLocation
|
||||
combat_logic: CombatLogic
|
||||
lanternless: Lanternless
|
||||
maskless: Maskless
|
||||
laurels_zips: LaurelsZips
|
||||
@@ -252,6 +267,7 @@ class TunicOptions(PerGameCommonOptions):
|
||||
|
||||
tunic_option_groups = [
|
||||
OptionGroup("Logic Options", [
|
||||
CombatLogic,
|
||||
Lanternless,
|
||||
Maskless,
|
||||
LaurelsZips,
|
||||
|
||||
Reference in New Issue
Block a user