Add rogue achievement and voucher tier

pull/393/head
Flashfyre 2024-05-01 19:28:07 -04:00
parent ad59c0a7c4
commit 86b0596a60
6 changed files with 5 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 B

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

View File

@ -7,6 +7,7 @@ export enum AchvTier {
COMMON, COMMON,
GREAT, GREAT,
ULTRA, ULTRA,
ROGUE,
MASTER MASTER
} }
@ -50,8 +51,10 @@ export class Achv {
} }
getTier(): AchvTier { getTier(): AchvTier {
if (this.score >= 100) if (this.score >= 150)
return AchvTier.MASTER; return AchvTier.MASTER;
if (this.score >= 100)
return AchvTier.ROGUE;
if (this.score >= 50) if (this.score >= 50)
return AchvTier.ULTRA; return AchvTier.ULTRA;
if (this.score >= 25) if (this.score >= 25)

View File

@ -44,7 +44,7 @@ export class Voucher {
case VoucherType.PREMIUM: case VoucherType.PREMIUM:
return AchvTier.ULTRA; return AchvTier.ULTRA;
case VoucherType.GOLDEN: case VoucherType.GOLDEN:
return AchvTier.MASTER; return AchvTier.ROGUE;
} }
} }
} }