Jump to content

How to make clothes have no durability?


Recommended Posts

You just need to get rid of fueled component from them. You ,ust find all clothes prefab names and then in modmain:

function ClothesPostInit(inst)inst:RemoveComponent("fueled")endAddPrefabPostInit("trunkvest_summer", ClothesPostInit) -- do this line for all clothes 
Link to comment
Share on other sites

That didn't work out too well....

 

Your code works for something like a top hat but not things like the trunkvest_summer( The Breezy Vest) or the Dapper Vest,etc....

 

How can I fix this?

21opytz.png

Its simpler way do that, just find values in tuning.lua file like STRAWHAT_PERISHTIME = total_day_time*5, then you just list them in modmain like that:

TUNING.STRAWHAT_PERISHTIME = 9999

Doubt you will survive 9999 days anyway.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...