mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-27 01:39:34 +02:00
Exit sheets exporter
This commit is contained in:
parent
9dec435ecf
commit
3bae3fd302
@ -1117,6 +1117,9 @@ function printWave(inData: string, indent: string, wave: Wave): string {
|
|||||||
inData = printPoke(inData, indent + " ", wave.pokemon[i])
|
inData = printPoke(inData, indent + " ", wave.pokemon[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (SheetsMode.value && wave.pokemon.length == 1) {
|
||||||
|
inData += "," + indent + " \n{" + indent + " \n}"
|
||||||
|
}
|
||||||
inData += "\n" + indent + " ]"
|
inData += "\n" + indent + " ]"
|
||||||
}
|
}
|
||||||
inData += "\n" + indent + "}"
|
inData += "\n" + indent + "}"
|
||||||
@ -1144,6 +1147,7 @@ function printPoke(inData: string, indent: string, pokemon: PokeData) {
|
|||||||
inData += ",\n" + indent + " \"rarity\": \"" + pokemon.rarity + "\""
|
inData += ",\n" + indent + " \"rarity\": \"" + pokemon.rarity + "\""
|
||||||
inData += ",\n" + indent + " \"captured\": " + pokemon.captured
|
inData += ",\n" + indent + " \"captured\": " + pokemon.captured
|
||||||
inData += ",\n" + indent + " \"level\": " + pokemon.level
|
inData += ",\n" + indent + " \"level\": " + pokemon.level
|
||||||
|
if (!SheetsMode.value)
|
||||||
if (pokemon.items.length > 0) {
|
if (pokemon.items.length > 0) {
|
||||||
inData += ",\n" + indent + " \"items\": [\n"
|
inData += ",\n" + indent + " \"items\": [\n"
|
||||||
var isFirst = true
|
var isFirst = true
|
||||||
|
Loading…
Reference in New Issue
Block a user