fix: swapped del_relic_list & del_equipment_list and increase inv limit

This commit is contained in:
amizing25
2026-01-08 06:57:27 +07:00
parent 0208899832
commit 5e5a90cb50
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ impl FreesrData {
} }
// remove unequipped relics // remove unequipped relics
if freesr_data.relics.len() > 2000 { if freesr_data.relics.len() > 3000 {
freesr_data.relics.retain(|v| v.equip_avatar != 0); freesr_data.relics.retain(|v| v.equip_avatar != 0);
} }
+3 -2
View File
@@ -16,10 +16,11 @@ pub use persistent::*;
pub use scene::*; pub use scene::*;
pub fn get_item_unique_id(internal_uid: u32, item_type: ItemType) -> u32 { pub fn get_item_unique_id(internal_uid: u32, item_type: ItemType) -> u32 {
// srtools start internal_uid from 1
if item_type == ItemType::ItemEquipment { if item_type == ItemType::ItemEquipment {
2000 + internal_uid // 2000.3500 3000 + internal_uid // 3001..3500
} else { } else {
1 + internal_uid // 1..2000 internal_uid // 1..2000 ->
} }
} }
+2 -2
View File
@@ -124,8 +124,8 @@ impl PlayerSession {
// clear relics & lightcones // clear relics & lightcones
self.send(PlayerSyncScNotify { self.send(PlayerSyncScNotify {
del_equipment_list: (2000..=3500).collect(), del_relic_list: (1..=3000).collect(),
del_relic_list: (1..=2000).collect(), del_equipment_list: (3001..=3500).collect(),
..Default::default() ..Default::default()
}) })
.await .await
+2 -2
View File
@@ -53949,7 +53949,7 @@ pub struct PlayerSyncScNotify {
pub fdmaafifgok: ::prost::alloc::vec::Vec<Material>, pub fdmaafifgok: ::prost::alloc::vec::Vec<Material>,
/// offset: 152 /// offset: 152
#[prost(uint32, repeated, tag = "2")] #[prost(uint32, repeated, tag = "2")]
pub del_equipment_list: ::prost::alloc::vec::Vec<u32>, pub del_relic_list: ::prost::alloc::vec::Vec<u32>,
/// offset: 16 /// offset: 16
#[prost(uint32, repeated, tag = "1901")] #[prost(uint32, repeated, tag = "1901")]
pub new_item_hint_list: ::prost::alloc::vec::Vec<u32>, pub new_item_hint_list: ::prost::alloc::vec::Vec<u32>,
@@ -53961,7 +53961,7 @@ pub struct PlayerSyncScNotify {
pub aiifdkedgil: ::prost::alloc::vec::Vec<Fbeanghkmfg>, pub aiifdkedgil: ::prost::alloc::vec::Vec<Fbeanghkmfg>,
/// offset: 104 /// offset: 104
#[prost(uint32, repeated, tag = "9")] #[prost(uint32, repeated, tag = "9")]
pub del_relic_list: ::prost::alloc::vec::Vec<u32>, pub del_equipment_list: ::prost::alloc::vec::Vec<u32>,
/// offset: 48 /// offset: 48
#[prost(message, repeated, tag = "1682")] #[prost(message, repeated, tag = "1682")]
pub ndinaemjmjb: ::prost::alloc::vec::Vec<Fcklhhkfejg>, pub ndinaemjmjb: ::prost::alloc::vec::Vec<Fcklhhkfejg>,