Commit graph

54 commits

Author SHA1 Message Date
Tyler Renelle
c01d5d79d6 event-items: try a different approach than "unbreakable" (1335750). If they've owned it before (item==false), then they canOwn() again. In those cases, set item to 'event' 2014-01-06 17:13:44 -07:00
Tyler Renelle
1335750804 add unbreakable special items, so we can add special-event gear which users can buy during a certain period of time, but which they can't lose on death. Starting with party-hats 2014-01-06 14:15:21 -07:00
Tyler Renelle
fdd856c2f8 autoAllocate: small tweak to taskbased to make it more apparent which is kicking 2014-01-04 17:32:14 -07:00
Tyler Renelle
2721800f37 autoAllocate: compactify some code (no reason, just for the ninja
feel). Add simulation script to show results for all auto-allocate
methods for levels 1-20
2014-01-04 17:16:45 -07:00
Dušan Juretić
3549659d94 Added test for max MP calculation 2014-01-01 22:53:19 -03:00
Tyler Renelle
8cc55b1ee5 rebirth fix tests 2013-12-31 08:02:58 -07:00
Tyler Renelle
bb5fe9c6e5 classes: temporary stopgap for
https://github.com/HabitRPG/habitrpg/issues/2150 , burst-of-flames being
too powerful. This isn't the real solution we need something better
2013-12-29 16:58:45 -07:00
Dušan Juretić
acbe058317 Fix tests by adding quest attributes 2013-12-25 15:29:39 -03:00
Tyler Renelle
fe6b505c09 drop-rate calculation modification. not the end solution, just a step toward
implementing collection quests (fyi @sabrecat)
2013-12-24 09:32:15 -07:00
Tyler Renelle
7f3337c1b9 Quests: Initial bosses WIP, change all content.*.name to content.*.key for consistency (and to make room for quest.name). Bugfix on STR adjustment 2013-12-22 22:20:44 -07:00
Dušan Juretić
f2484a92d9 Fixed more tests, only preening test fails 2013-12-21 22:51:13 -03:00
Dušan Juretić
b1d66df8a8 More tests fixed, removed references to algos, remove priorityValue test 2013-12-21 22:32:54 -03:00
Tyler Renelle
6c8e2975b4 math-balancing WIP for passive stats & abilities 2013-12-21 15:05:12 -07:00
Dušan Juretić
29e653cb4d Fix drop system tests 2013-12-21 15:50:14 -03:00
Dušan Juretić
01247bfdb2 Fixed some tests 2013-12-21 00:07:43 -03:00
Tyler Renelle
edd65568d0 small exp tweak, grunt for spells 2013-12-20 00:10:46 -07:00
Tyler Renelle
ad325bce92 show tasks dodged # in math_samples, balance stealth 2013-12-19 20:34:29 -07:00
Tyler Renelle
d8a39e1ffd math_samples fixes for spells, consequent spell balancing 2013-12-19 20:26:30 -07:00
Tyler Renelle
1fccbecd4e add spells to math_samples 2013-12-19 20:13:52 -07:00
Tyler Renelle
3a6afee89e comments with results on math_samples 2013-12-19 19:38:57 -07:00
Tyler Renelle
0a2cd8bba8 passive-stats balancing round 2 2013-12-19 19:35:01 -07:00
Dušan Juretić
f37c1a9f21 Test for food drop 2013-12-08 20:14:16 -03:00
Dušan Juretić
e963674384 fix preening user history test by freezing time 2013-12-06 23:08:29 -03:00
Tyler Renelle
5d0b925a4c fix tests for 282e105 . May be temporary, unless we verify that 282e105
was the fix for https://github.com/HabitRPG/habitrpg/issues/1057
2013-11-29 17:21:22 -07:00
Dušan Juretić
b9abc31edb added test for countPets 2013-11-23 23:57:16 -03:00
Dušan Juretić
80afa45b2b revert to using egg.name 2013-11-16 09:26:15 -03:00
Dušan Juretić
2879b050a0 use egg.text instead of egg.name, fix unit tests 2013-11-15 23:18:16 -03:00
Dušan Juretić
97606ddbb0 fix preen user history test 2013-11-12 22:55:15 -03:00
Dušan Juretić
21907a6af4 remove unimplemented tests 2013-11-09 20:57:10 -03:00
Dušan Juretić
20192b1d0a enable all tests again, don't log to console in tests 2013-11-09 20:56:18 -03:00
Tyler Renelle
5482a83a00 add preen_history to user cron (see
https://github.com/HabitRPG/habitrpg/issues/1492), to cut back on user
object sizes (and hopefully angular performance) dramatically. Start
writing tests, but they're not complete. @djuretic could you take a peak
at this? My brain is melting
2013-11-05 17:10:31 -08:00
Dušan Juretić
fab7a10920 make cron tests locale aware (first day of the week) 2013-10-27 20:34:36 -03:00
Dušan Juretić
ecc8ff740e add lastDrop to helpers.newUser 2013-10-27 16:23:02 -03:00
Dušan Juretić
b5fefc2664 add test for priority values 2013-10-27 16:23:02 -03:00
Dušan Juretić
48393637fc using length matcher to have more helpful error messages 2013-10-27 16:23:02 -03:00
Dušan Juretić
6ef96c1f83 added drop system tests, stubbing Math.random with sinon 2013-10-05 22:12:42 -03:00
Dušan Juretić
f9d39103ed add test of 'to next level' experience 2013-09-28 19:25:46 -03:00
Dušan Juretić
49d73543e0 add test for revival 2013-09-28 19:21:45 -03:00
Dušan Juretić
db8723f0d2 add tests for store operations 2013-09-28 18:36:23 -03:00
Dušan Juretić
c9edf64d7f remove console.log in test 2013-09-28 18:28:57 -03: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
Dušan Juretić
e664037fb9 tests now passing, fixes #18 2013-09-22 16:28:30 -03: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
2c75f94254 tests: no longer using shouldCron, test cron paths{} instead 2013-08-19 00:31:07 -04: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