Adjust enemy modifier rate

pull/1/head
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) {
const pId = partyMember.id;
const participated = participantIds.has(pId);
if (!participated && !expShareModifier) {
if (participated)
partyMember.winCount++;
else if (!expShareModifier) {
partyMemberExp.push(0);
continue;
}

View File

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

View File

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

View File

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

View File

@ -99,7 +99,7 @@ export function getStatusEffectHealText(statusEffect: StatusEffect): string {
case StatusEffect.FREEZE:
return ' was\ndefrosted!';
case StatusEffect.BURN:
return ' is hurt\nby its burn!';
return ' was\nhealed of its burn!';
}
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',
(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'),
EXP_CHARM: new ExpBoosterModifierType('EXP CHARM', 25),