Skip to content
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: 3 additions & 0 deletions src/mars_patcher/mf/auto_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,9 @@ class Marsschemamf(typ.TypedDict, total=False):
DisableDemos: bool = False
"""Disables title screen demos when true."""

InstantUnmorph: bool = False
"""When true, enables instant unmorphing via the SELECT button."""

SkipDoorTransitions: bool = False
"""Makes all door transitions instant when true."""

Expand Down
5 changes: 5 additions & 0 deletions src/mars_patcher/mf/data/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,11 @@
"description": "Disables title screen demos when true.",
"default": false
},
"InstantUnmorph": {
"type": "boolean",
"description": "When true, enables instant unmorphing via the SELECT button.",
"default": false
},
"SkipDoorTransitions": {
"type": "boolean",
"description": "Makes all door transitions instant when true.",
Expand Down
4 changes: 4 additions & 0 deletions src/mars_patcher/mf/misc_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ def apply_reveal_unexplored_doors(rom: Rom) -> None:

def apply_accessibility_patch(rom: Rom) -> None:
apply_patch_in_asm_path(rom, "accessibility.ips")


def apply_instant_unmorph_patch(rom: Rom) -> None:
apply_patch_in_asm_path(rom, "instant_unmorph.ips")
4 changes: 4 additions & 0 deletions src/mars_patcher/mf/patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from mars_patcher.mf.misc_patches import (
apply_accessibility_patch,
apply_base_patch,
apply_instant_unmorph_patch,
apply_pbs_without_bombs,
apply_reveal_hidden_tiles,
apply_reveal_unexplored_doors,
Expand Down Expand Up @@ -134,6 +135,9 @@ def patch_mf(
if patch_data.get("DisableDemos"):
disable_demos(rom)

if patch_data.get("InstantUnmorph"):
apply_instant_unmorph_patch(rom)

if patch_data.get("SkipDoorTransitions"):
skip_door_transitions(rom)

Expand Down