mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-27 17:59:28 +02:00
Merge branch 'beta' into mystery-encounters-translations
This commit is contained in:
commit
8793bbfa91
@ -5879,6 +5879,6 @@ export function initAbilities() {
|
|||||||
new Ability(Abilities.POISON_PUPPETEER, 9)
|
new Ability(Abilities.POISON_PUPPETEER, 9)
|
||||||
.attr(UncopiableAbilityAbAttr)
|
.attr(UncopiableAbilityAbAttr)
|
||||||
.attr(UnswappableAbilityAbAttr)
|
.attr(UnswappableAbilityAbAttr)
|
||||||
.conditionalAttr(pokemon => pokemon.species.speciesId===Species.PECHARUNT, ConfusionOnStatusEffectAbAttr, StatusEffect.POISON, StatusEffect.TOXIC)
|
.attr(ConfusionOnStatusEffectAbAttr, StatusEffect.POISON, StatusEffect.TOXIC)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -9073,8 +9073,7 @@ export function initMoves() {
|
|||||||
new AttackMove(Moves.AURA_WHEEL, Type.ELECTRIC, MoveCategory.PHYSICAL, 110, 100, 10, 100, 0, 8)
|
new AttackMove(Moves.AURA_WHEEL, Type.ELECTRIC, MoveCategory.PHYSICAL, 110, 100, 10, 100, 0, 8)
|
||||||
.attr(StatStageChangeAttr, [ Stat.SPD ], 1, true)
|
.attr(StatStageChangeAttr, [ Stat.SPD ], 1, true)
|
||||||
.makesContact(false)
|
.makesContact(false)
|
||||||
.attr(AuraWheelTypeAttr)
|
.attr(AuraWheelTypeAttr),
|
||||||
.condition((user, target, move) => [user.species.speciesId, user.fusionSpecies?.speciesId].includes(Species.MORPEKO)), // Missing custom fail message
|
|
||||||
new AttackMove(Moves.BREAKING_SWIPE, Type.DRAGON, MoveCategory.PHYSICAL, 60, 100, 15, 100, 0, 8)
|
new AttackMove(Moves.BREAKING_SWIPE, Type.DRAGON, MoveCategory.PHYSICAL, 60, 100, 15, 100, 0, 8)
|
||||||
.target(MoveTarget.ALL_NEAR_ENEMIES)
|
.target(MoveTarget.ALL_NEAR_ENEMIES)
|
||||||
.attr(StatStageChangeAttr, [ Stat.ATK ], -1),
|
.attr(StatStageChangeAttr, [ Stat.ATK ], -1),
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "Giftpuppenspiel",
|
"name": "Giftpuppenspiel",
|
||||||
"description": "Wenn Infamomo ein Ziel mit einer Attacke vergiftet, so wird dieses auch verwirrt."
|
"description": "Wenn das Pokémon ein Ziel mit einer Attacke vergiftet, so wird dieses auch verwirrt."
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "Aura-Rad",
|
"name": "Aura-Rad",
|
||||||
"effect": "Mithilfe der in den Backentaschen gespeicherten Energie greift der Anwender an und erhöht seine Initiative. Der Typ der Attacke hängt von Morpekos Form ab."
|
"effect": "Mithilfe der in den Backentaschen gespeicherten Energie greift der Anwender an und erhöht seine Initiative. Wenn dies von Morpeko verwendet wird hängt der Typ der Attacke von dessen Form ab."
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "Breitseite",
|
"name": "Breitseite",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "Poison Puppeteer",
|
"name": "Poison Puppeteer",
|
||||||
"description": "Pokémon poisoned by Pecharunt's moves will also become confused."
|
"description": "Pokémon poisoned by this Pokémon's moves will also become confused."
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "Aura Wheel",
|
"name": "Aura Wheel",
|
||||||
"effect": "Morpeko attacks and raises its Speed with the energy stored in its cheeks. This move's type changes depending on the user's form."
|
"effect": "The user attacks and raises its Speed with the energy stored in its cheeks. If used by Morpeko, this move's type changes depending on the user's form."
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "Breaking Swipe",
|
"name": "Breaking Swipe",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "Títere Tóxico",
|
"name": "Títere Tóxico",
|
||||||
"description": "Los rivales que Pecharunt envenene con sus movimientos también sufrirán confusión."
|
"description": "Los rivales que el usuario envenene con sus movimientos también sufrirán confusión."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "Rueda Aural",
|
"name": "Rueda Aural",
|
||||||
"effect": "La energía que acumula en las mejillas le sirve para atacar y aumentar su Velocidad. Este movimiento cambia de tipo según la forma que adopte Morpeko."
|
"effect": "La energía que acumula en las mejillas le sirve para atacar y aumentar su Velocidad. Si es utilizado por Morpeko, este movimiento cambia de tipo según la forma que adopte."
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "Vasto Impacto",
|
"name": "Vasto Impacto",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "Emprise Toxique",
|
"name": "Emprise Toxique",
|
||||||
"description": "Lorsque Pêchaminus empoisonne un Pokémon grâce à l’une de ses capacités, ce dernier devient également confus."
|
"description": "Lorsque le Pokémon en empoisonne un autre grâce à l’une de ses capacités, ce dernier devient également confus."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "Roue Libre",
|
"name": "Roue Libre",
|
||||||
"effect": "Inflige et change en type Ténèbres"
|
"effect": "Le Pokémon libère l’énergie stockée dans ses joues pour attaquer et augmenter sa Vitesse. Le type de cette capacité change en fonction de la forme du lanceur."
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "Abattage",
|
"name": "Abattage",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "\tMalia Tossica",
|
"name": "\tMalia Tossica",
|
||||||
"description": "I Pokémon avvelenati dalle mosse di Pecharunt entreranno anche in stato di confusione."
|
"description": "I Pokémon avvelenati dalle mosse di questo Pokémon entreranno anche in stato di confusione."
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "Ruota d'Aura",
|
"name": "Ruota d'Aura",
|
||||||
"effect": "Il Pokémon emette l'energia accumulata nelle guance per attaccare e aumentare la Velocità. Il tipo della mossa cambia in base alla forma assunta da Morpeko."
|
"effect": "Il Pokémon emette l'energia accumulata nelle guance per attaccare e aumentare la Velocità. Se usata da Morpeko, il tipo della mossa cambia in base alla forma assunta."
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "Vastoimpatto",
|
"name": "Vastoimpatto",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "どくくぐつ",
|
"name": "どくくぐつ",
|
||||||
"description": "モモワロウの 技によって どく状態に なった 相手は こんらん状態にも なってしまう。"
|
"description": "このポケモンの 技によって どく状態に なった 相手は こんらん状態にも なってしまう。"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "オーラぐるま",
|
"name": "オーラぐるま",
|
||||||
"effect": "ほほぶくろに 溜めた エネルギーで 攻撃し 自分の 素早さを あげる。 モルペコの 姿で タイプが 変わる。"
|
"effect": "ほほぶくろに 溜めた エネルギーで 攻撃し 自分の 素早さを あげる。 モルペコが この技を 使う場合 姿で 技の タイプが 変わる。"
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "ワイドブレイカー",
|
"name": "ワイドブレイカー",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "독조종",
|
"name": "독조종",
|
||||||
"description": "복숭악동의 기술에 의해 독 상태가 된 상대는 혼란 상태도 되어 버린다."
|
"description": "이 기술에 의해 독 상태가 된 상대는 혼란 상태도 되어 버린다."
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "오라휠",
|
"name": "오라휠",
|
||||||
"effect": "볼주머니에 저장해둔 에너지로 공격하고 자신의 스피드를 올린다. 모르페코의 모습에 따라 타입이 바뀐다."
|
"effect": "볼주머니에 저장해둔 에너지로 공격하고 자신의 스피드를 올린다. 모르페코가 사용할 경우 모습에 따라 타입이 바뀐다."
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "와이드브레이커",
|
"name": "와이드브레이커",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "Poison Puppeteer",
|
"name": "Poison Puppeteer",
|
||||||
"description": "Pokémon envenenados pelos movimentos de Pecharunt também ficarão confusos."
|
"description": "Pokémon envenenados pelos movimentos deste Pokémon também ficarão confusos."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "Aura Wheel",
|
"name": "Aura Wheel",
|
||||||
"effect": "Morpeko ataca e aumenta sua Velocidade com a energia armazenada em suas bochechas. O tipo deste movimento muda dependendo da forma do usuário."
|
"effect": "O usuário ataca e aumenta sua Velocidade com a energia armazenada em suas bochechas. Se usado por Morpeko, o tipo deste movimento muda dependendo da forma do usuário."
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "Breaking Swipe",
|
"name": "Breaking Swipe",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "毒傀儡",
|
"name": "毒傀儡",
|
||||||
"description": "因桃歹郎的招式而陷入中毒状态的\n对手同时也会陷入混乱状态。"
|
"description": "因此宝可梦的招式而陷入中毒状态的对手\n同时也会陷入混乱状态。"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "气场轮",
|
"name": "气场轮",
|
||||||
"effect": "用储存在颊囊里的能量进行攻击,\n并提高自己的速度。其属性会随着\n莫鲁贝可的样子而改变"
|
"effect": "用储存在颊囊里的能量进行攻击,\n并提高自己的速度。如果由莫鲁贝可使用,\n其属性会随着它的样子而改变"
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "广域破坏",
|
"name": "广域破坏",
|
||||||
|
@ -1237,6 +1237,6 @@
|
|||||||
},
|
},
|
||||||
"poisonPuppeteer": {
|
"poisonPuppeteer": {
|
||||||
"name": "毒傀儡",
|
"name": "毒傀儡",
|
||||||
"description": "因為桃歹郎的招式而陷入中\n毒狀態的對手同時也會陷入\n混亂狀態。"
|
"description": "因為此寶可夢的招式而陷入中毒狀態的對手\n同時也會陷入混亂狀態。"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3129,7 +3129,7 @@
|
|||||||
},
|
},
|
||||||
"auraWheel": {
|
"auraWheel": {
|
||||||
"name": "氣場輪",
|
"name": "氣場輪",
|
||||||
"effect": "用儲存在頰囊裏的能量進行\n攻擊,並提高自己的速度。\n其屬性會隨着莫魯貝可的樣\n子而改變"
|
"effect": "用儲存在頰囊裏的能量進行\n攻擊,並提高自己的速度。\n如果由莫魯貝可使用,\n其屬性會隨着它的樣子而改變"
|
||||||
},
|
},
|
||||||
"breakingSwipe": {
|
"breakingSwipe": {
|
||||||
"name": "廣域破壞",
|
"name": "廣域破壞",
|
||||||
|
@ -1288,6 +1288,21 @@ function skipInClassicAfterWave(wave: integer, defaultWeight: integer): Weighted
|
|||||||
function skipInLastClassicWaveOrDefault(defaultWeight: integer) : WeightedModifierTypeWeightFunc {
|
function skipInLastClassicWaveOrDefault(defaultWeight: integer) : WeightedModifierTypeWeightFunc {
|
||||||
return skipInClassicAfterWave(199, defaultWeight);
|
return skipInClassicAfterWave(199, defaultWeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* High order function that returns a WeightedModifierTypeWeightFunc to ensure Lures don't spawn on Classic 199
|
||||||
|
* or if the lure still has over 60% of its duration left
|
||||||
|
* @param maxBattles The max battles the lure type in question lasts. 10 for green, 15 for Super, 30 for Max
|
||||||
|
* @param weight The desired weight for the lure when it does spawn
|
||||||
|
* @returns A WeightedModifierTypeWeightFunc
|
||||||
|
*/
|
||||||
|
function lureWeightFunc(maxBattles: number, weight: number): WeightedModifierTypeWeightFunc {
|
||||||
|
return (party: Pokemon[]) => {
|
||||||
|
const lures = party[0].scene.getModifiers(Modifiers.DoubleBattleChanceBoosterModifier);
|
||||||
|
return !(party[0].scene.gameMode.isClassic && party[0].scene.currentBattle.waveIndex === 199) && (lures.length === 0 || lures.filter(m => m.getMaxBattles() === maxBattles && m.getBattleCount() >= maxBattles * 0.6).length === 0) ? weight : 0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
class WeightedModifierType {
|
class WeightedModifierType {
|
||||||
public modifierType: ModifierType;
|
public modifierType: ModifierType;
|
||||||
public weight: integer | WeightedModifierTypeWeightFunc;
|
public weight: integer | WeightedModifierTypeWeightFunc;
|
||||||
@ -1611,7 +1626,7 @@ const modifierPool: ModifierPool = {
|
|||||||
const thresholdPartyMemberCount = Math.min(party.filter(p => p.hp && p.getMoveset().filter(m => m?.ppUsed && (m.getMovePp() - m.ppUsed) <= 5 && m.ppUsed >= Math.floor(m.getMovePp() / 2)).length).length, 3);
|
const thresholdPartyMemberCount = Math.min(party.filter(p => p.hp && p.getMoveset().filter(m => m?.ppUsed && (m.getMovePp() - m.ppUsed) <= 5 && m.ppUsed >= Math.floor(m.getMovePp() / 2)).length).length, 3);
|
||||||
return thresholdPartyMemberCount;
|
return thresholdPartyMemberCount;
|
||||||
}, 3),
|
}, 3),
|
||||||
new WeightedModifierType(modifierTypes.LURE, skipInLastClassicWaveOrDefault(2)),
|
new WeightedModifierType(modifierTypes.LURE, lureWeightFunc(10, 2)),
|
||||||
new WeightedModifierType(modifierTypes.TEMP_STAT_STAGE_BOOSTER, 4),
|
new WeightedModifierType(modifierTypes.TEMP_STAT_STAGE_BOOSTER, 4),
|
||||||
new WeightedModifierType(modifierTypes.BERRY, 2),
|
new WeightedModifierType(modifierTypes.BERRY, 2),
|
||||||
new WeightedModifierType(modifierTypes.TM_COMMON, 2),
|
new WeightedModifierType(modifierTypes.TM_COMMON, 2),
|
||||||
@ -1668,7 +1683,7 @@ const modifierPool: ModifierPool = {
|
|||||||
return thresholdPartyMemberCount;
|
return thresholdPartyMemberCount;
|
||||||
}, 3),
|
}, 3),
|
||||||
new WeightedModifierType(modifierTypes.DIRE_HIT, 4),
|
new WeightedModifierType(modifierTypes.DIRE_HIT, 4),
|
||||||
new WeightedModifierType(modifierTypes.SUPER_LURE, skipInLastClassicWaveOrDefault(4)),
|
new WeightedModifierType(modifierTypes.SUPER_LURE, lureWeightFunc(15, 4)),
|
||||||
new WeightedModifierType(modifierTypes.NUGGET, skipInLastClassicWaveOrDefault(5)),
|
new WeightedModifierType(modifierTypes.NUGGET, skipInLastClassicWaveOrDefault(5)),
|
||||||
new WeightedModifierType(modifierTypes.EVOLUTION_ITEM, (party: Pokemon[]) => {
|
new WeightedModifierType(modifierTypes.EVOLUTION_ITEM, (party: Pokemon[]) => {
|
||||||
return Math.min(Math.ceil(party[0].scene.currentBattle.waveIndex / 15), 8);
|
return Math.min(Math.ceil(party[0].scene.currentBattle.waveIndex / 15), 8);
|
||||||
@ -1691,7 +1706,7 @@ const modifierPool: ModifierPool = {
|
|||||||
}),
|
}),
|
||||||
[ModifierTier.ULTRA]: [
|
[ModifierTier.ULTRA]: [
|
||||||
new WeightedModifierType(modifierTypes.ULTRA_BALL, (party: Pokemon[]) => (hasMaximumBalls(party, PokeballType.ULTRA_BALL)) ? 0 : 15, 15),
|
new WeightedModifierType(modifierTypes.ULTRA_BALL, (party: Pokemon[]) => (hasMaximumBalls(party, PokeballType.ULTRA_BALL)) ? 0 : 15, 15),
|
||||||
new WeightedModifierType(modifierTypes.MAX_LURE, skipInLastClassicWaveOrDefault(4)),
|
new WeightedModifierType(modifierTypes.MAX_LURE, lureWeightFunc(30, 4)),
|
||||||
new WeightedModifierType(modifierTypes.BIG_NUGGET, skipInLastClassicWaveOrDefault(12)),
|
new WeightedModifierType(modifierTypes.BIG_NUGGET, skipInLastClassicWaveOrDefault(12)),
|
||||||
new WeightedModifierType(modifierTypes.PP_MAX, 3),
|
new WeightedModifierType(modifierTypes.PP_MAX, 3),
|
||||||
new WeightedModifierType(modifierTypes.MINT, 4),
|
new WeightedModifierType(modifierTypes.MINT, 4),
|
||||||
|
Loading…
Reference in New Issue
Block a user