fix: scale credits subtracted from clan vault when auto-contributing
This commit is contained in:
parent
2ff535e7ab
commit
fac52bfda1
@ -77,8 +77,8 @@ export const placeDecoInComponentController: RequestHandler = async (req, res) =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (enoughMiscItems) {
|
if (enoughMiscItems) {
|
||||||
guild.VaultRegularCredits -= meta.price;
|
guild.VaultRegularCredits -= scaleRequiredCount(guild.Tier, meta.price);
|
||||||
deco.RegularCredits = meta.price;
|
deco.RegularCredits = scaleRequiredCount(guild.Tier, meta.price);
|
||||||
|
|
||||||
deco.MiscItems = [];
|
deco.MiscItems = [];
|
||||||
for (const ingredient of meta.ingredients) {
|
for (const ingredient of meta.ingredients) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user