Merge 8357e22fb4
into 787feceb14
This commit is contained in:
commit
a52a6cf319
14669
src/data/balance/tms.ts
14669
src/data/balance/tms.ts
File diff suppressed because it is too large
Load Diff
|
@ -108,9 +108,9 @@ import {
|
|||
FusionSpeciesFormEvolution,
|
||||
} from "#app/data/balance/pokemon-evolutions";
|
||||
import {
|
||||
reverseCompatibleTms,
|
||||
tmSpecies,
|
||||
tmPoolTiers,
|
||||
reverseTmSpecies,
|
||||
} from "#app/data/balance/tms";
|
||||
import {
|
||||
BattlerTag,
|
||||
|
@ -6306,7 +6306,8 @@ export class PlayerPokemon extends Pokemon {
|
|||
this.compatibleTms = [];
|
||||
|
||||
const tms = Object.keys(tmSpecies);
|
||||
for (const tm of tms) {
|
||||
const rtms = Object.keys(reverseTmSpecies);
|
||||
for (const tm of tms.concat(rtms)) {
|
||||
const moveId = Number.parseInt(tm) as Moves;
|
||||
let compatible = false;
|
||||
for (const p of tmSpecies[tm]) {
|
||||
|
@ -6328,7 +6329,10 @@ export class PlayerPokemon extends Pokemon {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (reverseCompatibleTms.indexOf(moveId) > -1) {
|
||||
if (rtms.includes(tm) &&
|
||||
(!reverseTmSpecies[moveId].includes(this.species.speciesId) ||
|
||||
(this.fusionSpecies && !reverseTmSpecies[moveId].includes(this.fusionSpecies.speciesId)))
|
||||
) {
|
||||
compatible = !compatible;
|
||||
}
|
||||
if (compatible) {
|
||||
|
|
Loading…
Reference in New Issue