Jump to content
Sign in to follow this  
Corax

Q: Heal over time by JSON patch?

Recommended Posts

Is it possible to change or enable heal-over-time using a json patch, or would that require a code mod? I was under the impression that the player did heal over time in previous versions, but I may remember that wrong.

The reason I'm asking is because I tried to remove the healing properties from all food items, and despite waiting several ingame days, the ratio of actual to possible HP didn't change noticeably. Of course total possible HP changes depending on nutrition levels, so it's a bit hard to tell, but the gap doesn't appear to close, judging by the player's health bar.

 

 

 

The patch I'm using isn't perfect though, as there are still some items left that give HP – namely Saguaro, Cabbage, and Honey Bowls; I wonder whether I really have to specify every single item individually, or what else I may be missing:

[ 
  { file: "game:itemtypes/food/vegetable", op: "replace", path: "/nutritionPropsByType/*/health", value: 0.0},
  { file: "game:itemtypes/food/redmeat", op: "replace", path: "/nutritionPropsByType/redmeat-vintage/health", value: 0.0},
  { file: "game:itemtypes/food/fruit", op: "replace", path: "/nutritionPropsByType/*/health", value: 0.0}
]

I'd prefer to be able to specify /nutritionPropsByType/*- for every food itemtype there is, but some don't have a 'health' key and produce errors; for example redmeat

  { file: "game:itemtypes/food/redmeat", op: "replace", path: "/nutritionPropsByType/*/health", value: 0.0}

doesn't work because two (*-raw and *-cooked) of the three items don't provide health. Similar for fish and poultry.

It would be really helpful to have some kind of "replace-or-ignore-if-nonexistent", unless there is and I'm just blind? Especially as it would allow the patch to automatically cover new items if/when they are added, be it by vanilla or other mods.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.