Commit Graph

119 Commits

Author SHA1 Message Date
Tyler Renelle 6a42b681e3 a bunch of small fixes 2012-10-12 07:11:06 -04:00
Tyler Renelle cb42e88f13 cleaner date format in graphs 2012-10-11 12:52:40 -04:00
Tyler Renelle eb9e385eb1 cleaning up the modificationsLookup function 2012-10-11 12:41:31 -04:00
Tyler Renelle 476fb63a0d tests passing for basic scoring 2012-10-11 11:41:47 -04:00
Tyler Renelle bad2f6f5b3 Revert "Just pass in task object to taskClasses view helper", this was
breaking deleting tasks - revisit later

This reverts commit d04140977f.
2012-10-11 11:15:39 -04:00
Tyler Renelle d04140977f Just pass in task object to taskClasses view helper 2012-09-29 18:03:47 -04:00
Tyler Renelle 38e1a95140 some fixes to test/user.mocha based on scoring lookup function 2012-09-26 21:36:28 -04:00
Tyler Renelle 18d8e93e55 remove rerollsRemaining, export delta function 2012-09-26 00:19:19 -04:00
Tyler Renelle 80ac213fda export some scoring functions for use in testing 2012-09-25 23:51:15 -04:00
Tyler Renelle 2e08217799 aha! my first bug caught by mocha 2012-09-25 23:02:54 -04:00
Tyler Renelle 27c617741e scoring modifiers based on lvl-1, not lvl (lvl 1 should not modify score) 2012-09-25 22:20:12 -04:00
Tyler Renelle 6ec80c945c use lodash.clone instead of node.extend 2012-09-24 23:51:56 -04:00
Tyler Renelle b63ac10657 shared helpers.dayMapping 2012-09-24 23:12:13 -04:00
Tyler Renelle f78cd64218 bug fix on missing task 2012-09-24 21:29:53 -04:00
Tyler Renelle 9d165a0ff7 async + user aggregate hp loss 2012-09-24 21:23:29 -04:00
Tyler Renelle ce901f7b93 back to syncronous calls on the client 2012-09-24 20:10:49 -04:00
Tyler Renelle 893b0bd383 try running cron on the server instead 2012-09-24 19:40:18 -04:00
Tyler Renelle 1087f4abc4 some cleanup 2012-09-24 18:47:08 -04:00
Tyler Renelle 7a894ceefd back to syncronous _.each on cron - slower, but async doesn't seem to save items to database 2012-09-24 17:46:46 -04:00
Tyler Renelle 0f9b70daf2 fix moment() bugs (word from the wise, moment() functions modify the
original object)
2012-09-24 17:26:25 -04:00
Tyler Renelle 33f8c43e93 more bug-fixing on async cron, using lodash instead of underscore 2012-09-24 16:45:37 -04:00
Tyler Renelle 13a7019413 setup for async cron 2012-09-24 16:19:27 -04:00
Tyler Renelle baf689a8d1 scoring function refactoring & testing 2012-09-24 14:23:11 -04:00
Tyler Renelle 6b4ad78ec5 misplaced bracket 2012-09-24 11:26:44 -04:00
Tyler Renelle 63a9eac2d0 only run notitifications in the browser 2012-09-24 09:56:42 -04:00
Tyler Renelle f21a365a13 use moment().diff instead of custom days between function 2012-09-24 09:56:38 -04:00
Tyler Renelle d929905c48 use model events to handle stats notifications. not perfect, need to
fix handling of "undo exp/gp" operation
2012-09-24 09:56:34 -04:00
Tyler Renelle 0ba7ccd370 move scoring functions around
Conflicts:

	lib/app/index.js
	src/app/index.coffee
2012-09-24 09:56:25 -04:00
Tyler Renelle 1c0d8726c3 setup modifier using constant 2012-09-24 09:52:52 -04:00
Tyler Renelle 1a68f00fb2 moving some schema stuff around 2012-09-24 09:52:48 -04:00
Tyler Renelle cffc3aef75 minor tweaks
Conflicts:

	lib/app/index.js
2012-09-24 09:52:22 -04:00
Tyler Renelle 8480ef3564 some bugs which are a result of user not being tested as already dead.
using scoring.setUser() so we don't have to pass user all over the
place, there's probably a better approach -- revisit
2012-09-20 10:57:32 -04:00
Tyler Renelle 5f771ef830 rename quarters to tokens 2012-09-19 09:50:39 -04:00
Tyler Renelle be9d419313 Quarters system, generalized modal dialogs, bug fixes 2012-09-18 21:37:49 -04:00
Tyler Renelle 9811117acd Fix bug of incomplete TODOs not gaining value on cron 2012-09-18 01:23:10 -04:00
Tyler Renelle 393033b1c2 bug fix: needed to kill user before checking their exp - tnl() >= 0
when lvl == 0

Conflicts:

	test/test.coffee
2012-09-18 01:23:03 -04:00
Tyler Renelle bde52a01a9 Pull in changes from private branch, including many bug fixes and -
drumrole - functioning facebook auth!!
2012-09-15 15:06:51 -04:00
Tyler Renelle 10c5fecb75 Merge branch 'master' of https://github.com/lefnire/habitrpg 2012-09-07 19:35:24 -04:00
Tyler Renelle a0611297fa necessary changes to get everyauth working (since can't run
model.fetch() on the server). revisit, this might not be the case
2012-09-07 19:34:40 -04:00
Tyler Renelle ee2c4663d5 Pull in a bunch of changes from private branch, initial everyauth code 2012-09-07 17:23:31 -04:00
Tyler Renelle 9fd4367a8a pull in some changes from private branch 2012-09-06 15:33:06 -04:00
Tyler Renelle 79cf7d2bb9 use linear growth TNL algorithm 2012-09-06 12:28:06 -04:00
Tyler Renelle 9c58a7809f Beginnings of toggling days-of-week for repeatable dailies
Conflicts:

	lib/app/index.js
	package.json
	src/app/index.coffee
2012-09-04 23:07:58 -04:00
Tyler Renelle f68dcbf469 add trash icon, remove delete button (people aren't deleting the same
tasks, maybe this will help them). add a bunch of tooltips on the
controls. prevent accidental deletes
2012-09-04 18:01:42 -04:00
Tyler Renelle 91711aad07 use heart & star icons instead of HP / Exp
Conflicts:

	lib/app/index.js
2012-09-04 16:09:54 -04:00
Tyler Renelle 9146f2f3fe move notifications to the right. eventually i'll want it above the mouse 2012-09-04 16:08:47 -04:00
Tyler Renelle 0391cee8a5 in fact, remove shortcuts altogether - we're not using formatting yet,
and it's borking firefox
2012-09-04 14:28:52 -04:00
Tyler Renelle 06e96407d3 Fix firefox by removing the document.execCommand('useCSS', false, true) stuff 2012-09-04 14:28:48 -04:00
Tyler Renelle 8a4185815f move terms & privacy to staticPages
Conflicts:

	lib/server/index.js
	src/server/index.coffee
	views/app/index.html
2012-09-02 23:01:14 -04:00
Tyler Renelle ac2fc49e12 reset hp on level up (thought i did already..) 2012-09-02 16:37:05 -04:00