Starbound

Starbound

remove the instant food effects from betabound
3 Comments
MithranArkanere 28 May @ 10:48pm 
We put more mods in your mods so you can have more game in your game.
schneck  [author] 2 Nov, 2024 @ 12:44pm 
@Silver Sokolova I implemented this solution in the mod. Many thanks.
Silver Sokolova 28 Oct, 2024 @ 3:10am 
Hi! You can use test ops in patches to see if the item has a certain status effect and then remove only that

[
//check first effect
[{"op":"test","path":"/effects/0/0/effect","value":"sb_health"},{"op":"remove":"path":"/effects/0/0"}],
[{"op":"test","path":"/effects/0/0","value":"sb_health"},{"op":"remove":"path":"/effects/0/0"}],
//check second effect
[{"op":"test","path":"/effects/0/1/effect","value":"sb_health"},{"op":"remove":"path":"/effects/0/1"}],
[{"op":"test","path":"/effects/0/1","value":"sb_health"},{"op":"remove":"path":"/effects/0/1"}]
]
This will check if first or second status effect of the food is 'sb_health', and if so, remove it
You can check the third, etc status effect by changing the 2nd number

So you can make a single patch that checks, say, the first 10 status effects of an item for sb_health, then check the first 10 again for sb_energy, sb_restoration (restores both health and energy), and sb_foodheal, and then use the patch for every item. it should work