[Bug] Fix awarded ribbon in limited support (#6713)

Fixed awarded ribbon in limited support
This commit is contained in:
Wlowscha 2025-10-30 14:24:04 +01:00 committed by GitHub
parent f9a21a0ea4
commit 20615bcd21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1109,7 +1109,16 @@ export class LowerStarterPointsChallenge extends Challenge {
*/
export class LimitedSupportChallenge extends Challenge {
public override get ribbonAwarded(): RibbonFlag {
return this.value ? ((RibbonData.NO_HEAL << (BigInt(this.value) - 1n)) as RibbonFlag) : 0n;
switch (this.value) {
case 1:
return RibbonData.NO_HEAL as RibbonFlag;
case 2:
return RibbonData.NO_SHOP as RibbonFlag;
case 3:
return (RibbonData.NO_HEAL | RibbonData.NO_SHOP | RibbonData.NO_SUPPORT) as RibbonFlag;
default:
return 0n as RibbonFlag;
}
}
constructor() {
super(Challenges.LIMITED_SUPPORT, 3);