1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-05-03 11:37:45 +00:00
kawari/src/world/ipc/player_stats.rs
Joshua Goins f5d75301b2 Re-organize the IPC structures so they live in their own server-specific module
My old setup of throwing *all* of the IPC types and opcodes into *one* enum was
becoming unbearable. Now that we have multiple things using the same opcodes
(because they can overlap) I think it's time to repay this technical debt.

This overhauls the structure of the project to move IPC structs into their own
modules, and separate the opcode data/lists into separate ones depending on if
it's clientbound and serverbound.

Nothing has changed functionall, but this is going to make it way easier to add
more IPC in the future.
2025-03-16 17:43:29 -04:00

37 lines
838 B
Rust

use binrw::binrw;
#[binrw]
#[derive(Debug, Clone, Copy, Default)]
pub struct PlayerStats {
pub strength: u32,
pub dexterity: u32,
pub vitality: u32,
pub intelligence: u32,
pub mind: u32,
pub piety: u32,
pub hp: u32,
pub mp: u32,
pub tp: u32,
pub gp: u32,
pub cp: u32,
pub delay: u32,
pub tenacity: u32,
pub attack_power: u32,
pub defense: u32,
pub direct_hit_rate: u32,
pub evasion: u32,
pub magic_defense: u32,
pub critical_hit: u32,
pub attack_magic_potency: u32,
pub healing_magic_potency: u32,
pub elemental_bonus: u32,
pub determination: u32,
pub skill_speed: u32,
pub spell_speed: u32,
pub haste: u32,
pub craftmanship: u32,
pub control: u32,
pub gathering: u32,
pub perception: u32,
pub unk1: [u32; 26],
}