Only change the data that has a multiplier set
parent
2f20dfc5cf
commit
bafba01c24
|
@ -310,6 +310,7 @@ void Exdeath::applyMultipliers(QFile *file) {
|
|||
unsigned short data = 0;
|
||||
|
||||
// XP
|
||||
if (XP > 1) {
|
||||
file->seek(monster_block + (i * 36) + 0xC);
|
||||
file->read(temp, 2);
|
||||
data = (temp[1] << 8) + temp[0];
|
||||
|
@ -322,8 +323,10 @@ void Exdeath::applyMultipliers(QFile *file) {
|
|||
temp[0] = data & 0xFF;
|
||||
file->seek(monster_block + (i * 36) + 0xC);
|
||||
file->write(temp, 2);
|
||||
}
|
||||
|
||||
// Gil
|
||||
if (Gil > 1) {
|
||||
file->seek(monster_block + (i * 36) + 0xE);
|
||||
file->read(temp, 2);
|
||||
data = (temp[1] << 8) + temp[0];
|
||||
|
@ -337,6 +340,8 @@ void Exdeath::applyMultipliers(QFile *file) {
|
|||
file->seek(monster_block + (i * 36) + 0xE);
|
||||
file->write(temp, 2);
|
||||
}
|
||||
}
|
||||
if (AP > 1) {
|
||||
for (int i = 0; i < 512; i++) {
|
||||
char temp[2];
|
||||
file->seek(form_block + (i * 28) + 2);
|
||||
|
@ -350,3 +355,4 @@ void Exdeath::applyMultipliers(QFile *file) {
|
|||
file->write(temp, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue