Skip to content

Commit

Permalink
Add Donald and Goofy Death Link
Browse files Browse the repository at this point in the history
  • Loading branch information
gaithern committed May 7, 2024
1 parent fa9e7a2 commit 07c6898
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions worlds/kh1/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,18 @@ class BadStartingWeapons(Toggle):
"""
display_name = "Bad Starting Weapons"

class DonaldDeathLink(Toggle):
"""
If Donald is KO'ed, so is Sora. If Death Link is toggled on in your client, this will send a death to everyone.
"""
display_name = "Donald Death Link"

class GoofyDeathLink(Toggle):
"""
If Goofy is KO'ed, so is Sora. If Death Link is toggled on in your client, this will send a death to everyone.
"""
display_name = "Goofy Death Link"

@dataclass
class KH1Options(PerGameCommonOptions):
goal: Goal
Expand Down Expand Up @@ -308,4 +320,6 @@ class KH1Options(PerGameCommonOptions):
mp_increase: MPIncrease
accessory_slot_increase: AccessorySlotIncrease
item_slot_increase: ItemSlotIncrease
donald_death_link: DonaldDeathLink
goofy_death_link: GoofyDeathLink

4 changes: 4 additions & 0 deletions worlds/kh1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def fill_slot_data(self) -> dict:
mp_bonus = int(min_mp_bonus)
slot_data["keyblade_stats"] = slot_data["keyblade_stats"] + str(str_bonus) + "," + str(mp_bonus) + ","
slot_data["keyblade_stats"] = slot_data["keyblade_stats"][:-1]
if self.options.donald_death_link:
slot_data["donalddl"] = ""
if self.options.goofy_death_link:
slot_data["goofydl"] = ""
return slot_data

def create_item(self, name: str) -> KH1Item:
Expand Down

0 comments on commit 07c6898

Please sign in to comment.