mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Move card types to separate file
This commit is contained in:
22
common/script/content/card-types.js
Normal file
22
common/script/content/card-types.js
Normal file
@@ -0,0 +1,22 @@
|
||||
let cardTypes = {
|
||||
greeting: {
|
||||
key: 'greeting',
|
||||
messageOptions: 4,
|
||||
yearRound: true
|
||||
},
|
||||
nye: {
|
||||
key: 'nye',
|
||||
messageOptions: 5
|
||||
},
|
||||
thankyou: {
|
||||
key: 'thankyou',
|
||||
messageOptions: 4,
|
||||
yearRound: true
|
||||
},
|
||||
valentine: {
|
||||
key: 'valentine',
|
||||
messageOptions: 4
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = cardTypes;
|
||||
@@ -549,21 +549,7 @@ api.gearTypes = gearTypes
|
||||
|
||||
api.spells = require('./spells/index.js')
|
||||
|
||||
api.cardTypes =
|
||||
greeting:
|
||||
key: 'greeting'
|
||||
messageOptions: 4
|
||||
yearRound: true
|
||||
nye:
|
||||
key: 'nye'
|
||||
messageOptions: 5
|
||||
thankyou:
|
||||
key: 'thankyou'
|
||||
messageOptions: 4
|
||||
yearRound: true
|
||||
valentine:
|
||||
key: 'valentine'
|
||||
messageOptions: 4
|
||||
api.cardTypes = require('./card-types')
|
||||
|
||||
# Intercept all spells to reduce user.stats.mp after casting the spell
|
||||
_.each api.spells, (spellClass) ->
|
||||
|
||||
Reference in New Issue
Block a user