codecombat/test/demo/fixtures/achievements.coffee

52 lines
1.4 KiB
CoffeeScript
Raw Normal View History

2014-07-07 06:44:44 -04:00
now = new Date()
oneDayBefore = (new Date now).setDate(now.getDate() - 1)
module.exports.DungeonArenaStarted = DungeonArenaStarted =
_id: '53ba76249259823746b6b481'
2014-07-06 17:16:00 -04:00
name: 'Dungeon Arena Started'
description: 'Started playing Dungeon Arena. '
2014-07-07 09:03:28 -04:00
icon: '/images/achievements/swords-01.png'
2014-07-06 17:16:00 -04:00
worth: 3
collection: 'level.session'
query: "{\"level.original\":\"dungeon-arena\"}"
userField: 'creator'
2014-07-07 06:44:44 -04:00
module.exports.Simulated = Simulated =
_id: '53ba76249259823746b6b482'
name: 'Simulated'
description: 'Simulated Games.'
2014-07-07 09:03:28 -04:00
icon: '/images/achievements/cup-02.png'
2014-07-07 06:44:44 -04:00
worth: 1
collection: 'users'
query: "{\"simulatedBy\":{\"$gt\":0}}"
userField: '_id'
proportionalTo: 'simulatedBy'
module.exports.DungeonArenaStartedEarned = DungeonArenaStartedEarned =
user: ''
achievement: DungeonArenaStarted._id
collection: DungeonArenaStarted.collection
achievementName: DungeonArenaStarted.name
created: now
changed: now
achievedAmount: 1
earnedPoints: 3
previouslyAchievedAmount: 0
notified: true
module.exports.SimulatedEarned = SimulatedEarned =
user: ''
achievement: Simulated._id
collection: Simulated.collection
achievementName: Simulated.name
created: now
changed: now
achievedAmount: 6
earnedPoints: 6
previouslyAchievedAmount: 5
notified: true
module.exports.achievements = [DungeonArenaStarted, Simulated]
module.exports.earnedAchievements = [DungeonArenaStartedEarned, SimulatedEarned]