Coder Social home page Coder Social logo

Suggestion: Add option to recover a fraction of hit points on long rest instead of all of them. about fvtt-long-rest-hd-healing-5e HOT 8 CLOSED

schultzcole avatar schultzcole commented on August 29, 2024
Suggestion: Add option to recover a fraction of hit points on long rest instead of all of them.

from fvtt-long-rest-hd-healing-5e.

Comments (8)

ctbritt avatar ctbritt commented on August 29, 2024 1

Squee! Works perfectly. Thanks!

from fvtt-long-rest-hd-healing-5e.

ctbritt avatar ctbritt commented on August 29, 2024

I added some very kludgy code to this that accomplishes this. I added a hit point recovery fraction to the Settings panel, and made the math work in lr-hd-healing.js. It's really ugly, but I'll bet you could make it more elegant. this is a great module, and it does exactly what I want right now. Hope you don't mind me digging into it!

lr-hd-healing.js.txt

from fvtt-long-rest-hd-healing-5e.

schultzcole avatar schultzcole commented on August 29, 2024

I don't mind at all! Sorry I haven't responded to this issue yet; I've been focusing on other modules lately. This is a reasonable suggestion I think, but it will be a while before I can get the chance to approach it.

from fvtt-long-rest-hd-healing-5e.

ctbritt avatar ctbritt commented on August 29, 2024

No worries! I’m glad I was able to contribute. I don’t really know how to make it a “real” contribution in GitHub, since I’m totally new to coding so I’ll leave this here for now. Glad I was able to help!

from fvtt-long-rest-hd-healing-5e.

schultzcole avatar schultzcole commented on August 29, 2024

Hey, just a quick update here, I intend to re-focus more on this request after the next dnd5e release (1.3.0). That release should have some changes that will make development of this module much more pleasant!

from fvtt-long-rest-hd-healing-5e.

ctbritt avatar ctbritt commented on August 29, 2024

Oh awesome! Looking forward to it, and thanks for all your hard work on these modules.

from fvtt-long-rest-hd-healing-5e.

schultzcole avatar schultzcole commented on August 29, 2024

@ctbritt Ok, this has been added in 3.0.0 (out soon). I modified your change a bit to (a) make the default hit point recovery 0% (to maintain backwards compatibility with the old behavior) and (b) to account for some changes necessary for dnd5e 1.3.0 but it should do what it needs to do.

from fvtt-long-rest-hd-healing-5e.

ctbritt avatar ctbritt commented on August 29, 2024

oh, awesome, thanks! My code was super amateurish and kludgy, and I'm sure yours is much better.

from fvtt-long-rest-hd-healing-5e.

Related Issues (12)

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.