Commit graph

82 commits

Author SHA1 Message Date
Tyler Renelle
6d786b43dd add task._id = task.id on taskDefaults 2013-11-01 13:03:27 -07:00
Tyler Renelle
084c7d3001 remove workaround 2013-11-01 13:01:38 -07:00
Tyler Renelle
a374f67549 [#1708] tmp workaround for task not defined 2013-11-01 12:43:57 -07:00
Tyler Renelle
91c1bd2ddb challenges: remove derby stuff 2013-10-28 09:13:18 -07:00
Matteo Pagliazzi
72bf5d7073 Merge branch 'rewrite' of https://github.com/HabitRPG/habitrpg-shared into rewrite 2013-10-27 12:13:26 +01:00
Matteo Pagliazzi
d7416117f9 award ultimate gear achievement 2013-10-27 12:13:06 +01:00
Tyler Renelle
0f621fe00b Merge pull request #30 from HabitRPG/paglias/reeset-lastdrop
Reset lastDrop to zero when day ends
2013-10-24 12:05:38 -07:00
Matteo Pagliazzi
9285a3e44b add streak achievements 2013-10-23 18:01:35 +02:00
Matteo Pagliazzi
607336f56e reset lastDrop to zero when day end 2013-10-22 21:45:33 +02:00
Dušan Juretić
939bca1eb9 add silver leading zero 2013-09-23 23:30:13 -03:00
Dušan Juretić
c60f6f1c23 corrected rounding of gold & silver calculations 2013-09-23 23:03:11 -03:00
Tyler Renelle
fc23bdb7c8 fixes to dotSet & dotGet which allow getting / setting deep paths that don't exist 2013-09-17 13:45:30 -04:00
Tyler Renelle
40b0e13112 add HISTORY_PREEN.js, a script we need to add to cron function (TODO) 2013-09-08 21:10:42 -04:00
Matteo Pagliazzi
517afd19a4 export moment and lodash in browser 2013-09-04 13:10:12 +02:00
Tyler Renelle
516f947d9b fail-safe dotSet for now until I can figure out what's triggering the error 2013-09-03 22:03:36 -04:00
Tyler Renelle
04de115877 don't run drops on the client. they will be wiped on refresh anyway,
only run on the server (we still need a way to notify users when a drop
happened on the server)
2013-09-02 20:51:21 -04:00
Tyler Renelle
4174412b11 small tweaks to user._tmp, and fixing my own icon 2013-09-02 17:35:00 -04:00
Tyler Renelle
d29f267425 move browserify step to Grunt instead of Make (for consistency). Build files now in dist/ as dist/habitrpg-shared.js & dist/spritesheets.css 2013-08-26 22:09:02 -04:00
Tyler Renelle
2e0441e0b6 start reorganizing everything so we can make use of shared
spritesheets. !note! this will break master, and will only work on the rewrite
2013-08-26 20:42:22 -04:00
Tyler Renelle
6a3b2fc1a1 add potion & reroll to itemstore, add taskDefaults helper 2013-08-25 14:53:45 -04:00
Tyler Renelle
bff1b50e42 build browser scripts 2013-08-25 09:07:58 -04:00
Tyler Renelle
9af5d2d29b no more 'new' deafult lastCron, set it to +new Date() 2013-08-24 19:07:42 -04:00
Tyler Renelle
6aa9483a0b cron: add timezone calculation into the midst. Note: this requires user.preferences.timezoneOffset exist on the user, otherwise it will default to the script-runner timezone (which works fine if user or browser) 2013-08-20 21:40:39 -04:00
Tyler Renelle
18f0755e4e cast user.items[type] to int, this was the "not enough gp" bug 2013-08-18 20:42:27 -04:00
Tyler Renelle
b13c909fe7 possible fix to #1330 2013-08-18 20:12:24 -04:00
Tyler Renelle
d7083bd442 woops, can't alert on server! 2013-08-15 00:26:39 -04:00
Tyler Renelle
2ffade083e cast also during purchasing 2013-08-15 00:12:45 -04:00
Tyler Renelle
fc3d863feb cast values to their appropriate types when running scoring functions 2013-08-15 00:00:12 -04:00
Tyler Renelle
8ae6e361b8 cleanup corrupt stats too 2013-08-14 22:58:20 -04:00
Tyler Renelle
c40ec44644 typo on corrupt task cleanup 2013-08-14 22:51:47 -04:00
Tyler Renelle
81f83be160 safeguard against NaN & null-value tasks 2013-08-13 20:27:42 -04:00
Tyler Renelle
0362de7f0f encapsulate items.buyItem better in habitrpg-shared/items.coffee so we can call from API, derby, & mobile app 2013-08-12 23:47:49 -04:00
Tyler Renelle
9e1341f0e6 derbyUserToAPI - allow pass in user as object, not scope 2013-08-12 20:40:59 -04:00
Tyler Renelle
65881a178e fix to "set undefined path", _.each exits early if it receives false :(
:( :(
2013-08-12 13:18:05 -04:00
Tyler Renelle
cafcde01ec bug fixes: don't allow dotSet/Get on undefined paths, remove @hydrate
from derbyUserToAPI()
2013-08-11 12:18:58 -04:00
Tyler Renelle
6b56067668 add some derby-specific routes that are required by the new api, upgrade
lodash so we can use _.transofrm
2013-08-10 23:30:17 -04:00
Tyler Renelle
c88fa701a5 add revive to algos.coffee, needed by apiv2 & mobile 2013-08-04 23:45:58 -04:00
Tyler Renelle
4df34095aa Merge branch 'develop' 2013-08-04 22:32:41 -04:00
Sabe Jones
07907ae28f Remove misleading "one day" from egg drop text
Pouring a potion on an egg hatches the pet instantly. Until such time as that feature is changed, I've removed the "one day" from the relevant string.
2013-07-31 16:19:16 -05:00
Tyler Renelle
dab72e5865 cap items to maximum in their array, in case the user manually entered
a number larger than the max allowed item in the "restore" modal
2013-07-24 16:45:48 -04:00
Tyler Renelle
a5eb64f771 Merge branch 'master' of github.com:HabitRPG/habitrpg-shared 2013-07-12 16:56:47 -04:00
Tyler Renelle
2bb5ad43e0 require items, algos, helpers locally instead of via index.js 2013-07-12 16:32:28 -04:00
yangit
68e8819c21 Merge remote-tracking branch 'remotes/upstream/master' 2013-06-26 09:56:29 +07:00
yangit
014f2df5c7 remove buying rewards for health (you can buy for money only) 2013-06-26 09:52:40 +07:00
Tyler Renelle
7bb95795c7 Merge branch 'develop' 2013-06-20 20:39:13 -04:00
Tyler Renelle
6bf0305ea4 fixed the empty helpers issue. it was circular dependencies - algos
dep'd helpers, helpers dep'd algos. Since one came first, it didn't
have the other - so it was an empty object. maybe this top-level
index.js combinging ./script/* files isn't such a good idea, because I
think manual requires from within a file will resolve circular
dependencies @yangit
2013-06-18 21:40:43 -04:00
Tyler Renelle
6998fb70f3 export all scripts into top-level index.js, so that coffeeify includes
can import these properly. Hopefully this fixes the empty helpers bug.
@yangit I'll merge this into master once I'm sure it works
2013-06-18 18:21:27 -04:00
yangit
f6750ffc16 fix for confirmation window when buying rewards w\o money. 2013-06-14 15:07:18 +08:00
Tyler Renelle
06a2989d3b Revert "change to require('./index.js') as per 002d4f9541"
This reverts commit 6ca82b2443.
2013-06-04 12:51:33 -04:00
Tyler Renelle
6ca82b2443 change to require('./index.js') as per 002d4f9541 2013-06-04 12:41:50 -04:00