Commit Graph

1119 Commits

Author SHA1 Message Date
Tyler Renelle f0c50e1cfe fix api + tests 2013-05-25 19:42:59 +01:00
Tyler Renelle 20addd24c7 parties: fetch pary-members synchronously, instead of async, to
mitigate the faceless party-members bug
2013-05-25 19:06:40 +01:00
Tyler Renelle c894f87310 habitrpg-shared: fix cron to work with habitrpg-shared d293f74 2013-05-24 18:49:18 +01:00
Tyler Renelle 467741570a pet selection bug fix with lodash (_.findWhere => _.find), fixes #902 2013-05-24 12:25:32 +01:00
Tyler Renelle 62c9e45e2e habitrpg-shared: use newUser from shared helpers instead of in character.coffee 2013-05-24 11:34:17 +01:00
Tyler Renelle 3ed2412f87 habitrpg-shared: bug fix in API 2013-05-23 18:35:32 +01:00
Tyler Renelle 9e2c9045c5 habitrpg-shared: move task.score => misc.score so api can use it too 2013-05-23 17:35:24 +01:00
Tyler Renelle fee39a8b7e habitrpg-shared: add streakBonus back in 2013-05-23 17:00:54 +01:00
Tyler Renelle 69e1f991b7 habitrpg-shared: put drops back in 2013-05-23 16:53:13 +01:00
Tyler Renelle 77e37804e8 habitrpg-shared: bug fixes on hydrate() 2013-05-22 13:57:10 +01:00
Tyler Renelle 258cf55abb fix int() view helper (restore streak) 2013-05-22 11:30:17 +01:00
Tyler Renelle 1596808c25 move everything to lodash, since we're using it for other things
anyway (cloneDeep, findIndex, etc). make sure to return `true`
explicitly after all _.each functions! if you accidently return
false (happens more often than you'd think), it kills the loop. As a
result, I'm using .forEach() native function where i can for
simplicity, but many of our _.each iterate object keys
2013-05-22 11:29:24 +01:00
Tyler Renelle 5a25244096 Merge branch 'habitrpg-shared' into develop
Conflicts:
	src/app/helpers.coffee
	src/app/items.coffee
2013-05-22 11:13:27 +01:00
Tyler Renelle 598f2f6c46 habitrpg-shared: don't cloneDeep our user object for the time being. we can't access __proto__ objects as a result (see https://github.com/codeparty/racer/issues/116), the negative side-effect is this cause certain notifications not to show, because model.on() listeners can't tell the difference between $spec object properties & model.get() 2013-05-22 11:08:05 +01:00
Tyler Renelle 2230ce6688 habitpg-shared: move viewHelpers to misc, add hydrate() function (see https://github.com/codeparty/racer/issues/116) to prevent data-loss on user.get() 2013-05-22 00:40:54 +01:00
Tyler Renelle ff2fedda48 add ability to restore lost streaks, also add int() view helper
function (pretty cool actually, https://groups.google.com/forum/?fromgroups#!topic/derbyjs/otFCLu2p7yY)
2013-05-21 14:33:31 +01:00
Philip How 105087c823 Removes +4 Gems on Reset exploit 2013-05-20 19:52:37 +02:00
Tyler Renelle f412a20203 habitrpg-shared: cron bug-fixes 2013-05-20 10:56:38 +01:00
Stan Lindsey 9c173e3a08 HP potion description clarify.
People getting confused about its use.
2013-05-20 11:08:04 +02:00
Tyler Renelle 83ac2adb79 habithabitrpg-shared: cron mostly working wiht habitrpg-shared https://github.com/HabitRPG/habitrpg-shared/commit/7805a2ba264f48f0ac80bce552bec4fefdf109e9 2013-05-20 01:15:33 +01:00
Tyler Renelle 0b445df909 habitrpg-shared: *almost* working wth new scoring (https://github.com/HabitRPG/habitrpg-shared/commit/c0cf9780fe8e17211d4749b9c3eb2a0fd389db64) - need to fix for cron, API, and other misc bugs 2013-05-19 23:50:41 +01:00
Tyler Renelle 6a36f4bd1d habitrpg-shared: helpers now working https://github.com/HabitRPG/habitrpg-shared/commit/d42ac5d53ca077ebc746d8d0f48cc1f51e37ae63 2013-05-19 18:53:13 +01:00
Tyler Renelle 5d1368e794 habitrpg-shared: got items working (see https://github.com/HabitRPG/habitrpg-shared/commit/1feb209c2486ff3dd3ebb84dccd4f300d1c31ed6) 2013-05-19 18:01:50 +01:00
Tyler Renelle ae4c5723e0 chat: allow admins to remove other people's messages 2013-05-19 15:02:04 +01:00
Tyler Renelle a6973e9ae2 back to websockets 2013-05-17 09:58:37 +01:00
Tyler Renelle 5a01963c1f back to xhr-polling or a bit, will figure out why websockets having
This reverts commit d59f1f6925.
2013-05-15 09:58:38 +01:00
Tyler Renelle aef76ae969 pets: bug fix for users who haven't been properly converted to pets array system 2013-05-15 09:14:42 +01:00
Tyler Renelle d59f1f6925 Revert "back to xhr-polling or a bit, will figure out why websockets having"
This reverts commit e5549d0501.
2013-05-14 23:53:59 +01:00
Tyler Renelle e5549d0501 back to xhr-polling or a bit, will figure out why websockets having
issues soon
2013-05-14 23:42:36 +01:00
Tyler Renelle 950be4daf2 cron: better solution to testing "due today" for tasks with repeat
options, and user with custom dayStart. Still not sure if this is the
ideal solution, but addresses #963
2013-05-14 19:01:05 +01:00
Tyler Renelle 3ae295c9a3 don't include 'disabled' shading for todos 2013-05-14 18:20:19 +01:00
Tyler Renelle 0a0cf1d94e cron: fix repeat, for old users without default task.repeat={} 2013-05-14 18:10:24 +01:00
Tyler Renelle 92b178b4a4 huge cron fixes which should solve streak, dayStart, "timezone" issues 2013-05-14 17:39:42 +01:00
Tyler Renelle dc7f80ceb9 Merge branch 'develop' of github.com:lefnire/habitrpg into develop 2013-05-13 11:02:20 +01:00
Daniel Saewitz ce6914f0c8 Merge branch 'develop' of github.com:lefnire/habitrpg into develop 2013-05-12 14:00:33 -04:00
Daniel Saewitz 445a968a9b Merge 2013-05-12 13:58:50 -04:00
Tyler Renelle b162a43545 module.exports growl notifications so other files can use it 2013-05-12 16:47:31 +01:00
Tyler Renelle f7145bb951 cleanup of the show-completed / show-remaining. That context-dependant
/ display-context-for stuff was bugging me out, and wasn't using Derby
to it's potential. also some tags & habit-wide cleanup in helpers:taskClasses()
2013-05-12 10:52:32 +01:00
Tyler Renelle 2164e7322b _partyMembers fetch as async to final 3-part subscription. test on
beta first
2013-05-12 00:56:02 +01:00
Daniel Saewitz 8e7ab79098 Turn off locale set 2013-05-11 18:05:27 -04:00
Tyler Renelle 0ca67bef95 wrap up some "token" => "gem" conversions, code-style 2013-05-11 19:19:09 +01:00
Tyler Renelle 35342e8b71 Merge pull request #925 from SlappyBag/develop
Tokens = Gems for front-end display.
2013-05-11 10:43:45 -07:00
Tyler Renelle 0421c2e61b back to double _party - fetch then subscribe, separatated
subscriptions seem to be causing problems
2013-05-11 13:08:09 +01:00
Tyler Renelle e701d98bd7 make solo-user subscription a callback of unsubscribe 2013-05-11 12:32:36 +01:00
Tyler Renelle 747b6e7930 BREAKING CHANGE - fetch _partyMembers, subscribe to _party, _user,
_tavern. Could cut back substantially on subscription overhead. fetch
is async to the subscriptions, need to test on beta that this is kosher
2013-05-11 12:13:48 +01:00
Tyler Renelle e6cd061bfd don't calculate dailies on cron when user is resting, this to prevent
abusing the inn. see https://trello.com/card/rest-in-tavern/50e5d3684fe3a7266b0036d6/14
2013-05-10 23:16:59 +01:00
Tyler Renelle fb29e35ffc another attempted fix for chat dupes - model.unshift like usual,
callback checks for dupes and sets messages to unique. this way
minimizes the model.set() (which clobbers other chatters if you are the
duplicate bugger)
2013-05-10 19:20:53 +01:00
Tyler Renelle 05de1364a8 apply active filters as tags to newly-created tasks 2013-05-10 18:35:14 +01:00
Tyler Renelle 44bd61016f tags: cleaner tag-deletion handling 2013-05-10 18:23:05 +01:00
Tyler Renelle eea9a2129f tags: some corrupt-tags bug fixes 2013-05-10 18:06:35 +01:00