Adjust enemy modifier rate

This commit is contained in:
Flashfyre 2023-04-20 22:26:38 -04:00
parent 61adb285b6
commit edce08b35c
6 changed files with 9 additions and 8 deletions

View File

@ -1339,7 +1339,9 @@ export class VictoryPhase extends PokemonPhase {
for (let partyMember of expPartyMembers) { for (let partyMember of expPartyMembers) {
const pId = partyMember.id; const pId = partyMember.id;
const participated = participantIds.has(pId); const participated = participantIds.has(pId);
if (!participated && !expShareModifier) { if (participated)
partyMember.winCount++;
else if (!expShareModifier) {
partyMemberExp.push(0); partyMemberExp.push(0);
continue; continue;
} }

View File

@ -670,17 +670,17 @@ export default class BattleScene extends Phaser.Scene {
generateEnemyModifiers(): Promise<void> { generateEnemyModifiers(): Promise<void> {
return new Promise(resolve => { return new Promise(resolve => {
const waveIndex = this.currentBattle.waveIndex; const waveIndex = this.currentBattle.waveIndex;
const chances = Math.ceil(waveIndex / 20); const chances = Math.ceil(waveIndex / 10);
const isBoss = waveIndex >= 100 || !(waveIndex % 10); const isBoss = waveIndex >= 100 || !(waveIndex % 10);
let count = 0; let count = 0;
for (let c = 0; c < chances; c++) { for (let c = 0; c < chances; c++) {
if (!Utils.randInt(!isBoss ? 8 : 2)) if (!Utils.randInt(!isBoss ? 12 : 4))
count++; count++;
if (count === 12) if (count === 12)
break; break;
} }
if (isBoss) if (isBoss)
count = Math.max(count, Math.ceil(chances / 2)); count = Math.max(count, Math.floor(chances / 2));
getEnemyModifierTypesForWave(waveIndex, count, this.getEnemyParty()).map(mt => mt.newModifier(this.getEnemyPokemon()).add(this.enemyModifiers, false)); getEnemyModifierTypesForWave(waveIndex, count, this.getEnemyParty()).map(mt => mt.newModifier(this.getEnemyPokemon()).add(this.enemyModifiers, false));
this.updateModifiers(false).then(() => resolve()); this.updateModifiers(false).then(() => resolve());

View File

@ -333,7 +333,7 @@ class AnimTimedAddBgEvent extends AnimTimedBgEvent {
moveAnim.bgSprite.setScale(1.25); moveAnim.bgSprite.setScale(1.25);
moveAnim.bgSprite.setAlpha(0); moveAnim.bgSprite.setAlpha(0);
scene.field.add(moveAnim.bgSprite); scene.field.add(moveAnim.bgSprite);
scene.field.moveBelow(moveAnim.bgSprite, scene.getEnemyPokemon()); scene.field.moveBelow(moveAnim.bgSprite, scene.getEnemyPokemon() || scene.getPlayerPokemon());
scene.tweens.add({ scene.tweens.add({
targets: moveAnim.bgSprite, targets: moveAnim.bgSprite,

View File

@ -157,7 +157,6 @@ export class SeedTag extends PseudoStatusTag {
} }
lapse(pokemon: Pokemon, lapseType: BattleTagLapseType): boolean { lapse(pokemon: Pokemon, lapseType: BattleTagLapseType): boolean {
console.trace(lapseType);
const ret = lapseType !== BattleTagLapseType.CUSTOM || super.lapse(pokemon, lapseType); const ret = lapseType !== BattleTagLapseType.CUSTOM || super.lapse(pokemon, lapseType);
if (ret) { if (ret) {

View File

@ -99,7 +99,7 @@ export function getStatusEffectHealText(statusEffect: StatusEffect): string {
case StatusEffect.FREEZE: case StatusEffect.FREEZE:
return ' was\ndefrosted!'; return ' was\ndefrosted!';
case StatusEffect.BURN: case StatusEffect.BURN:
return ' is hurt\nby its burn!'; return ' was\nhealed of its burn!';
} }
return ''; return '';

View File

@ -498,7 +498,7 @@ const modifierTypes = {
EXP_SHARE: new ModifierType('EXP. SHARE', 'All POKéMON in your party gain an additional 10% of a battle\'s EXP. Points', EXP_SHARE: new ModifierType('EXP. SHARE', 'All POKéMON in your party gain an additional 10% of a battle\'s EXP. Points',
(type, _args) => new Modifiers.ExpShareModifier(type), 'exp_share'), (type, _args) => new Modifiers.ExpShareModifier(type), 'exp_share'),
EXP_BALANCE: new ModifierType('EXP. BALANCE', 'All EXP. Points received from battles is split among the lower leveled party members', EXP_BALANCE: new ModifierType('EXP. BALANCE', 'All EXP. Points received from battles are split between the lower leveled party members',
(type, _args) => new Modifiers.ExpBalanceModifier(type), 'exp_balance'), (type, _args) => new Modifiers.ExpBalanceModifier(type), 'exp_balance'),
EXP_CHARM: new ExpBoosterModifierType('EXP CHARM', 25), EXP_CHARM: new ExpBoosterModifierType('EXP CHARM', 25),