Lower Berry Pouch cap to 3
This commit is contained in:
1 parent
62f464c81c
commit
29b0f046a6
2 files changed
+3
-3
No files matched your search
@@ -671,13 +671,13 @@ export class PreserveBerryModifier extends PersistentModifier {
|
||||
|
||||
apply(args: any[]): boolean {
|
||||
if (!(args[0] as Utils.BooleanHolder).value)
|
||||
(args[0] as Utils.BooleanHolder).value = this.getStackCount() === this.getMaxStackCount() || Utils.randInt(this.getMaxStackCount()) < this.getStackCount();
|
||||
(args[0] as Utils.BooleanHolder).value = Utils.randInt(this.getMaxStackCount()) < this.getStackCount();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
getMaxStackCount(): integer {
|
||||
return 4;
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user