Commit graph

25741 commits

Author SHA1 Message Date
Tyler Renelle
002d4f9541 very strange bug here. If called form the API, require() statements
sometimes return blank objects, but only when required from within
habitrpg-shared - i can require the files directly from the API just
fine. Doesn't help however since habitrpg-shared has dependencies on
itself. @yangit any thoughts?
2013-05-25 19:34:45 +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
a141a02000 add bailey for habitrpg-shared 2013-05-25 19:01:43 +01:00
Tyler Renelle
e0f63860a9 typo in package.json 2013-05-25 18:31:47 +01:00
Tyler Renelle
955c2841ea tests: get rid of user.mocha.coffee, now it's in habitrpg-shared 2013-05-25 18:29:42 +01:00
Tyler Renelle
51a80b6626 some bug-fixes on shouldDo() for today-check 2013-05-25 18:26:07 +01:00
Tyler Renelle
12ef6edf8d tests: add checked-test for dailys 2013-05-25 18:05:31 +01:00
Tyler Renelle
caf6981550 tests: refactored to a cron-matrix so we can come up with some complex combinations 2013-05-25 18:01:03 +01:00
Tyler Renelle
c4e18b5f04 tests: first pass at cron tests 2013-05-25 16:53:35 +01:00
Tyler Renelle
85eb6789ac update daily.value when checked off, not on cron. Better for
testability, and I'm not sure why I was doing it the other way before?
2013-05-25 15:22:04 +01:00
Tyler Renelle
f5b7968132 tests: all the simple scoring test, getting ready for the complex cron
stuff.
2013-05-25 15:03:03 +01:00
Tyler Renelle
6e4f1a40f8 fixes #1036 2013-05-24 18:54:39 +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
ca665d334a tests: get rid of some old useless ones, add in 1-day for dailys 2013-05-24 16:24:18 +01:00
Tyler Renelle
5a2540ec10 test: todos - one day missed 2013-05-24 16:12:55 +01:00
Tyler Renelle
d293f7415f always pass paths in options{} for consistency, and that way we can add extra uncommon params to the options{} param without needing to pass paths param 2013-05-24 16:12:25 +01:00
Tyler Renelle
be670dcb04 start adding mocha tests, based on the old user.mocha.coffee 2013-05-24 14:28:57 +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
30f4f091a4 add newUser to helpers, will be needed when creating new users on mobile 2013-05-24 11:31:32 +01:00
yangit
c7f8626040 Coffee sourceMaps! 2013-05-24 15:03:20 +08:00
yangit
ef9ec0cc22 Coffeeify plugin for browserify to compile .coffee into browser.js. 2013-05-24 13:29:04 +08:00
Tyler Renelle
4a3e8fdcfa backer tier bug fix 2013-05-23 19:41:28 +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
32cf11b533 use lodash in tests for consistency 2013-05-23 17:34:27 +01:00
Tyler Renelle
f0f68ce5d1 bug fix to todos v cron 2013-05-23 17:33:04 +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
73fe8ebfdd fix preen_cron 2013-05-23 15:06:42 +01:00
Tyler Renelle
60a4ce5888 update find_unique_user to use lodash 2013-05-23 14:40:34 +01:00
tcsantini
8af0bf1c26 Starts Portuguese translation.
Not translating things like:
-RPG (Jogos de Interpretação de Personagem) - that would sound pretty weird.
-Health (Saúde) - usually it's called Sangue (blood), but since it may have some strong connotation (for kids), I left it as HP.
2013-05-23 00:17:36 -03: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
a31eb184a2 habitrpg-shared: don't forget the package req! 2013-05-22 11:27:16 +01:00
Tyler Renelle
a8ab98f99a not on instant-use potion 2013-05-22 11:14:59 +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
93b629c901 algos bug fixes 2013-05-22 11:03:32 +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
abb1c7947b fix shouldCron bug 2013-05-22 00:36:43 +01:00
Tyler Renelle
bc49e4668c only show restore-streak on dailies 2013-05-21 14:39:23 +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
Tyler Renelle
e21bc9869d Merge branch 'develop' of github.com:lefnire/habitrpg into develop 2013-05-21 12:57:40 +01:00
Tyler Renelle
cc097c32f7 clean up of preen_cron, which I'm re-enstating 2013-05-21 12:54:06 +01:00
Stan Lindsey
32c2605106 Update app.json 2013-05-21 11:28:40 +02:00
Stan Lindsey
cca6fc6d0e Merge pull request #1009 from theyliveforever/translations
Spanish Translation
2013-05-21 02:25:57 -07:00
theyliveforever
25b4e057e7 Update app.json 2013-05-20 23:05:34 -03:00
Hjalmberi
17e4578eb3 Update app.json 2013-05-21 05:58:12 +04:00