Commit graph

227 commits

Author SHA1 Message Date
Tyler Renelle
8708207c1c fix(inventory): disallow buying if !item.canOwn(user) 2014-09-05 15:54:53 -06:00
Tyler Renelle
4f56d7e761 Merge pull request #295 from Alys/deathGearLoss
report correct equipment/gear item lost on death (most of the time)
2014-09-02 16:03:37 -06:00
Alice Harris
86b6663485 merge change for predictableRandom(options?.seed) 2014-09-02 13:47:57 +10:00
Alice Harris
bb85f6e3dd allow correct equipment item to be lost on death - mostly fixes https://github.com/HabitRPG/habitrpg/issues/2789 2014-09-02 12:35:40 +10:00
Alice Harris
3c8ebf96d7 fix typo option/options - fixes https://github.com/HabitRPG/habitrpg-shared/issues/293 2014-09-01 12:28:32 -06:00
Alice Harris
9dfa30a61f allow tasks to stay visible while being edited, even if the edit changes an attribute that would normally cause the task to be hidden 2014-08-23 02:17:01 +10:00
Tyler Renelle
a55738b06f Merge branch 'Fandekasp-sortable_tags' into develop 2014-08-19 15:02:06 -06:00
Tyler Renelle
d3520e48e4 feat(quests): lvl 15 ATOM quest drop 2014-08-12 16:18:08 -07:00
Adrien Lemaire
5ca2084744 add shared logic for tag sorting 2014-08-10 23:01:30 +09:00
Joby Walker
aa4bd944c9 Fix assignment in freeRebirth test 2014-08-01 13:20:13 -07:00
Joby Walker
24e0f705b2 Fix freeRebirth flag
Coffee is assuming the negation (!) applies to the AND of the two tests
should be just !user.flags.freeRebirth = true.  Fixes 4 test errors.
2014-08-01 01:35:07 -07:00
Joby Walker
6a4897b27f Fix User Reset
5cd0039 added regression where reset on new user would fail because user.items.gear.owned is undefined
This patch allows tests to get *much* further than before
2014-07-31 20:56:00 -07:00
Tyler Renelle
327a337a26 Merge pull request #234 from HabitRPG/sabe/crits
feat(crits): Make crit hits boost MP
2014-07-18 16:59:02 -06:00
Tyler Renelle
f1db2bf1d5 refactor(dotSet): move dotSet & dotGet to exports 2014-07-17 12:55:45 -06:00
Tyler Renelle
5cd0039171 fix(reset): don't remove special gear on reset #3349 2014-07-07 19:06:48 -06:00
Phillip Thelen
c190d49b4f Check if items are owned before equipping
This checks if the user actually owns the pet, mount or gear they are trying to equip. This also prevents users from setting things that do not exist. (before users could set the value for pets and mounts to any string. Not sure if this leaves possiblilities for xss attacks. but this fix also prevents that).
2014-06-27 14:36:25 +02:00
Sabe Jones
eb07a9c77a feat(crits): Make crit hits boost MP
Another nudge to make STR more attractive: critical hit on a To-Do multiplies MP gain.
2014-06-22 14:44:39 -05:00
Tyler Renelle
d95528a205 feat(backgrounds): add backgrounds feature 2014-06-10 17:47:08 -06:00
Tyler Renelle
781ebfccce fix(equipment): only markModified(gear) when equipping gear 2014-06-09 13:31:32 -06:00
Alice Harris
9f084e1ac4 show "unequipped" message instead of "equipped" when taking off gear 2014-05-27 12:08:15 +10:00
Tyler Renelle
73b8128af9 fix(accessories): add body accessory to user model, fixes https://github.com/HabitRPG/habitrpg/issues/3346 2014-05-22 23:23:30 +02:00
Alice Harris
c09e06e73a fix #3513 - if contrib level is NaN, use 0
Fixes (I hope) https://github.com/HabitRPG/habitrpg/issues/3513. NOTE that private code will need to be edited too - ref f49ed5436c
2014-05-22 16:25:08 +10:00
Sabe Jones
f49ed5436c feat(drops): Tweak contrib bonuses
At @deilann's request, divide the drop chance bonus for contributor levels in half and add a +1/level contributor bonus (subject to the subscription multiplier once implemented in private code) to drop cap.
2014-05-18 22:42:31 -05:00
Tyler Renelle
b0f4c9e9e3 Merge pull request #217 from Alys/messageEvolve
insert messageEvolve into correct locations, replacing incorrect messageAlreadyMount
2014-05-17 19:21:24 -06:00
Tyler Renelle
fea7e9e69d Merge pull request #218 from Alys/todo-with-checklist-untick
fix bug where an un-checked to-do with checklist removes only part of reward
2014-05-17 19:20:48 -06:00
Alice Harris
7edeb53cda add correct message for equipping equipment
Currently, when you put on equipment, you see the messageBought notification. There was no messageEquipped notification in the code so I've added one.

