mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
New cards — Congratulations, Get Well (#8655)
* Add card and achievement sprite for Congrats card
* Add data regarding Congrats card
* Add Get Well card
* Add Get Well images
* Add schema
* Remove `if (!target.flags) target.flags = {};` code from cards
* Remove white backgrounds for congrats sprites
* add inital tests for cards
* Fix card tests
* Fix invalid urls in tests
* Update POST-user_class_cast_spellId.test.js
* Update POST-user_class_cast_spellId.test.js
* Update POST-user_class_cast_spellId.test.js
* Update congrats card sprite
* Fix card logic
* Fix user schema
* Change achievement values for new cards to Number
* Resize congrats and getwell cards
This will make them be sized properly
* Separate Market from Drops
* Extract cards to new section
* fix(sprites): revert spritesheet changes
* Add flags if target does not have them
This commit is contained in:
@@ -111,6 +111,8 @@ let schema = new Schema({
|
||||
birthday: Number,
|
||||
partyUp: Boolean,
|
||||
partyOn: Boolean,
|
||||
congrats: Number,
|
||||
getwell: Number,
|
||||
royallyLoyal: Boolean,
|
||||
joinedGuild: Boolean,
|
||||
},
|
||||
@@ -288,6 +290,10 @@ let schema = new Schema({
|
||||
thankyouReceived: Array,
|
||||
birthday: {type: Number, default: 0},
|
||||
birthdayReceived: Array,
|
||||
congrats: {type: Number, default: 0},
|
||||
congratsReceived: Array,
|
||||
getwell: {type: Number, default: 0},
|
||||
getwellReceived: Array,
|
||||
},
|
||||
|
||||
// -------------- Animals -------------------
|
||||
|
||||
Reference in New Issue
Block a user