toggles
Some checks failed
Build / build (pull_request) Failing after 1m29s

This commit is contained in:
Slayer55555 2025-10-07 17:17:34 -03:00
parent 5a8be1c483
commit c9170b4086
4 changed files with 40 additions and 15 deletions

View File

@ -41,7 +41,10 @@
"naberusNightsOverride": null,
"proxyRebellion": false,
"proxyRebellionRewardsOverride": 0,
"voidCorruption": 0,
"voidCorruptionWeek1": false,
"voidCorruptionWeek2": false,
"voidCorruptionWeek3": false,
"voidCorruptionWeek4": false,
"galleonOfGhouls": 0,
"ghoulEmergenceOverride": null,
"plagueStarOverride": null,

View File

@ -51,7 +51,10 @@ export interface IConfig {
naberusNightsOverride?: boolean;
proxyRebellion?: boolean;
proxyRebellionRewardsOverride?: number;
voidCorruption?: number;
voidCorruptionWeek1?: boolean;
voidCorruptionWeek2?: boolean;
voidCorruptionWeek3?: boolean;
voidCorruptionWeek4?: boolean;
galleonOfGhouls?: number;
ghoulEmergenceOverride?: boolean;
plagueStarOverride?: boolean;

View File

@ -1566,9 +1566,19 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
fullyStockBaro(vt);
}
const voidCorruptionWeeks = config.worldState?.voidCorruption ?? 0;
if (voidCorruptionWeeks > 0) {
worldState.Alerts = [...worldState.Alerts, voidCorruptionAlerts[voidCorruptionWeeks - 1]];
const vcWeeks = [
["voidCorruptionWeek1", 0],
["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;

View File

@ -1233,16 +1233,25 @@
</select>
</div>
</div>
<div class="form-group mt-2">
<label class="form-label" for="worldState.voidCorruption" data-loc="worldState_voidCorruption"></label>
<select class="form-control" id="worldState.voidCorruption" data-default="0">
<option value="0" data-loc="disabled"></option>
<option value="1" data-loc="worldState_week" data-loc-replace="1"></option>
<option value="2" data-loc="worldState_week" data-loc-replace="2"></option>
<option value="3" data-loc="worldState_week" data-loc-replace="3"></option>
<option value="4" data-loc="worldState_week" data-loc-replace="4"></option>
</select>
</div>
<label class="form-label" data-loc="worldState_voidCorruption"></label>
<div class="d-flex flex-wrap gap-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="worldState.voidCorruptionWeek1" />
<label class="form-check-label" for="worldState.voidCorruptionWeek1" data-loc="worldState_week" data-loc-replace="1"></label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="worldState.voidCorruptionWeek2" />
<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 class="form-group mt-2">
<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>