Fixed errors and added option to WebUI
This commit is contained in:
parent
30762efe5a
commit
5b1c7275fa
@ -23,6 +23,7 @@ export const getCreditsController: RequestHandler = async (req, res) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const inventory = await getInventory(accountId);
|
||||
if (config.infinitePlatinum) {
|
||||
res.json({
|
||||
RegularCredits: inventory.RegularCredits,
|
||||
@ -32,8 +33,7 @@ export const getCreditsController: RequestHandler = async (req, res) => {
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const inventory = await getInventory(accountId);
|
||||
|
||||
res.json({
|
||||
RegularCredits: inventory.RegularCredits,
|
||||
TradesRemaining: inventory.TradesRemaining,
|
||||
|
@ -33,6 +33,7 @@ interface IConfig {
|
||||
unlockAllQuests?: boolean;
|
||||
completeAllQuests?: boolean;
|
||||
infiniteResources?: boolean;
|
||||
infinitePlatinum?: boolean;
|
||||
unlockAllShipFeatures?: boolean;
|
||||
unlockAllShipDecorations?: boolean;
|
||||
unlockAllFlavourItems?: boolean;
|
||||
|
@ -231,9 +231,11 @@
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="infiniteResources" />
|
||||
<label class="form-check-label" for="infiniteResources"
|
||||
>Infinite Credits and Platinum</label
|
||||
>
|
||||
<label class="form-check-label" for="infiniteResources">Infinite Credits and Platinum</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="infinitePlatinum" />
|
||||
<label class="form-check-label" for="infinitePlatinum">Infinite Platinum Only</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="unlockAllShipFeatures" />
|
||||
@ -241,9 +243,7 @@
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="unlockAllShipDecorations" />
|
||||
<label class="form-check-label" for="unlockAllShipDecorations"
|
||||
>Unlock All Ship Decorations</label
|
||||
>
|
||||
<label class="form-check-label" for="unlockAllShipDecorations">Unlock All Ship Decorations</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="unlockAllFlavourItems" />
|
||||
@ -254,9 +254,7 @@
|
||||
<label class="form-check-label" for="unlockAllSkins">Unlock All Skins</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="spoofMasteryRank"
|
||||
>Spoofed Mastery Rank (-1 to disable)</label
|
||||
>
|
||||
<label class="form-label" for="spoofMasteryRank">Spoofed Mastery Rank (-1 to disable)</label>
|
||||
<input class="form-control" id="spoofMasteryRank" type="number" min="-1" />
|
||||
</div>
|
||||
<button class="btn btn-primary mt-3" type="submit">Save Settings</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user