I've updated ALL locale files IN ENGLISH, following the convention already in place for using English when there is no translation (e.g., locales/pl/messages.json, locales/sv/messages.json).
2014-05-18 10:45:24 +10:00
Alice Harris
8f07f06cb0 fix bug where an un-checked to-do with checklist removes only part of reward
When a to-do is checked off, the rewards are increased by the number of checklist items that have been completed. However as reported in https://github.com/HabitRPG/habitrpg/issues/3474, if the to-do is later un-checked, then the rewards subtracted are not being similarly increased by the number of checklist items completed. This fix will change that - the number of checklist items completed will have an equal effect on checking and unchecking a to-do.

This of course won't fix the problem of, upon unchecking, not being able to calculate the exact value of the rewards that had been given upon checking, so there will still be a discrepancy between checking and unchecking, but it will be much smaller than it is currently.
2014-05-17 19:55:08 +10:00
Alice Harris
01595fcf1a insert messageEvolve into correct locations, replacing incorrect messageAlreadyMount
Currently, when you feed a pet enough to turn it into a mount, you see the messageAlreadyMount notification ("You already have that mount. Try feeding another pet."). This fix changes it to the messageEvolve notification ("You have tamed <%= egg %>, let's go for a ride!").
2014-05-17 19:44:59 +10:00
Tyler Renelle
519154dc89 Revert "feat(archive_todo)" (see http://goo.gl/mCygbz) 2014-05-15 23:48:02 -06:00
Tyler Renelle
8ca6ad47b5 Merge pull request #204 from deilann/scrollfix
if negative scrolls, allow purchase to work
2014-05-11 17:03:25 -06:00
Tyler Renelle
629fec7b23 Merge pull request #203 from deilann/removingthelevelcap
Removing level cap, free rebirth at 100
2014-05-11 16:29:35 -06:00
Tyler Renelle
c72c8a948f fix(cron): plan check so it passes tests 2014-05-11 15:35:35 -06:00
deilann
3dcd5e15bf scroll quickfix 2014-05-11 09:30:43 -07:00
deilann
5fd1f2eb0f level 100 modal strings and removing level cap 2014-05-11 07:53:31 -07:00
Matteo Pagliazzi
a1c53ec2aa fix(i18n): fix messages, pet and mount names and update locales 2014-05-06 19:51:36 +02:00
Matteo Pagliazzi
fcd33f32ee fix(i18n): missing strings 2014-05-06 19:51:35 +02:00
Matteo Pagliazzi
ad7a890160 refactor(i18n): start using strings for api messages 2014-05-06 19:51:33 +02:00
Matteo Pagliazzi
5a897eedb1 refactor(i18n): use i18n-ready strings in index.coffee for content 2014-05-06 19:51:33 +02:00
Matteo Pagliazzi
7af95edc8c chore(i18n:): implement i18n module, start moving content to locales/en/content.json, recompile 2014-05-06 19:51:31 +02:00
Tyler Renelle
d92a2eb86e feat(subscriptions): allow one month after sub start-date before it's terminated. 2014-05-05 23:59:28 -06:00
Tyler Renelle
00147a8671 Merge pull request #198 from jbutz/todo_archive_flag_cron
feat(archive_todo): add cron to archive todos
2014-05-03 21:44:11 -06:00
Sabe Jones
676d90fda0 fix(cron): Move daily MP after Perfect Day
Previously, users gained MP very early in the cron process. This meant that no buffs affected daily MP gain. Now, MP gain happens after the Perfect Day bonus is applied, so getting an INT boost that pushes you over 100 max MP gives you a tangible benefit.
2014-04-22 21:05:58 -05:00
Jason Butz
52ff5a7d5a feat(archive_todo): update to archive todos
I thought this bit of code was in the other repo. So long as part 3 follows
close behind this, there shouldn't be an issue
2014-04-18 12:33:45 -04:00
Jason Butz
17aed0a9d7 feat(archive_todo): add cron to archive todos
This is part 2 of habitrpg#3062. Part 1 MUST be merged first.
Part 1 pull request: habitrpg#3302
2014-04-18 11:45:21 -04:00
Tyler Renelle
b93bf8be7f feat(accessories): add body accessory & better handling of gear sorting 2014-04-16 17:44:13 -06:00
Tyler Renelle
bd8d2dcbd0 feat(eggQuest): add april egg quest 2014-04-06 21:29:34 -06:00
deilann
1db3b7cf98 free orb of rebirth for level 100(+) users
Orb of Rebirth now only spits out "not enough gems" if user is under level 100 and has less than 8 gems. It also only charges if the user is below level 100.
2014-03-27 22:27:37 -07:00
Peter Hatch
e019985e81 Gain the class bonus when using event equipment that belongs to your class. 2014-03-23 15:29:47 -07:00
Sabe Jones
4178f0ba32 fix(quests): Remove double chance for quest drops
Makes collection quests maybe, possibly take more than a single day to complete for an average party. Doubled chances not fed through diminishingReturns: overkill.
2014-03-21 22:56:28 -05:00
Tyler Renelle
50132f1a35 feat(equipment): remove base gear from equipment tabs. now clicking the
same gear you have equipped will un-equip it
2014-03-21 15:06:26 -06:00