fix drpd export

This commit is contained in:
RedstonewolfX 2024-07-15 16:49:29 -04:00
parent fc91567670
commit 96e2372c9c
2 changed files with 11 additions and 0 deletions

View File

@ -446,6 +446,8 @@ export function printDRPD(inData: string, indent: string, drpd: DRPD): string {
inData += ",\n" + indent + " \"title\": \"" + drpd.title + "\""
inData += ",\n" + indent + " \"authors\": [\"" + drpd.authors.join("\", \"") + "\"]"
inData += ",\n" + indent + " \"date\": \"" + drpd.date + "\""
inData += ",\n" + indent + " \"label\": \"" + drpd.label + "\""
inData += ",\n" + indent + " \"uuid\": \"" + drpd.uuid + "\""
if (drpd.waves) {
inData += ",\n" + indent + " \"waves\": [\n"
var isFirst = true
@ -459,6 +461,7 @@ export function printDRPD(inData: string, indent: string, drpd: DRPD): string {
inData = printWave(inData, indent + " ", drpd.waves[i])
}
}
inData += ",\n" + indent + " ]\n"
} else {
inData += ",\n" + indent + " \"waves\": []"
}

View File

@ -6465,7 +6465,15 @@ export class SelectModifierPhase extends BattlePhase {
? modifierType.newModifier(party[slotIndex])
: modifierType.newModifier(party[slotIndex], option as integer)
: modifierType.newModifier(party[slotIndex], option - PartyOption.MOVE_1);
if (isPpRestoreModifier) {
LoggerTools.logShop(this.scene, this.scene.currentBattle.waveIndex, modifierType.name + " → " + this.scene.getParty()[slotIndex].name)
} else if (isRememberMoveModifier) {
LoggerTools.logShop(this.scene, this.scene.currentBattle.waveIndex, modifierType.name + " → " + this.scene.getParty()[slotIndex].name)
} else if (isTmModifier) {
LoggerTools.logShop(this.scene, this.scene.currentBattle.waveIndex, modifierType.name + " → " + this.scene.getParty()[slotIndex].name)
} else {
LoggerTools.logShop(this.scene, this.scene.currentBattle.waveIndex, modifierType.name + " → " + this.scene.getParty()[slotIndex].name)
}
applyModifier(modifier, true);
});
} else {