- update: schema now sets the skills column to prevent a crash

- update: frontend to only pass the session id
- update: launcher to pass the session correctly
- update: validate session response now returns the session id and user id to the requester
- update: auth client based on session id instead of a jwt token
This commit is contained in:
2025-03-08 13:47:53 -05:00
parent b6f2d3f456
commit 8ba8fce20b
13 changed files with 151 additions and 79 deletions

View File

@@ -119,6 +119,29 @@ pub(crate) enum ItemType {
Zuly = 0x1F,
}
impl ItemType {
pub(crate) fn from_i32(value: i32) -> Option<ItemType> {
match value {
1 => Some(ItemType::ItemGoggles),
2 => Some(ItemType::ItemHelmet),
3 => Some(ItemType::ItemArmor),
4 => Some(ItemType::ItemGauntlet),
5 => Some(ItemType::ItemBoots),
6 => Some(ItemType::ItemBackpack),
7 => Some(ItemType::ItemRing),
8 => Some(ItemType::ItemWeaponR),
9 => Some(ItemType::ItemWeaponL),
10 => Some(ItemType::ItemConsumable),
11 => Some(ItemType::ItemEtcGem),
12 => Some(ItemType::ItemEtc),
13 => Some(ItemType::ItemEtc2),
14 => Some(ItemType::ItemRiding),
0x1F => Some(ItemType::Zuly),
_ => None,
}
}
}
mod party_req {
#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]