Commit graph

341 commits

Author SHA1 Message Date
Tyler Renelle
1331ff0f12 fix(pets): 401 error when can't hatch a pet, not 500 2014-01-30 21:51:44 -07:00
Tyler Renelle
d721644f15 fix(tests): put honey last in food items def, seems to fix the mocked
random function looking for honey. @djuretic any ideas?
2014-01-30 19:31:36 -07:00
Tyler Renelle
949386f44f feat(habitBirthday): add habitrpg birthday event. includes cakes for all
pets, absurd party robes, npc swap, badge, etc. @lemoness
2014-01-30 19:19:30 -07:00
Tyler Renelle
05b139be78 chore(logging): remove console logging 2014-01-30 15:21:03 -07:00
Cole Gleason
8fdae0b35c Merge branch 'sabe/attributes' into develop
Conflicts:
	dist/habitrpg-shared.js
	locales/en/main.json
2014-01-30 10:44:49 -06:00
Matteo Pagliazzi
6cf7160f65 fix(purchase) add a check for user.balance 2014-01-29 15:55:02 +01:00
Sabe Jones
33222e0f15 feat(attributes): Add backfill button in flat and classbased allocation modes 2014-01-28 08:55:42 -06:00
Tyler Renelle
be986e09f6 fix(beastmaster): allow hatching pets when petOwned<=0 (fyi
@deilann). Man, browserify adds so many lines - this commit is a
one-liner, lol
2014-01-26 17:47:27 -08:00
Tyler Renelle
bbecfb3ffd Merge pull request #116 from deilann/petcounting
adding mechanic to count previously owned pets
2014-01-26 16:57:53 -08:00
Cole Gleason
2a32517ae4 Merge pull request #117 from deilann/dequip-1
changing dequip to make sense for all classes
2014-01-26 12:06:50 -08:00
deilann
dbbcee0c1c syntax fix
fixed comment
2014-01-26 11:53:02 -08:00
deilann
b6c8452043 changing dequip to make sense for all classes 2014-01-25 18:17:33 -08:00
deilann
44a5a9c716 adding mechanic to count previously owned pets 2014-01-25 17:58:18 -08:00
Cole Gleason
b246a6d430 Merge branch 'round-boss' into develop 2014-01-24 15:33:30 -06:00
Cole Gleason
e76c81b3d7 refactor(api.percent): allow for round direction to be specified 2014-01-24 15:31:08 -06:00
Cole Gleason
a501d5c3ba perf(ultimateGear): move ultimateGear from ops to fns so it only runs once 2014-01-24 00:02:51 -06:00
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
Tyler Renelle
56cc5db9b7 fix(quests): don't drop canBuy:false items 2014-01-21 14:49:56 -08:00
Tyler Renelle
2ee93763fc feat(quests): add the gryphon quest, mount, pet, egg. For the glory of @baconsaur! 2014-01-21 14:41:07 -08:00
Tyler Renelle
051c3c89c8 feat(quests): allow quests to drop multiple items 2014-01-21 13:12:58 -08:00
Tyler Renelle
587a660ac1 fix(todos): add dateCompleted to todos so they're archived 3 days after completion, not 3 days after creation. fixes https://github.com/HabitRPG/habitrpg/issues/2478 2014-01-19 17:11:19 -08:00
Tyler Renelle
77b2e5400f Merge pull request #100 from HabitRPG/sabe/fix
fix(calculateDelta): don't detrain stats on ripening To-Dos
2014-01-19 15:18:05 -08:00
Sabe Jones
a770d0c72f fix(checklists): Make checklist To-Do behavior more intuitive
Previously, all To-Do scoring was multiplied by the length of the checklist, including cron "reddening" and ultimate scoring. The checkboxes themselves only affected MP bonuses. Now, checklist tasks redden at the same rate as any other task, and the score multiplier only applies to checklist items that have actually been accomplished when the user concludes the overall To-Do.

