-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #456 from randovania:big-baby
Support custom Baby size
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/open_samus_returns_rando/misc_patches/actor_attributes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from mercury_engine_data_structures.formats import Bmsad | ||
from open_samus_returns_rando.patcher_editor import PatcherEditor | ||
|
||
|
||
def patch_actor_attributes(editor: PatcherEditor, configuration: dict) -> None: | ||
_custom_baby_size(editor, configuration) | ||
|
||
|
||
def _custom_baby_size(editor: PatcherEditor, configuration: dict) -> None: | ||
baby = editor.get_file("actors/characters/babyhatchling/charclasses/babyhatchling.bmsad", Bmsad) | ||
baby.raw["header"]["model_scale"] = configuration["babyhatchling"]["model_scale"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters