mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 15:52:18 +02:00
Make attribute names more generic
This commit is contained in:
parent
3cb3149ee4
commit
d6119093de
@ -266,9 +266,9 @@ export class PostTeraFormChangeStatChangeAbAttr extends AbAttr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a specified weather when a Pokemon is form changed via terastallization.
|
* Clears a specified weather whenever this attribute is called.
|
||||||
*/
|
*/
|
||||||
export class PostTeraFormChangeRemoveWeatherAbAttr extends AbAttr {
|
export class ClearWeatherAbAttr extends AbAttr {
|
||||||
private weather: WeatherType[];
|
private weather: WeatherType[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -289,9 +289,9 @@ export class PostTeraFormChangeRemoveWeatherAbAttr extends AbAttr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a specified terrain when a Pokemon is form changed via terastallization.
|
* Clears a specified terrain whenever this attribute is called.
|
||||||
*/
|
*/
|
||||||
export class PostTeraFormChangeRemoveTerrainAbAttr extends AbAttr {
|
export class ClearTerrainAbAttr extends AbAttr {
|
||||||
private terrain: TerrainType[];
|
private terrain: TerrainType[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -6419,8 +6419,8 @@ export function initAbilities() {
|
|||||||
.attr(UnswappableAbilityAbAttr)
|
.attr(UnswappableAbilityAbAttr)
|
||||||
.ignorable(),
|
.ignorable(),
|
||||||
new Ability(Abilities.TERAFORM_ZERO, 9)
|
new Ability(Abilities.TERAFORM_ZERO, 9)
|
||||||
.attr(PostTeraFormChangeRemoveWeatherAbAttr, [ WeatherType.SUNNY, WeatherType.RAIN, WeatherType.SANDSTORM, WeatherType.HAIL, WeatherType.SNOW, WeatherType.FOG, WeatherType.HEAVY_RAIN, WeatherType.HARSH_SUN, WeatherType.STRONG_WINDS ])
|
.attr(ClearWeatherAbAttr, [ WeatherType.SUNNY, WeatherType.RAIN, WeatherType.SANDSTORM, WeatherType.HAIL, WeatherType.SNOW, WeatherType.FOG, WeatherType.HEAVY_RAIN, WeatherType.HARSH_SUN, WeatherType.STRONG_WINDS ])
|
||||||
.attr(PostTeraFormChangeRemoveTerrainAbAttr, [ TerrainType.MISTY, TerrainType.ELECTRIC, TerrainType.GRASSY, TerrainType.PSYCHIC ])
|
.attr(ClearTerrainAbAttr, [ TerrainType.MISTY, TerrainType.ELECTRIC, TerrainType.GRASSY, TerrainType.PSYCHIC ])
|
||||||
.attr(UncopiableAbilityAbAttr)
|
.attr(UncopiableAbilityAbAttr)
|
||||||
.attr(UnswappableAbilityAbAttr)
|
.attr(UnswappableAbilityAbAttr)
|
||||||
.condition(getOncePerBattleCondition(Abilities.TERAFORM_ZERO)),
|
.condition(getOncePerBattleCondition(Abilities.TERAFORM_ZERO)),
|
||||||
|
@ -11,7 +11,7 @@ import { getPokemonNameWithAffix } from "#app/messages";
|
|||||||
import { BattlePhase } from "./battle-phase";
|
import { BattlePhase } from "./battle-phase";
|
||||||
import { MovePhase } from "./move-phase";
|
import { MovePhase } from "./move-phase";
|
||||||
import { PokemonHealPhase } from "./pokemon-heal-phase";
|
import { PokemonHealPhase } from "./pokemon-heal-phase";
|
||||||
import { applyAbAttrs, PostTeraFormChangeRemoveTerrainAbAttr, PostTeraFormChangeRemoveWeatherAbAttr, PostTeraFormChangeStatChangeAbAttr } from "#app/data/ability";
|
import { applyAbAttrs, ClearTerrainAbAttr, ClearWeatherAbAttr, PostTeraFormChangeStatChangeAbAttr } from "#app/data/ability";
|
||||||
|
|
||||||
export class QuietFormChangePhase extends BattlePhase {
|
export class QuietFormChangePhase extends BattlePhase {
|
||||||
protected pokemon: Pokemon;
|
protected pokemon: Pokemon;
|
||||||
@ -148,8 +148,8 @@ export class QuietFormChangePhase extends BattlePhase {
|
|||||||
}
|
}
|
||||||
if (this.formChange.trigger instanceof SpeciesFormChangeTeraTrigger) {
|
if (this.formChange.trigger instanceof SpeciesFormChangeTeraTrigger) {
|
||||||
applyAbAttrs(PostTeraFormChangeStatChangeAbAttr, this.pokemon, null);
|
applyAbAttrs(PostTeraFormChangeStatChangeAbAttr, this.pokemon, null);
|
||||||
applyAbAttrs(PostTeraFormChangeRemoveWeatherAbAttr, this.pokemon, null);
|
applyAbAttrs(ClearWeatherAbAttr, this.pokemon, null);
|
||||||
applyAbAttrs(PostTeraFormChangeRemoveTerrainAbAttr, this.pokemon, null);
|
applyAbAttrs(ClearTerrainAbAttr, this.pokemon, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
super.end();
|
super.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user