Fixes HabitRPG/habitrpg#2327, HabitRPG/habitrpg#2405, and HabitRPG/habitrpg#2483.
2014-01-19 10:36:04 -06:00
Sabe Jones
70394ea0b9 fix(autoAllocate): don't detrain stats on ripening To-Dos
Previously, on cron, the reddening of To-Dos would subtract from the stat training for task-based auto-allocation. This had a tendency to cause users with lots of active tasks to get backward stat allocations on levelup. Now the "down" direction for To-Dos is not counted for attribute training. (Missed Dailies will still detrain.)

Fixes HabitRPG/habitrpg/#2247
2014-01-19 09:36:23 -06:00
Sabe Jones
2ae7d1dede Merge pull request #86 from HabitRPG/sabe/preferences
Finish up @wc8 suggested user preferences
2014-01-19 06:40:34 -08:00
Alice Harris
841399b981 stop wasting Stealth on todos and completed dailies
If I understand the code correctly, the stealth buff was being decremented regardless of task type and completion status. This change causes stealth to be used up only for dailies that have not been completed.
2014-01-19 11:53:38 +10:00
Cole Gleason
dcd56aae2c Merge pull request #93 from deilann/patch-1
Update content.coffee to change "Cloth Armor" to "Plain Clothing"
2014-01-17 21:59:30 -08: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
deilann
b2efa6d0da Update content.coffee to change "Cloth Armor"
Changes Cloth Armor to "Plain Clothing" for better consistency and sprite representation.
2014-01-16 18:18:44 -08:00
Tyler Renelle
18ccbb51df Merge remote-tracking branch 'colegleason/drops' into develop
Conflicts:
	dist/habitrpg-shared.js
2014-01-15 17:40:07 -07:00
Tyler Renelle
5dac20d9e8 Merge remote-tracking branch 'colegleason/checklist-mp' into develop
Conflicts:
	dist/habitrpg-shared.js
2014-01-15 16:52:13 -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
Cole Gleason
c4e7e13ee1 remove console.log from MP calculation 2014-01-15 00:13:25 -06:00
Cole Gleason
98e0c5213e Don't give n+1 MP for a todo with n checklist items 2014-01-15 00:13:25 -06:00
Cole Gleason
2f51041bf4 fix randomVal to be actually random. Fixes habitrpg/habitrpg#2176 2014-01-14 21:54:54 -06: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
e6b0fbe381 move markdown directive out of main site into shared (so mobile can use it) 2014-01-14 11:11:14 -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
Steve
4f467caa1a Typo
Fixes https://github.com/HabitRPG/habitrpg/issues/2330
2014-01-09 18:04:48 -05:00
Tyler Renelle
7ef3706803 Merge pull request #84 from colegleason/wibbly-wobbly
Custom Day Start: change condition on when we run cron
2014-01-09 09:57:54 -08: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
Sabe Jones
8c7b27cca0 Finish up @wc8 suggested user preferences: tags and Advanced Options start collapsed 2014-01-08 22:21:32 -06:00
Tyler Renelle
87aa1ab731 Revert "#85 i heart lodash"
This reverts commit 8097dc38d1.
2014-01-08 18:55:46 -07:00
Tyler Renelle
8097dc38d1 #85 i heart lodash 2014-01-08 18:49:13 -07:00
Sabe Jones
a89ef25e23 Rebirth fix: flip owned items to explicit false instead of wiping them out, so limited edition gear can be repurchased 2014-01-08 19:35:54 -06:00
Tyler Renelle
60641524cf Merge pull request #82 from HabitRPG/sabe/preferences
New user preference: open new tasks in edit mode
2014-01-08 14:31:29 -08:00
Tyler Renelle
221574bcb2 #83 ski-sassin offhand pole should match 2nd-best regular offhand 2014-01-08 09:38:24 -07:00
Sabe Jones
7732f4af32 New user preference: open new tasks in edit mode 2014-01-07 20:16:35 -06:00