From d98285e367c29ec9eb1cacf5cf424d6910270efd Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 16 Sep 2018 10:54:51 +0300 Subject: redesign --- spec/spell.fspec | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'spec/spell.fspec') diff --git a/spec/spell.fspec b/spec/spell.fspec index 68aa5fb..8c9c894 100644 --- a/spec/spell.fspec +++ b/spec/spell.fspec @@ -1,22 +1,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; + u16 index; + u16 type; // 1-6 for White/Black/Summon/Ninja/Bard/Blue + u16 element; + u16 targets; + u16 skill; + u16 mp_cost; + u8 casting_time; // in quarter of seconds + u8 recast_delay; // in quarter of seconds + u8 level[24] hex; // 1 byte per job, 0xxFF if not learnable, first slot is NONE job so always 0xFF + u16 id; // 0 for "unused" spells; often, but not always, equal to index + u8 unknown; + u8 jp_name[20] | encoding('sjis') str; + u8 en_name[20] | encoding('ascii') str; + u8 jp_description[128] | encoding('sjis') str; + u8 en_description[128] | encoding('ascii') str; + u8 padding[687] nul; }; struct dat { - spell: struct spell[$]; + struct spell spell[$]; }; -- cgit v1.2.3