Cole Gleason
2283093845
fix(ultimateGear): fix bug where ultimateGear isn't awarded
...
This does several things:
- Moves the calculation of the ultimateGear achievement into its own
function on user.ops.
- Only computes ultimateGear if item is last and the user does not
already have the achievement
- Fixes bug where ultimateGear was not awarded if user wasn't wearing
their class gear at the time of item purchase.
- Adds content.classes and content.gearTypes which we should start using
elsewhere.
- Added tests for ultimateGear
Fixes HabitRPG/habitrpg#2232 .
2014-01-23 23:49:04 -06:00
Dušan Juretić
432ab0dc66
Test quests valid values
2014-01-22 22:40:12 -03:00
Cole Gleason
aafaee92e7
fix(perfect-day): do not count non-active dailies when calculating perfect-day
...
When we calculate the perfect-day achievement, we should check to see if
the daily had repeat set for yesterday as well as if it was completed.
Fixes HabitRPG/habitrpg#2446
2014-01-17 23:20:21 -06:00
Tyler Renelle
cc6e0a9c7b
tests(perfect-day) remove buffs from cron-matrix stuff for now
2014-01-15 18:01:44 -07:00
Tyler Renelle
8df7fe65c5
feat(perfect-day achievement) here's one for the road @wc8 @sabrecat, if
...
you perform a perfect day of dailies, you get an achievement PLUS lvl/2
buff to all stats for the next day
2014-01-15 16:26:47 -07:00
Tyler Renelle
3e290b4734
Revert auto-clearing completed to-dos, instead we'll hide stale completeds from our angular app
2014-01-14 17:59:35 -07:00
Tyler Renelle
d3a076a405
give all tasks a creation date. When to-dos are completed, if they're
...
sitting in "completed" section for more than 3 days, delete them on
cron. @sabrecat @paglias @colegleason @wc8 heads up. this should help
with the performance issues people are experiencing when they don't know
to clear completeds, but let me know if this you think this is a bad
idea. @wizonesolutions sorry for the delay ;)
2014-01-14 16:49:52 -07:00
Tyler Renelle
673267fb39
Revert 393bbb1 & 3bd81ab , too many issues. We'll work on a system-based
...
cron solution. @colegleason
2014-01-13 10:45:11 -07:00
Dušan Juretić
c9ddf0e15d
Fix typos
2014-01-11 17:54:50 -03:00
Dušan Juretić
bbddb5f87d
Added test for valid spell targets
2014-01-11 17:29:25 -03:00
Cole Gleason
393bbb1885
Modify runCron tests to use hoursAgo instead of daysAgo.
...
This commit also sets hoursAgo for many of the cases and restructures
how cronMatrix is parsed so that more specific settings may override
defaults higher up on the tree.
2014-01-08 23:42:31 -06:00
Cole Gleason
3bd81abda3
startOfDay: if between midnight and custom day start, jump back to previous day
2014-01-08 22:30:56 -06:00
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