mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Extract time traveler stable into separate module
This commit is contained in:
@@ -1114,13 +1114,7 @@ api.specialMounts =
|
||||
'Orca-Base': 'orca'
|
||||
'Gryphon-RoyalPurple': 'royalPurpleGryphon'
|
||||
|
||||
api.timeTravelStable =
|
||||
pets:
|
||||
'Mammoth-Base': t('mammoth')
|
||||
'MantisShrimp-Base': t('mantisShrimp')
|
||||
mounts:
|
||||
'Mammoth-Base': t('mammoth')
|
||||
'MantisShrimp-Base': t('mantisShrimp')
|
||||
api.timeTravelStable = require('./time-traveler-stable.js')
|
||||
|
||||
api.hatchingPotions =
|
||||
Base: value: 2, text: t('hatchingPotionBase')
|
||||
|
||||
16
common/script/content/time-traveler-stable.js
Normal file
16
common/script/content/time-traveler-stable.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
var t = require('./translation.js');
|
||||
|
||||
var stable = {
|
||||
pets: {
|
||||
'Mammoth-Base': t('mammoth'),
|
||||
'MantisShrimp-Base': t('mantisShrimp')
|
||||
},
|
||||
mounts: {
|
||||
'Mammoth-Base': t('mammoth'),
|
||||
'MantisShrimp-Base': t('mantisShrimp')
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = stable;
|
||||
Reference in New Issue
Block a user