chore: more hexpats

This commit is contained in:
Timothy Schenk 2024-09-18 16:34:58 +02:00
parent d70041f064
commit 931d6c39a4
Signed by: rainote
SSH key fingerprint: SHA256:pnkNSDwpAnaip00xaZlVFHKKsS7T8UtOomMzvs0yITE
5 changed files with 28931 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#pragma once
#include <std/sys.pat>
struct AnimationData{
u32 Id;
u8 unk[1078];
};
std::assert(sizeof(AnimationData) == 0x43a, "Struct isn't the right size");
AnimationData anidata[50] @0x00;

View file

@ -0,0 +1,7 @@
struct skillAccount {
u16 id;
char name[25];
char desc[81];
};
skillAccount skills[999] @0x6C;

View file

@ -0,0 +1,82 @@
#pragma once
#pragma pattern_limit 1500000
#include <std/sys.pat>
struct header {
u8 unk[3];
bool flag;
u8 unk2;
u32 amountOfItems;
};
struct AttributeStats{
u32 Strength;
u32 Dexterity;
u32 Intelligence;
u32 Vitality;
u32 Luck;
u32 Wisdom;
};
// Most likely values related to scaling other attributes, health etc.
struct ScalingValues {
float a;
float b;
u32 c;
u32 d;
u32 e;
u32 f;
u32 g;
u32 h;
u32 i;
u32 j;
u32 k;
u32 l;
u32 m;
u32 n;
u32 o;
u32 p;
u32 q;
u32 r;
u32 s;
};
enum CharacterJob : u32 {
NULL,
Swordsman = 1, /// 01
Mage, /// 02
Thief, /// 03
Scout, /// 04
Warrior, /// 05
Knight, /// 06
Priest, /// 07
Wizard, /// 08
Rogue, /// 09
Ninja, /// 10
Gunner, /// 11
Archer, /// 12
Berserker, /// 13
Pladin, /// 14
Saint, /// 15
Warlock, /// 16
Knave, /// 17
Assassin, /// 18
Gunslinger, /// 19
Ranger, /// 20
Juggernaut, /// 21
Temple_Knight, /// 22
Exorcist, /// 23
Necromancer, /// 24
Raider, /// 25
Nightstalker, /// 26
Sharpshooter, /// 27
Beast_Keeper, /// 28
};
struct BaseCharacterStat{
CharacterJob Id;
u8 unk[12];
AttributeStats stats;
padding[16];
ScalingValues scaleValues;
padding[428-40-16-sizeof(ScalingValues)];
};
std::print(std::format("{}",sizeof(BaseCharacterStat)));
std::assert(sizeof(BaseCharacterStat) == 428, "Struct isn't the right size");
header header @ 0x00;
BaseCharacterStat stats[header.amountOfItems] @ 0x09;

View file

@ -0,0 +1,70 @@
#pragma once
#pragma pattern_limit 1500000
#include <std/sys.pat>
enum SkillType: u32{
};
struct header {
u8 unk[3];
bool flag;
u8 unk2;
u32 amountOfItems;
};
enum CharacterJob : u32 {
NULL,
Swordsman = 1, /// 01
Mage, /// 02
Thief, /// 03
Scout, /// 04
Warrior, /// 05
Knight, /// 06
Priest, /// 07
Wizard, /// 08
Rogue, /// 09
Ninja, /// 10
Gunner, /// 11
Archer, /// 12
Berserker, /// 13
Pladin, /// 14
Saint, /// 15
Warlock, /// 16
Knave, /// 17
Assassin, /// 18
Gunslinger, /// 19
Ranger, /// 20
Juggernaut, /// 21
Temple_Knight, /// 22
Exorcist, /// 23
Necromancer, /// 24
Raider, /// 25
Nightstalker, /// 26
Sharpshooter, /// 27
Beast_Keeper, /// 28
};
enum SkillSourceEntity : u32{
Player,S
Pet,
Mob,
Debuff, //Most likely Debuff/Buff Types
};
enum SkillBuffType : u32{
None,
Positive,
Negative
};
struct MagicData{
u32 Id;
u8 unk[24];
u32 IsPassive;
SkillBuffType unk2;
SkillType skillType;
SkillSourceEntity unk3;
CharacterJob requiredJob;
u8 unk4[12];
char name[20];
char description[255];
padding[0x5244-4-24-4-4-1-7-4-12-20-255];
};
std::print(std::format("{}",sizeof(MagicData)));
std::assert(sizeof(MagicData) == 0x5244, "Struct isn't the right size");
header header @ 0x00;
MagicData items[header.amountOfItems] @0x09;

File diff suppressed because it is too large Load diff