summaryrefslogtreecommitdiff
path: root/spec/spell.fspec
blob: 68aa5fb43ec3848d86b6767a7376a9d845daf6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
struct spell {
   index: u16;
   type: u16; // 1-6 for White/Black/Summon/Ninja/Bard/Blue
   element: u16;
   targets: u16;
   skill: u16;
   mp_cost: u16;
   casting_time: u8; // in quarter of seconds
   recast_delay: u8; // in quarter of seconds
   level: u8[24] hex; // 1 byte per job, 0xxFF if not learnable, first slot is NONE job so always 0xFF
   id: u16; // 0 for "unused" spells; often, but not always, equal to index
   unknown: u8;
   jp_name: u8[20] | encoding('sjis') str;
   en_name: u8[20] | encoding('ascii') str;
   jp_description: u8[128] | encoding('sjis') str;
   en_description: u8[128] | encoding('ascii') str;
   padding: u8[687] nul;
};

struct dat {
   spell: struct spell[$];
};