Skip to content

Commit

Permalink
Empty platform type
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterparty committed Feb 1, 2024
1 parent 0f16d79 commit ad494f8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
5 changes: 3 additions & 2 deletions schema/randomprime.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3008,12 +3008,13 @@
]
},
"type": {
"description": "Pick what type of platform.",
"description": "Pick what type of platform. Note that `\"Empty\"` is provided for creative scripting purposes such as moving around a pickup along a waypoint path.",
"type": "string",
"enum": [
"Metal",
"Snow",
"BombBox"
"BombBox",
"Empty"
],
"default": "Metal"
},
Expand Down
13 changes: 13 additions & 0 deletions src/add_modify_obj_patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,19 @@ pub fn patch_add_platform<'r>(
ResId::invalid(),
)
},
PlatformType::Empty => {
(
vec![
// Magma Pool Jump Blocker (invis)
(0x3801DE98, b"CMDL"),
(0xB3048E27, b"TXTR"),
// Empty DCLN
(0xF4BEE243, b"DCLN"),
],
ResId::<res_id::CMDL>::new(0x3801DE98),
ResId::<res_id::DCLN>::new(0xF4BEE243),
)
},
}
};

Expand Down
3 changes: 3 additions & 0 deletions src/custom_assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,11 @@ pub fn collect_game_resources<'r>(

let ghost_ball: Vec<(u32,FourCC)> = vec![ // used for lock on point model
(0xBFE4DAA0, FourCC::from_bytes(b"CMDL")),
(0x3801DE98, FourCC::from_bytes(b"CMDL")),
(0xF4BEE243, FourCC::from_bytes(b"DCLN")),
(0x57C7107D, FourCC::from_bytes(b"TXTR")),
(0xE580D665, FourCC::from_bytes(b"TXTR")),
(0xB3048E27, FourCC::from_bytes(b"TXTR")),
];
looking_for.extend(ghost_ball);

Expand Down
1 change: 1 addition & 0 deletions src/patch_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ pub enum PlatformType
Metal,
Snow,
BombBox,
Empty,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand Down

0 comments on commit ad494f8

Please sign in to comment.