Hook for upkeep cost?

Hey all!

Got a little problem here which I didn't find a solution for yet...

What I want to achieve
I want to keep the decay flag enabled to profit from the heal functionality and basically leave everything as is. What I do not want upkeep being substracted from the TC contents. So if I have 1 wood, 1 stone, etc. in the TC, the upkeep cost would be met forever and no warning displayed. The actuall upkeep-time would show the time it would be on a fully vanilla server, but stay like this.

Question
Is there any hook i missed which gets triggered when the server decay ticks and the upkeep is substracted (which I then could give back or stop)? Something like when the contents of a container change? Or could it be as simple as increasing the decay tickrate to an extreme value?

What I did so far
I was able to revert decay of structures by modifying the damage modifier in the OnEntityTakeDamage-hook. Therefore I could just leave the TC empty. But then you'd have the annoying warning on the screen forever. I know this is possible, because I saw it working like this on a server and loved it. That Server also showed the actual upkeep time of the amount in the TC...so only a few seconds. So I guess it wasn't twinkering with the decay_upkeep_minutes setting.
I also tried OnItemRemovedFromContainer...except for al ot of messages about granola bars being removed from trash piles somwhere, no luck.

Any help would be greatly appreciated. Thanks in advance!

I did some light investigation into how decay works for the Upkeep Display Fix plugin. From my understanding, the client performs its own calculation, but you can effectively alter it by altering the values sent to the client. That plugin has an example where it alters the perceived value of a cvar that is sent as part of the network snapshot sent for each TC.

It should be possible to take it further by networking that the TC contains items (in invisible slots beyond the normal capacity) even though the TC does not contain those items. You could also put real items in there, in invisible slots, but you will want to hook when the TC is destroyed to remove them.

Also, to my recollection, the healing functionality only works for decay damage, so if your ultimate goal is to disable decay damage and also have healing, you may have to implement healing yourself.

Hey WhiteThunder
Thanks a lot for the Infos. If that stuff is (partially) done clientside, the lack of any options concerning TC makes much more sense now. Gonna have a look in the code of mentionned plugin and would post a solution here for others, if I manage to get it up and running!
Have a nice day and cheers again!

in my plugin i just add tuns of loot to the tc and then parented a box to it so when they open it they only see the box inventory. and upkeep always says up.