Cleanup testing / debugging code

This commit is contained in:
Lloyd Delacroix 2024-05-19 23:48:25 -04:00
parent 3a3e11400f
commit 71a3d76b6a

View File

@ -1000,9 +1000,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
options.push({ options.push({
label: `x${eggMoveCost} ${i18next.t("starterSelectUiHandler:learnEggMove")}`, label: `x${eggMoveCost} ${i18next.t("starterSelectUiHandler:learnEggMove")}`,
handler: () => { handler: () => {
if (candyCount >= eggMoveCost || 1==1) { if (candyCount >= eggMoveCost) {
//starterData.valueReduction++;
console.log("Egg Move Value: " + this.scene.gameData.starterData[this.lastSpecies.speciesId].eggMoves);
for (let em = 0; em < 4; em++) { for (let em = 0; em < 4; em++) {
if (!(this.scene.gameData.starterData[this.lastSpecies.speciesId].eggMoves & Math.pow(2, em))) { if (!(this.scene.gameData.starterData[this.lastSpecies.speciesId].eggMoves & Math.pow(2, em))) {
this.scene.gameData.setEggMoveUnlocked(this.lastSpecies, em); this.scene.gameData.setEggMoveUnlocked(this.lastSpecies, em);