Code Monkey home page Code Monkey logo

Comments (15)

lefnire avatar lefnire commented on May 13, 2024

Lol! Don't you people know the Konami code? Jk, i'll fix this thanks.

from habitica.

hookang avatar hookang commented on May 13, 2024

When you get all that wonderful negative gold... and buy everything...

There's a blank for armor and weapons above gold level.

That was fun...

from habitica.

Andrew565 avatar Andrew565 commented on May 13, 2024

If this is still an open issue I'll tackle it tomorrow.

from habitica.

hookang avatar hookang commented on May 13, 2024

It is. All I think that needs to be done is to remove being able to add a negative number as a reward.

from habitica.

lefnire avatar lefnire commented on May 13, 2024

@Andrew565 check out https://github.com/chriso/node-validator while you're in there.

from habitica.

dbueller avatar dbueller commented on May 13, 2024

We could use:

money -= Math.abs(taskObj.value)

in the scoring.coffee file to have the reward always cost gold until we work out the validation.

Edit: OK. I think I uploaded the files correctly. That should fix it and stop any more free gold from getting out.

from habitica.

Pandoro avatar Pandoro commented on May 13, 2024

I hope @lefnire can get a look at this. The question is though, will this also work if we put in "asdfs" ?

So far this caused the GP counter to become NaN and this means buy whatever you like until a day reset ;)

It would also be nice to have something like this while setting the value. I don't know about the syntax but something like:

money = Math.abs(taskObj.value)
if(money ==NaN){
//display some error
}else{
// create task
}

from habitica.

dbueller avatar dbueller commented on May 13, 2024

It reverts back to the unedited value if a non-number is entered and gives a tooltip with an error when a negative value is entered.

from habitica.

Pandoro avatar Pandoro commented on May 13, 2024

Is this included in your pull request :) ?

from habitica.

dbueller avatar dbueller commented on May 13, 2024

Yes. My update should fix it.

from habitica.

Pandoro avatar Pandoro commented on May 13, 2024

Cool :) Well then I hope Tyler can take a look at your pull request soon :)
Although I must say the negative gold is Very useful when testing on the
test server ;)

On Mon, Feb 4, 2013 at 11:18 PM, Sabin144 [email protected] wrote:

Yes. My update should fix it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-13103031.

from habitica.

lefnire avatar lefnire commented on May 13, 2024

merged, will go out with the next push. @Pandoro, once I get some proper accessControl in I'll build some debug tools for us - maybe activated by the Konami Code ;)

from habitica.

tjwds avatar tjwds commented on May 13, 2024

Checking and unchecking a daily will produce infinite gold, albeit in small increments.

from habitica.

lcnv avatar lcnv commented on May 13, 2024

Adding to what tjwds said, you can also keep all the item drops from clicking and unclicking the dailies. Includes pets, food, crits, and hatching potions. (Crits meaning that critical hits will keep the difference in exp too.)

from habitica.

deilann avatar deilann commented on May 13, 2024

That's not an issue wrt drops, considering there's a drop cap. I'm also not
really concerned about this simply because well, if people are that into
button clicking and missing the point of Habit... they should enjoy their
gold? It would be a lot easier to go into Fix Character Values.

On Thu, Apr 24, 2014 at 10:23 PM, lcnv [email protected] wrote:

Adding to what tjwds said, you can also keep all the item drops from
clicking and unclicking the dailies. Includes pets, food, crits, and
hatching potions. (Crits meaning that critical hits will keep the
difference in exp too.)


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-41359885
.

from habitica.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.