import { AchievementType , AchievementRewardType , Achievement , Stat } from '../../../../shared/interfaces' ; import { Player } from '../../../../shared/models' ; export class AncientSpiritualist extends Achievement { static readonly statWatches = [ 'Game/IdleLands3/Spiritualist' ] ; static readonly type = AchievementType . Special ; static descriptionForTier ( tier ) { const baseStr = `Gain a title and +10% to all special stats for achieving a needlessly tough challenge! 🍻` ; return baseStr ; } static calculateTier ( player ) { return player . $statistics . get ( 'Game/IdleLands3/Spiritualist' ) ? 1 : 0 ; } static rewardsForTier ( tier ) { const baseRewards = [ { type : AchievementRewardType . StatMultipliers , stats : { [ Stat . XP ] : 1 + ( tier * 0.1 ) , [ Stat . HP ] : 1 + ( tier * 0.1 ) , [ Stat . GOLD ] : 1 + ( tier * 0.1 ) } } , { type : AchievementRewardType . Title , title : 'Spirit Tamer 👻' } ] ; return baseRewards ; } }