jump_limit changes
This commit is contained in:
parent
261e42c33d
commit
cc7713ca73
12
src/rbx.rs
12
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::ModeId::MAIN,
|
||||||
gameplay_modes::ModeUpdate::element(
|
gameplay_modes::ModeUpdate::element(
|
||||||
model_id,
|
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,
|
"Platform"=>gameplay_modes::StageElementBehaviour::Platform,
|
||||||
_=>panic!("regex1[2] messed up bad"),
|
_=>panic!("regex1[2] messed up bad"),
|
||||||
},
|
},
|
||||||
|
None
|
||||||
);
|
);
|
||||||
modes_builder.push_mode_update(
|
modes_builder.push_mode_update(
|
||||||
gameplay_modes::ModeId::MAIN,
|
gameplay_modes::ModeId::MAIN,
|
||||||
@ -268,10 +269,15 @@ fn get_attributes(object:&rbx_dom_weak::Instance,can_collide:bool,velocity:Plana
|
|||||||
match &captures[1]{
|
match &captures[1]{
|
||||||
"Jump"=>modes_builder.push_mode_update(
|
"Jump"=>modes_builder.push_mode_update(
|
||||||
gameplay_modes::ModeId::MAIN,
|
gameplay_modes::ModeId::MAIN,
|
||||||
gameplay_modes::ModeUpdate::jump_limit(
|
gameplay_modes::ModeUpdate::element(
|
||||||
model_id,
|
model_id,
|
||||||
//jump_limit:
|
//jump_limit:
|
||||||
captures[2].parse::<u32>().unwrap()
|
gameplay_modes::StageElement::new(
|
||||||
|
gameplay_modes::StageId::FIRST,
|
||||||
|
false,
|
||||||
|
gameplay_modes::StageElementBehaviour::Check,
|
||||||
|
Some(captures[2].parse::<u8>().unwrap())
|
||||||
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
"WormholeIn"=>{
|
"WormholeIn"=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user