forked from OpenWF/SpaceNinjaServer
toggles
This commit is contained in:
parent
5a8be1c483
commit
c9170b4086
@ -41,7 +41,10 @@
|
|||||||
"naberusNightsOverride": null,
|
"naberusNightsOverride": null,
|
||||||
"proxyRebellion": false,
|
"proxyRebellion": false,
|
||||||
"proxyRebellionRewardsOverride": 0,
|
"proxyRebellionRewardsOverride": 0,
|
||||||
"voidCorruption": 0,
|
"voidCorruptionWeek1": false,
|
||||||
|
"voidCorruptionWeek2": false,
|
||||||
|
"voidCorruptionWeek3": false,
|
||||||
|
"voidCorruptionWeek4": false,
|
||||||
"galleonOfGhouls": 0,
|
"galleonOfGhouls": 0,
|
||||||
"ghoulEmergenceOverride": null,
|
"ghoulEmergenceOverride": null,
|
||||||
"plagueStarOverride": null,
|
"plagueStarOverride": null,
|
||||||
|
|||||||
@ -51,7 +51,10 @@ export interface IConfig {
|
|||||||
naberusNightsOverride?: boolean;
|
naberusNightsOverride?: boolean;
|
||||||
proxyRebellion?: boolean;
|
proxyRebellion?: boolean;
|
||||||
proxyRebellionRewardsOverride?: number;
|
proxyRebellionRewardsOverride?: number;
|
||||||
voidCorruption?: number;
|
voidCorruptionWeek1?: boolean;
|
||||||
|
voidCorruptionWeek2?: boolean;
|
||||||
|
voidCorruptionWeek3?: boolean;
|
||||||
|
voidCorruptionWeek4?: boolean;
|
||||||
galleonOfGhouls?: number;
|
galleonOfGhouls?: number;
|
||||||
ghoulEmergenceOverride?: boolean;
|
ghoulEmergenceOverride?: boolean;
|
||||||
plagueStarOverride?: boolean;
|
plagueStarOverride?: boolean;
|
||||||
|
|||||||
@ -1566,9 +1566,19 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
|||||||
fullyStockBaro(vt);
|
fullyStockBaro(vt);
|
||||||
}
|
}
|
||||||
|
|
||||||
const voidCorruptionWeeks = config.worldState?.voidCorruption ?? 0;
|
const vcWeeks = [
|
||||||
if (voidCorruptionWeeks > 0) {
|
["voidCorruptionWeek1", 0],
|
||||||
worldState.Alerts = [...worldState.Alerts, voidCorruptionAlerts[voidCorruptionWeeks - 1]];
|
["voidCorruptionWeek2", 1],
|
||||||
|
["voidCorruptionWeek3", 2],
|
||||||
|
["voidCorruptionWeek4", 3],
|
||||||
|
] as const;
|
||||||
|
|
||||||
|
const selected = vcWeeks
|
||||||
|
.filter(([flag]) => (config.worldState as any)?.[flag])
|
||||||
|
.map(([, idx]) => voidCorruptionAlerts[idx]);
|
||||||
|
|
||||||
|
if (selected.length) {
|
||||||
|
worldState.Alerts = [...worldState.Alerts, ...selected];
|
||||||
}
|
}
|
||||||
|
|
||||||
const isFebruary = date.getUTCMonth() == 1;
|
const isFebruary = date.getUTCMonth() == 1;
|
||||||
|
|||||||
@ -1233,16 +1233,25 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group mt-2">
|
<label class="form-label" data-loc="worldState_voidCorruption"></label>
|
||||||
<label class="form-label" for="worldState.voidCorruption" data-loc="worldState_voidCorruption"></label>
|
<div class="d-flex flex-wrap gap-3">
|
||||||
<select class="form-control" id="worldState.voidCorruption" data-default="0">
|
<div class="form-check">
|
||||||
<option value="0" data-loc="disabled"></option>
|
<input class="form-check-input" type="checkbox" id="worldState.voidCorruptionWeek1" />
|
||||||
<option value="1" data-loc="worldState_week" data-loc-replace="1"></option>
|
<label class="form-check-label" for="worldState.voidCorruptionWeek1" data-loc="worldState_week" data-loc-replace="1"></label>
|
||||||
<option value="2" data-loc="worldState_week" data-loc-replace="2"></option>
|
</div>
|
||||||
<option value="3" data-loc="worldState_week" data-loc-replace="3"></option>
|
<div class="form-check">
|
||||||
<option value="4" data-loc="worldState_week" data-loc-replace="4"></option>
|
<input class="form-check-input" type="checkbox" id="worldState.voidCorruptionWeek2" />
|
||||||
</select>
|
<label class="form-check-label" for="worldState.voidCorruptionWeek2" data-loc="worldState_week" data-loc-replace="2"></label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" id="worldState.voidCorruptionWeek3" />
|
||||||
|
<label class="form-check-label" for="worldState.voidCorruptionWeek3" data-loc="worldState_week" data-loc-replace="3"></label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" id="worldState.voidCorruptionWeek4" />
|
||||||
|
<label class="form-check-label" for="worldState.voidCorruptionWeek4" data-loc="worldState_week" data-loc-replace="4"></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group mt-2">
|
<div class="form-group mt-2">
|
||||||
<label class="form-label" for="worldState.galleonOfGhouls" data-loc="worldState_galleonOfGhouls"></label>
|
<label class="form-label" for="worldState.galleonOfGhouls" data-loc="worldState_galleonOfGhouls"></label>
|
||||||
<abbr data-loc-inc="worldState_wolfHunt|worldState_anniversary|worldState_orphixVenom"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 200C333.3 200 344 210.7 344 224L344 336C344 349.3 333.3 360 320 360C306.7 360 296 349.3 296 336L296 224C296 210.7 306.7 200 320 200zM293.3 416C292.7 406.1 297.6 396.7 306.1 391.5C314.6 386.4 325.3 386.4 333.8 391.5C342.3 396.7 347.2 406.1 346.6 416C347.2 425.9 342.3 435.3 333.8 440.5C325.3 445.6 314.6 445.6 306.1 440.5C297.6 435.3 292.7 425.9 293.3 416z"/></svg></abbr>
|
<abbr data-loc-inc="worldState_wolfHunt|worldState_anniversary|worldState_orphixVenom"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 200C333.3 200 344 210.7 344 224L344 336C344 349.3 333.3 360 320 360C306.7 360 296 349.3 296 336L296 224C296 210.7 306.7 200 320 200zM293.3 416C292.7 406.1 297.6 396.7 306.1 391.5C314.6 386.4 325.3 386.4 333.8 391.5C342.3 396.7 347.2 406.1 346.6 416C347.2 425.9 342.3 435.3 333.8 440.5C325.3 445.6 314.6 445.6 306.1 440.5C297.6 435.3 292.7 425.9 293.3 416z"/></svg></abbr>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user