- 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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user