Commit graph

163 commits

Author SHA1 Message Date
Sabe Jones
98d91a24ce fix(drops): Increase base value, improve comments 2014-02-16 23:52:26 -06:00
Sabe Jones
b75000188f fix(drops): Overhaul drops to a percentage multiplier system
WIP. Initial draft of an overhaul to drop chance. Most important bits: (1) A modular system of percentage-based multipliers on the task-value-based initial drop chance. (2) Perception increases the daily drop cap by 1 per 10 points.

Fixes HabitRPG/habitrpg/#1922.
2014-02-16 11:12:04 -06:00
Tyler Renelle
608b829d7e feat(valentine): valentine event 2014-02-13 18:20:12 -07:00
Tyler Renelle
1b2bcc4683 feat(event-tracking): track purchases 2014-02-11 17:48:44 -07:00
Lorian
c39d2a8a13 Separated stable into dropped pets, quest pets, and rare pets, and made countPets only count the former. Made countMounts only count dropped and quest-hatched mounts, not rare mounts. 2014-02-08 16:56:07 -08:00
Tyler Renelle
35d0688f4a Merge pull request #123 from HabitRPG/sabe/fix
fix(checklists): Bring MP behavior in sync with XP/Gold
2014-02-04 11:04:53 -08:00
Tyler Renelle
4ff9a3de7d fix(quests): drop vice1 when lvl 30+, fixes https://github.com/HabitRPG/habitrpg/issues/2694 2014-02-01 16:14:47 -08:00
Tyler Renelle
1b36425099 fix(drops): don't random-drop cakes, fixes #2700 2014-02-01 15:44:56 -08:00
Sabe Jones
14fc4a3c31 fix(checklists): Bring MP behavior in sync with XP/Gold
Previously, the player would accrue Mana for every checklist item when a To-Do was completed, regardless of whether or not those checklist items were complete. This was inconsistent with XP and Gold, which were only multiplied based on the number of checklist items previously clicked. Now Mana acts the same way, multiplying MP scored by (1 + completed checklist items).
2014-02-01 10:26:26 -06:00
Tyler Renelle
2a2024262b fix(errors): ooo, and some other stray unecessary 500s 2014-01-30 22:02:35 -07:00
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
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
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
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
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
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
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
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
Sabe Jones
7732f4af32 New user preference: open new tasks in edit mode 2014-01-07 20:16:35 -06:00
Tyler Renelle
84637ad336 fix https://github.com/HabitRPG/habitrpg/issues/2276 provide
newly-created tags with an id from the browser
2014-01-07 17:23:47 -07:00
Tyler Renelle
398a919afb Merge pull request #79 from HabitRPG/sabe/fix
Server side of Rebirth-related fix: don't remove Wolf Eggs upon drops unlock
2014-01-07 11:55:52 -08:00
Tyler Renelle
939ce14185 https://github.com/HabitRPG/habitrpg/issues/2010 allow wrapping members (don't add ops to them) 2014-01-07 10:43:00 -07:00
Sabe Jones
9d9cf0788f Rebirth-related fix: don't remove Wolf Eggs upon drops unlock if user has some already 2014-01-07 08:04:50 -06:00