mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-21 17:19:15 +01:00
Add rogue achievement and voucher tier
This commit is contained in:
parent
ad59c0a7c4
commit
86b0596a60
public/images/ui
src/system
Binary file not shown.
Before ![]() (image error) Size: 458 B After ![]() (image error) Size: 418 B ![]() ![]() |
BIN
public/images/ui/achv_bar_5.png
Normal file
BIN
public/images/ui/achv_bar_5.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 458 B |
Binary file not shown.
Before ![]() (image error) Size: 433 B After ![]() (image error) Size: 344 B ![]() ![]() |
BIN
public/images/ui/legacy/achv_bar_5.png
Normal file
BIN
public/images/ui/legacy/achv_bar_5.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 433 B |
@ -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)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user