Commit Graph

46 Commits

Author SHA1 Message Date
Tyler Renelle
fe08c1e3cb coffee version difference 2012-10-28 15:29:28 -04:00
Tyler Renelle
9eb85a2782 trying some fixes for server crashing 2012-10-28 12:25:09 -04:00
Tyler Renelle
d5cc627c74 remove duplicates on the server instead
Conflicts:
	lib/app/index.js
2012-10-18 00:08:15 -04:00
Tyler Renelle
f64b4d171c remove duplicates on cron. very hacky, need to figure out why
duplicates are being created in the first place
2012-10-17 23:40:20 -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
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
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
b63ac10657 shared helpers.dayMapping 2012-09-24 23:12:13 -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
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
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
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
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
9146f2f3fe move notifications to the right. eventually i'll want it above the mouse 2012-09-04 16:08:47 -04:00
Tyler Renelle
ac2fc49e12 reset hp on level up (thought i did already..) 2012-09-02 16:37:05 -04:00
Tyler Renelle
7a8a7d4566 don't use growl on server (woops) 2012-09-01 17:59:11 -04:00
Tyler Renelle
c434072504 yellow warning for undoing a mistake checkbox 2012-09-01 17:45:31 -04:00
Tyler Renelle
91e4a50179 divide tibia TNL by 5, make leveling easier 2012-09-01 16:46:44 -04:00
Tyler Renelle
f0aa6299ea fix money/hp buying difference 2012-09-01 16:32:25 -04:00
Tyler Renelle
e78cb66f9c add icons to the notifications 2012-09-01 16:32:20 -04:00
Tyler Renelle
68079f5bfc send growl notifications for points gained/lossed & level up
Conflicts:

	src/app/scoring.coffee
2012-09-01 14:26:12 -04:00
Tyler Renelle
4312052fc8 add score-down, use scoring module to run up/down through modifiers 2012-08-27 23:55:05 -04:00
Tyler Renelle
29acf91e03 some typos and bugs, though didn't seem to fix anything 2012-08-09 11:02:56 -04:00
Tyler Renelle
b2cd9c0d0f use Addthis, some other attempts at fixing the weird bug 2012-08-08 09:57:32 -04:00
Tyler Renelle
e3700bc183 attempt fix using _.each in place of for loops 2012-08-06 16:04:49 -04:00
Tyler Renelle
6d204fb08c remove poormanscron() from refresh for now, only in setInterval 2012-08-06 12:34:54 -04:00
Tyler Renelle
3895d0610a many bug fixes regarding schema updates 2012-07-28 16:26:06 -04:00
Tyler Renelle
33c5acf5ec use 'passed' parameter to ignore *.completed on cron 2012-07-27 21:56:21 -04:00