From cc7713ca733fa455d34c1b51b8bdf8930787be5f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 21 Feb 2024 02:34:17 -0800 Subject: [PATCH] jump_limit changes --- src/rbx.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/rbx.rs b/src/rbx.rs index 00c0714..8c41b20 100644 --- a/src/rbx.rs +++ b/src/rbx.rs @@ -197,7 +197,7 @@ fn get_attributes(object:&rbx_dom_weak::Instance,can_collide:bool,velocity:Plana gameplay_modes::ModeId::MAIN, gameplay_modes::ModeUpdate::element( model_id, - gameplay_modes::StageElement::new(gameplay_modes::StageId::FIRST,false,gameplay_modes::StageElementBehaviour::Platform),//roblox does not know which stage the platform belongs to + gameplay_modes::StageElement::new(gameplay_modes::StageId::FIRST,false,gameplay_modes::StageElementBehaviour::Platform,None),//roblox does not know which stage the platform belongs to ), ); }, @@ -255,6 +255,7 @@ fn get_attributes(object:&rbx_dom_weak::Instance,can_collide:bool,velocity:Plana "Platform"=>gameplay_modes::StageElementBehaviour::Platform, _=>panic!("regex1[2] messed up bad"), }, + None ); modes_builder.push_mode_update( gameplay_modes::ModeId::MAIN, @@ -268,10 +269,15 @@ fn get_attributes(object:&rbx_dom_weak::Instance,can_collide:bool,velocity:Plana match &captures[1]{ "Jump"=>modes_builder.push_mode_update( gameplay_modes::ModeId::MAIN, - gameplay_modes::ModeUpdate::jump_limit( + gameplay_modes::ModeUpdate::element( model_id, //jump_limit: - captures[2].parse::().unwrap() + gameplay_modes::StageElement::new( + gameplay_modes::StageId::FIRST, + false, + gameplay_modes::StageElementBehaviour::Check, + Some(captures[2].parse::().unwrap()) + ) ), ), "WormholeIn"=>{