import { AchievementType , AchievementRewardType , Achievement , PermanentUpgrade , PetAttribute , Stat } from '../../../../shared/interfaces' ; import { Player } from '../../../../shared/models' ; export class Contributor extends Achievement { static readonly base = 1 ; static readonly statWatches = [ 'Game/Contributor/ContributorTier' ] ; static readonly type = AchievementType . Special ; static descriptionForTier ( tier ) { const baseStr = `Gain a title.` ; return baseStr ; } static calculateTier ( player ) { const steps = player . $statistics . get ( 'Game/Contributor/ContributorTier' ) ; return steps >= Contributor . base ? 1 : 0 ; } static rewardsForTier ( tier ) { const baseRewards = [ { type : AchievementRewardType . Title , title : 'Contributor' } ] ; return baseRewards ; } }