Move events to own module

This commit is contained in:
Blade Barringer
2015-09-16 20:12:09 -05:00
parent 8881dbc034
commit 504a2e7a52
2 changed files with 20 additions and 13 deletions

View 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;

View File

@@ -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'}