Commented these log statements out, but may add them back later
This commit is contained in:
RedstonewolfX 2024-07-18 14:31:49 -04:00
parent 9d968917f5
commit ff40f56992

View File

@ -293,10 +293,12 @@ export function playerPokeName(scene: BattleScene, index: integer | Pokemon | Pl
} }
} }
if (typeof index == "number") { if (typeof index == "number") {
//console.log(scene.getParty()[index], species, dupeSpecies)
if (dupeSpecies.includes(scene.getParty()[index].name)) if (dupeSpecies.includes(scene.getParty()[index].name))
return scene.getParty()[index].name + " (Slot " + (index + 1) + ")" return scene.getParty()[index].name + " (Slot " + (index + 1) + ")"
return scene.getParty()[index].name return scene.getParty()[index].name
} }
//console.log(index.name, species, dupeSpecies)
if (dupeSpecies.includes(index.name)) if (dupeSpecies.includes(index.name))
return index.name + " (Slot " + (scene.getParty().indexOf(index as PlayerPokemon) + 1) + ")" return index.name + " (Slot " + (scene.getParty().indexOf(index as PlayerPokemon) + 1) + ")"
return index.name return index.name
@ -320,10 +322,12 @@ export function enemyPokeName(scene: BattleScene, index: integer | Pokemon | Ene
} }
} }
if (typeof index == "number") { if (typeof index == "number") {
//console.log(scene.getEnemyParty()[index], species, dupeSpecies)
if (dupeSpecies.includes(scene.getEnemyParty()[index].name)) if (dupeSpecies.includes(scene.getEnemyParty()[index].name))
return scene.getEnemyParty()[index].name + " (Slot " + (index + 1) + ")" return scene.getEnemyParty()[index].name + " (Slot " + (index + 1) + ")"
return scene.getEnemyParty()[index].name return scene.getEnemyParty()[index].name
} }
//console.log(index.name, species, dupeSpecies)
if (dupeSpecies.includes(index.name)) if (dupeSpecies.includes(index.name))
return index.name + " (Slot " + (scene.getEnemyParty().indexOf(index as EnemyPokemon) + 1) + ")" return index.name + " (Slot " + (scene.getEnemyParty().indexOf(index as EnemyPokemon) + 1) + ")"
return index.name return index.name