Mods / HotPoultice — Makes Poultices Heal-over-Time

Category: #QoL #Tweak
Author: goxmeor
Side: Both
Created: May 4th 2021 at 6:23 AM
Last modified: May 4th 2021 at 6:24 AM
Downloads: 314
Follow Unfollow 1

This mod changes poultices to be heal-over-time (HoT) instead of instantaneous.

All poultices take 8 seconds to finish working. More powerful poultices will restore more health per tick. The total amount of healing is unchanged.

BuffStuff

This mod mostly exists as a proof of concept and sample implementation of the BuffStuff library.

BuffStuff is included as a git submodule in src/.

Version For Game version Downloads Release date Changelog Download
v1.0.0 314 May 4th 2021 at 6:24 AM Show HotPoultice-1.0.0.zip

8 Comments (oldest first | newest first)

OmegaHaxors, Oct 27th 2021 at 4:58 AM

Heads up, there's an
System.MissingFieldException: Field not found: 'Vintagestory.API.Common.CollectibleObject.Attributes'
error when playing on v1.15.7

l33tmaan, May 22nd 2021 at 4:00 PM

"Relatively simple" indeed... .dll files scare me, I can barely even open and read them right now. 

goxmeor, May 22nd 2021 at 3:15 PM

I don't want to apply it to _all_ healing, since a mod may want to have both Heal Over Time and Instant Heal items. It should be relatively simple for Expanded Foods to add the BuffStuff library, copy the HealOverTimeBuff from this mod, and apply it instead of healing directly. All the code you'd need is already written in this mod's source, except that instead of using Harmony patching, you could just add the buff directly, since you control the code you want modified.

This mod would not be a dependency. BuffStuff is meant to be copied around to other mods as required.

l33tmaan, May 8th 2021 at 3:10 PM

Uhh... you know.... mods? :D
I guess there are only the poultices normally, oops. Expanded Foods adds healing to various foods and it'd be neat if my jelly-filled, syrup-covered berry bread restored 8 HP over 30 seconds instead of healing instantly.

However, I'm not that good of a coder, so it's not a big deal!

goxmeor, May 8th 2021 at 10:33 AM

What other forms of healing are there? Pull Requests welcome ;)

l33tmaan, May 5th 2021 at 6:51 PM

Hey goxmeor, do you think you could make a version of this that automatically applies to all forms of healing in the game?

l33tmaan, May 4th 2021 at 2:02 PM

Do it, Tyron! Make this mod obsolete!

Tyron, May 4th 2021 at 10:33 AM

Heh. Been wanting to add that to VS for the last 3 major updates :D

delete edit