Apply suggestions from code review

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
This commit is contained in:
AJ Fontaine 2025-02-11 17:04:32 -05:00 committed by GitHub
parent cbe030875f
commit 3cbb8915f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,9 +165,9 @@ export abstract class PersistentModifier extends Modifier {
public stackCount: number;
public virtualStackCount: number;
constructor(type: ModifierType, stackCount?: number) {
constructor(type: ModifierType, stackCount: number = 1) {
super(type);
this.stackCount = stackCount ?? 1;
this.stackCount = stackCount;
this.virtualStackCount = 0;
}