mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-25 06:52:21 -05:00
67 lines
1.9 KiB
CoffeeScript
67 lines
1.9 KiB
CoffeeScript
now = new Date()
|
|
oneDayBefore = (new Date now).setDate(now.getDate() - 1)
|
|
|
|
module.exports.DungeonArenaStarted = DungeonArenaStarted =
|
|
_id: '53ba76249259823746b6b481'
|
|
name: 'Dungeon Arena Started'
|
|
description: 'Started playing Dungeon Arena. It was a really really hard game. So hard in fact, that this line should already be spanning'
|
|
#icon: '/images/achievements/swords-01.png'
|
|
worth: 3
|
|
collection: 'level.session'
|
|
query: "{\"level.original\":\"dungeon-arena\"}"
|
|
userField: 'creator'
|
|
i18n:
|
|
es:
|
|
name: 'Dungeon Arenos Started'
|
|
|
|
module.exports.Simulated = Simulated =
|
|
_id: '53ba76249259823746b6b482'
|
|
name: 'Simulated'
|
|
description: 'Simulated Games.'
|
|
worth: 1
|
|
collection: 'users'
|
|
query: "{\"simulatedBy\":{\"$gt\":0}}"
|
|
userField: '_id'
|
|
proportionalTo: 'simulatedBy'
|
|
|
|
module.exports.Simulated2 = Simulated2 =
|
|
_id: '53ba76249259823746b6b483'
|
|
name: 'Simulated2'
|
|
description: 'Simulated games for real.'
|
|
icon: '/images/achievements/cup-02.png'
|
|
worth: 1.5
|
|
collection: 'users'
|
|
query: "{\"simulatedBy\":{\"$gt\":0}}"
|
|
userField: '_id'
|
|
proportionalTo: 'simulatedBy'
|
|
function:
|
|
kind: 'logarithmic'
|
|
parameters: {a: 1, b: .5, c: .5, d: 1}
|
|
|
|
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, Simulated2]
|
|
module.exports.earnedAchievements = [DungeonArenaStartedEarned, SimulatedEarned]
|