mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-16 11:11:43 +00:00
feat(NYE): New Year's cards
This commit is contained in:
parent
9e74d94e48
commit
dd13727765
1 changed files with 5 additions and 0 deletions
|
|
@ -932,6 +932,11 @@ api.wrap = (user, main=true) ->
|
|||
#cb? {code:200, message:"#{item.text} inside!"}, user.items.gear.owned
|
||||
cb? null, user.items.gear.owned
|
||||
|
||||
readNYE: (req,cb) ->
|
||||
user.items.special.nyeReceived.shift()
|
||||
user.markModified? 'items.special.nyeReceived'
|
||||
cb? null, 'items.special'
|
||||
|
||||
# ------
|
||||
# Score
|
||||
# ------
|
||||
|
|
|
|||
Loading…
Reference in a new issue