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,15 +1233,24 @@
|
|||||||
</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 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>
|
||||||
<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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user