Vitamins max stack temporarily set to 30

This commit is contained in:
Wlowscha 2025-06-20 08:52:09 +02:00
parent 90bc14c667
commit c992508dc3
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
2 changed files with 1 additions and 8 deletions

View File

@ -143,7 +143,7 @@ export function initHeldItems() {
// vitamins
for (const [statKey, heldItemType] of Object.entries(permanentStatToHeldItem)) {
const stat = Number(statKey) as PermanentStat;
allHeldItems[heldItemType] = new BaseStatBoosterHeldItem(heldItemType, 10, stat)
allHeldItems[heldItemType] = new BaseStatBoosterHeldItem(heldItemType, 30, stat)
.unstealable()
.untransferable()
.unsuppressable();

View File

@ -3,7 +3,6 @@ import { HeldItemId } from "#enums/held-item-id";
import { getStatKey, type PermanentStat, Stat } from "#enums/stat";
import i18next from "i18next";
import { HeldItem, ITEM_EFFECT } from "../held-item";
import type { STAT_BOOST_PARAMS } from "./stat-booster";
export interface BASE_STAT_BOOSTER_PARAMS {
/** The pokemon with the item */
@ -79,10 +78,4 @@ export class BaseStatBoosterHeldItem extends HeldItem {
baseStats[this.stat] = Math.floor(baseStats[this.stat] * (1 + stackCount * 0.1));
return true;
}
getMaxStackCount(params: STAT_BOOST_PARAMS): number {
const pokemon = params.pokemon;
const stackCount = pokemon.heldItemManager.getStack(this.type);
return stackCount;
}
}