fix: don't charge platinum for renaming kaithe (#1440)
Reviewed-on: #1440 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
d918b0c982
commit
0c2f72f9b1
@ -18,7 +18,11 @@ export const nameWeaponController: RequestHandler = async (req, res) => {
|
|||||||
} else {
|
} else {
|
||||||
item.ItemName = undefined;
|
item.ItemName = undefined;
|
||||||
}
|
}
|
||||||
const currencyChanges = updateCurrency(inventory, "webui" in req.query ? 0 : 15, true);
|
const currencyChanges = updateCurrency(
|
||||||
|
inventory,
|
||||||
|
req.query.Category == "Horses" || "webui" in req.query ? 0 : 15,
|
||||||
|
true
|
||||||
|
);
|
||||||
await inventory.save();
|
await inventory.save();
|
||||||
res.json({
|
res.json({
|
||||||
InventoryChanges: currencyChanges
|
InventoryChanges: currencyChanges
|
||||||
|
Loading…
x
Reference in New Issue
Block a user