handle UnlockUpgrade for Zenurik's Inner Might
All checks were successful
Build / build (pull_request) Successful in 3m47s
All checks were successful
Build / build (pull_request) Successful in 3m47s
This commit is contained in:
parent
a93c42f898
commit
e219b3bcda
@ -160,7 +160,14 @@ export const focusController: RequestHandler = async (req, res) => {
|
||||
const inventory = await getInventory(account._id.toString());
|
||||
let cost = 0;
|
||||
for (const focusType of request.FocusTypes) {
|
||||
if (focusType in ExportFocusUpgrades) {
|
||||
cost += ExportFocusUpgrades[focusType].baseFocusPointCost;
|
||||
} else if (focusType == "/Lotus/Upgrades/Focus/Power/Residual/ChannelEfficiencyFocusUpgrade") {
|
||||
// Zenurik's Inner Might (Focus 2.0)
|
||||
cost += 50_000;
|
||||
} else {
|
||||
logger.warn(`unknown focus upgrade ${focusType}, will unlock it for free`);
|
||||
}
|
||||
inventory.FocusUpgrades.push({ ItemType: focusType, Level: 0 });
|
||||
}
|
||||
inventory.FocusXP![focusPolarity]! -= cost;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user