Add Infinite Platinum Option #346
@ -16,6 +16,7 @@
|
|||||||
"unlockAllQuests": true,
|
"unlockAllQuests": true,
|
||||||
"completeAllQuests": false,
|
"completeAllQuests": false,
|
||||||
"infiniteResources": true,
|
"infiniteResources": true,
|
||||||
|
"infinitePlatinum": true,
|
||||||
"unlockAllShipFeatures": true,
|
"unlockAllShipFeatures": true,
|
||||||
"unlockAllShipDecorations": true,
|
"unlockAllShipDecorations": true,
|
||||||
"unlockAllFlavourItems": true,
|
"unlockAllFlavourItems": true,
|
||||||
|
@ -23,6 +23,16 @@ export const getCreditsController: RequestHandler = async (req, res) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.infinitePlatinum) {
|
||||||
|
res.json({
|
||||||
|
RegularCredits: inventory.RegularCredits,
|
||||||
|
TradesRemaining: inventory.TradesRemaining,
|
||||||
|
PremiumCreditsFree: 999999999,
|
||||||
|
PremiumCredits: 999999999
|
||||||
|
});
|
||||||
|
|||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const inventory = await getInventory(accountId);
|
const inventory = await getInventory(accountId);
|
||||||
res.json({
|
res.json({
|
||||||
RegularCredits: inventory.RegularCredits,
|
RegularCredits: inventory.RegularCredits,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
formatting - are you not using prettier?