Added ASM ref for recovering HP
This commit is contained in:
parent
d263577eb4
commit
a59249a9d8
|
@ -560,6 +560,8 @@ namespace ScriptTool
|
||||||
AddAsmRef(rom, refs, index++, 0x1F514); // 0x846FB (related to using a battle item outside)
|
AddAsmRef(rom, refs, index++, 0x1F514); // 0x846FB (related to using a battle item outside)
|
||||||
AddAsmRef(rom, refs, index++, 0xB9C94); // 0x846FB (related to using a battle item outside)
|
AddAsmRef(rom, refs, index++, 0xB9C94); // 0x846FB (related to using a battle item outside)
|
||||||
|
|
||||||
|
AddAsmRef(rom, refs, index++, 0xEA978); // 0x60801 (related to recovering HP)
|
||||||
|
|
||||||
return refs.ToArray();
|
return refs.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -241,14 +241,18 @@ namespace ScriptTool
|
||||||
m12Decompiler.ScanRange(m12Rom, 0x3697F, 0x8C4B0);
|
m12Decompiler.ScanRange(m12Rom, 0x3697F, 0x8C4B0);
|
||||||
strings.Add(m12Decompiler.DecompileRange(m12Rom, 0x3697F, 0x8C4B0, true));
|
strings.Add(m12Decompiler.DecompileRange(m12Rom, 0x3697F, 0x8C4B0, true));
|
||||||
|
|
||||||
// Update labels for all refs and write to JSON
|
// Update labels for all refs
|
||||||
foreach (var refList in allRefs)
|
foreach (var refList in allRefs)
|
||||||
{
|
{
|
||||||
foreach (var stringRef in refList.Item2)
|
foreach (var stringRef in refList.Item2)
|
||||||
stringRef.Label = m12Decompiler.LabelMap.Labels[stringRef.OldPointer];
|
stringRef.Label = m12Decompiler.LabelMap.Labels[stringRef.OldPointer];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Write to JSON
|
||||||
|
foreach (var refList in allRefs)
|
||||||
|
{
|
||||||
File.WriteAllText(Path.Combine(options.WorkingDirectory, refList.Item1 + ".json"),
|
File.WriteAllText(Path.Combine(options.WorkingDirectory, refList.Item1 + ".json"),
|
||||||
JsonConvert.SerializeObject(refList.Item2, Formatting.Indented));
|
JsonConvert.SerializeObject(refList.Item2, Formatting.Indented));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write the strings
|
// Write the strings
|
||||||
|
|
Loading…
Reference in New Issue