mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Move events to own module
This commit is contained in:
19
common/script/content/events.js
Normal file
19
common/script/content/events.js
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
// IMPORTANT: The end date should be one to two days AFTER the actual end of
|
||||
// the event, to allow people in different timezones to still buy the
|
||||
// event gear up until at least the actual end of the event.
|
||||
|
||||
var events = {
|
||||
winter: {start:'2013-12-31',end:'2014-02-01'},
|
||||
birthday: {start:'2013-01-30',end:'2014-02-01'},
|
||||
spring: {start:'2014-03-21',end:'2014-05-01'},
|
||||
summer: {start:'2014-06-20',end:'2014-08-01'},
|
||||
gaymerx: {start:'2014-07-02',end:'2014-08-01'},
|
||||
fall: {start:'2014-09-21',end:'2014-11-01'},
|
||||
winter2015: {start:'2014-12-21',end:'2015-02-02'},
|
||||
spring2015: {start:'2015-03-20',end:'2015-05-02'},
|
||||
summer2015: {start:'2015-06-20',end:'2015-08-02'}
|
||||
}
|
||||
|
||||
module.exports = events;
|
||||
@@ -14,19 +14,7 @@ t = require './translation.js'
|
||||
classes = ['warrior', 'rogue', 'healer', 'wizard']
|
||||
gearTypes = [ 'weapon', 'armor', 'head', 'shield', 'body', 'back', 'headAccessory', 'eyewear']
|
||||
|
||||
events =
|
||||
# IMPORTANT: The end date should be one to two days AFTER the actual end of
|
||||
# the event, to allow people in different timezones to still buy the
|
||||
# event gear up until at least the actual end of the event.
|
||||
winter: {start:'2013-12-31',end:'2014-02-01'}
|
||||
birthday: {start:'2013-01-30',end:'2014-02-01'}
|
||||
spring: {start:'2014-03-21',end:'2014-05-01'}
|
||||
summer: {start:'2014-06-20',end:'2014-08-01'}
|
||||
gaymerx: {start:'2014-07-02',end:'2014-08-01'}
|
||||
fall: {start:'2014-09-21',end:'2014-11-01'}
|
||||
winter2015: {start:'2014-12-21',end:'2015-02-02'}
|
||||
spring2015: {start:'2015-03-20',end:'2015-05-02'}
|
||||
summer2015: {start:'2015-06-20',end:'2015-08-02'}
|
||||
events = require('./events.js')
|
||||
|
||||
api.mystery =
|
||||
201402: {start:'2014-02-22',end:'2014-02-28', text:'Winged Messenger Set'}
|
||||
|
||||
Reference in New Issue
Block a user