diff --git a/rc_services_room/src/data/cube_list.rs b/rc_services_room/src/data/cube_list.rs index 73dfa4b..203d69f 100644 --- a/rc_services_room/src/data/cube_list.rs +++ b/rc_services_room/src/data/cube_list.rs @@ -51,6 +51,10 @@ impl CubeInfo { (Typed::Str("ignoreInWeaponsList".into()), Typed::Bool(self.ignore_in_weapon_list.into())), // optional ].into()) } + + pub fn as_transmissible_key_val(&self, cube_id: u32) -> (Typed, Typed) { + (Typed::Str(hex::encode(cube_id.to_be_bytes()).into()), self.as_transmissible()) + } } #[derive(Clone, Copy)] diff --git a/rc_services_room/src/operations/cube_list.rs b/rc_services_room/src/operations/cube_list.rs index 49671f7..f6797af 100644 --- a/rc_services_room/src/operations/cube_list.rs +++ b/rc_services_room/src/operations/cube_list.rs @@ -37,7 +37,7 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para variant_of: "0".to_string(), ignore_in_weapon_list: true, }.as_transmissible()), - (Typed::Str("0".into()), CubeInfo { + CubeInfo { cpu: 1, health: 1, health_boost: 1.0, @@ -50,15 +50,15 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para unlocked_by_league: false, league_unlock_index: 1, stats: HashMap::default(), - description: "This is a very descriptive description".to_string(), + description: "Top_Laser_Tiny This is a very descriptive description".to_string(), size: ItemTier::T0, type_: ItemType::Weapon, ranking: 1, cosmetic: false, variant_of: "0".to_string(), ignore_in_weapon_list: true, - }.as_transmissible()), - (Typed::Str("1".into()), CubeInfo { + }.as_transmissible_key_val(3809895395), + CubeInfo { cpu: 1, health: 1, health_boost: 1.0, @@ -71,15 +71,15 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para unlocked_by_league: false, league_unlock_index: 1, stats: HashMap::default(), - description: "This is a very descriptive description".to_string(), + description: "Top_Laser_Small This is a very descriptive description".to_string(), size: ItemTier::T1, type_: ItemType::Weapon, ranking: 1, cosmetic: false, variant_of: "0".to_string(), ignore_in_weapon_list: true, - }.as_transmissible()), - (Typed::Str("2".into()), CubeInfo { + }.as_transmissible_key_val(3178463503), + CubeInfo { cpu: 1, health: 1, health_boost: 1.0, @@ -92,15 +92,15 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para unlocked_by_league: false, league_unlock_index: 1, stats: HashMap::default(), - description: "This is a very descriptive description".to_string(), + description: "Top_Laser_Medium This is a very descriptive description".to_string(), size: ItemTier::T2, type_: ItemType::Weapon, ranking: 1, cosmetic: false, variant_of: "0".to_string(), ignore_in_weapon_list: true, - }.as_transmissible()), - (Typed::Str("3".into()), CubeInfo { + }.as_transmissible_key_val(2007965780), + CubeInfo { cpu: 1, health: 1, health_boost: 1.0, @@ -113,15 +113,15 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para unlocked_by_league: false, league_unlock_index: 1, stats: HashMap::default(), - description: "This is a very descriptive description".to_string(), + description: "Top_Laser_Large This is a very descriptive description".to_string(), size: ItemTier::T3, type_: ItemType::Weapon, ranking: 1, cosmetic: false, variant_of: "0".to_string(), ignore_in_weapon_list: true, - }.as_transmissible()), - (Typed::Str("4".into()), CubeInfo { + }.as_transmissible_key_val(3064235218), + CubeInfo { cpu: 1, health: 1, health_boost: 1.0, @@ -134,15 +134,15 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para unlocked_by_league: false, league_unlock_index: 1, stats: HashMap::default(), - description: "This is a very descriptive description".to_string(), + description: "Top_Laser_Huge This is a very descriptive description".to_string(), size: ItemTier::T4, type_: ItemType::Weapon, ranking: 1, cosmetic: false, variant_of: "0".to_string(), ignore_in_weapon_list: true, - }.as_transmissible()), - (Typed::Str("5".into()), CubeInfo { + }.as_transmissible_key_val(2088248713), + CubeInfo { cpu: 1, health: 1, health_boost: 1.0, @@ -155,14 +155,14 @@ pub(super) fn cube_list_provider() -> SimpleFunc<2, crate::UserTy, impl (Fn(Para unlocked_by_league: false, league_unlock_index: 1, stats: HashMap::default(), - description: "This is a very descriptive description".to_string(), + description: "Mega_Laser This is a very descriptive description".to_string(), size: ItemTier::T5, type_: ItemType::Weapon, ranking: 1, cosmetic: false, variant_of: "0".to_string(), ignore_in_weapon_list: true, - }.as_transmissible()), + }.as_transmissible_key_val(3209000021), ].into(), })); Ok(params.into()) diff --git a/rc_services_room/src/operations/garage_slots.rs b/rc_services_room/src/operations/garage_slots.rs index f9d5ff3..6f1273b 100644 --- a/rc_services_room/src/operations/garage_slots.rs +++ b/rc_services_room/src/operations/garage_slots.rs @@ -31,7 +31,7 @@ pub(super) fn garage_slot_provider() -> SimpleFunc<40, crate::UserTy, impl (Fn(P control_type: ControlType::Camera, control_options: ControlOptions { vertical_strafing: false, sideways_driving: false, tracks_turn_on_spot: false, }, mastery_level: 1, - bay_skin_id: "".to_owned(), // TODO + bay_skin_id: "RC_MothershipSkin_Neptune_01".to_owned(), // TODO get the rest of the names weapon_order: vec![0], }.as_transmissible()) ],