Skip to content

Commit 9ebdcf5

Browse files
authored
Merge pull request #77 from Windower/monstrosity_fixes
add monster_skills resource
2 parents 46ac1bb + c787734 commit 9ebdcf5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Program.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ internal class Program
4646
"job_abilities",
4747
"job_traits",
4848
"jobs",
49+
"monster_skills",
4950
"monstrosity",
5051
"spells",
5152
"weapon_skills",
@@ -448,20 +449,14 @@ private static void PostProcess()
448449
// Monstrosity
449450
else if (action.id >= 0x0700)
450451
{
451-
action.id -= 0x0700;
452+
// Monster skills start at 256
453+
action.id -= 0x0600;
452454

453455
action.mp_cost = null;
454456
action.recast_id = null;
455457
action.type = null;
456458

457-
// Remove names, as they are parsed separately
458-
action.en = null;
459-
action.ja = null;
460-
461-
if (action.id < model.monster_abilities.Count)
462-
{
463-
model.monster_abilities[action.id].Merge(action);
464-
}
459+
model.monster_skills.Add(action);
465460
}
466461
}
467462
model.actions = null;

0 commit comments

Comments
 (0)