mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Vitamins max stack temporarily set to 30
This commit is contained in:
parent
90bc14c667
commit
c992508dc3
@ -143,7 +143,7 @@ export function initHeldItems() {
|
|||||||
// vitamins
|
// vitamins
|
||||||
for (const [statKey, heldItemType] of Object.entries(permanentStatToHeldItem)) {
|
for (const [statKey, heldItemType] of Object.entries(permanentStatToHeldItem)) {
|
||||||
const stat = Number(statKey) as PermanentStat;
|
const stat = Number(statKey) as PermanentStat;
|
||||||
allHeldItems[heldItemType] = new BaseStatBoosterHeldItem(heldItemType, 10, stat)
|
allHeldItems[heldItemType] = new BaseStatBoosterHeldItem(heldItemType, 30, stat)
|
||||||
.unstealable()
|
.unstealable()
|
||||||
.untransferable()
|
.untransferable()
|
||||||
.unsuppressable();
|
.unsuppressable();
|
||||||
|
@ -3,7 +3,6 @@ import { HeldItemId } from "#enums/held-item-id";
|
|||||||
import { getStatKey, type PermanentStat, Stat } from "#enums/stat";
|
import { getStatKey, type PermanentStat, Stat } from "#enums/stat";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, ITEM_EFFECT } from "../held-item";
|
import { HeldItem, ITEM_EFFECT } from "../held-item";
|
||||||
import type { STAT_BOOST_PARAMS } from "./stat-booster";
|
|
||||||
|
|
||||||
export interface BASE_STAT_BOOSTER_PARAMS {
|
export interface BASE_STAT_BOOSTER_PARAMS {
|
||||||
/** The pokemon with the item */
|
/** 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));
|
baseStats[this.stat] = Math.floor(baseStats[this.stat] * (1 + stackCount * 0.1));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getMaxStackCount(params: STAT_BOOST_PARAMS): number {
|
|
||||||
const pokemon = params.pokemon;
|
|
||||||
const stackCount = pokemon.heldItemManager.getStack(this.type);
|
|
||||||
return stackCount;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user