mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-08-25 03:07:31 -05:00
Fix opower efficacy copy
This commit is contained in:
@@ -105,8 +105,7 @@ private void setEntry()
|
||||
powerData[entry][0x4] = otherCost;
|
||||
powerData[entry][0xE] = stage;
|
||||
powerData[entry][0xF] = lvlup;
|
||||
|
||||
Array.Copy(powerData[entry], 0x12, BitConverter.GetBytes(efficacy), 0, 2);
|
||||
BitConverter.GetBytes(efficacy).CopyTo(powerData[entry], 0x12);
|
||||
powerData[entry][0x14] = duration; // sbyte FF = -1 (no duration?)
|
||||
|
||||
byte usability = (byte)NUD_Usability.Value;
|
||||
@@ -125,4 +124,4 @@ private void formClosing(object sender, FormClosingEventArgs e)
|
||||
File.WriteAllBytes(codebin, exefsData);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user