Shinjikro Posted March 3, 2019 Share Posted March 3, 2019 I just need to know how to edit armor durability, I want to change the bramble husk durability from 375 to 450 This was just requested for balancing reasons in my mod Thank for looking ;P Link to comment https://forums.kleientertainment.com/forums/topic/103463-how-to-edit-armor-durability/ Share on other sites More sharing options...
Ultroman Posted March 3, 2019 Share Posted March 3, 2019 (edited) If you want to change the starting values of an existing armor, do something like this at the bottom of your modmain.lua: AddPrefabPostInit("armor_bramble", function(inst) inst.components.armor:InitCondition(450, 0.65) end) Now, this will change the default values of the armor, but if the server is already running, the Bramble Husk armors which currently exist in the game, will load their previous condition value, so even if they were unused, they will still have the old 375 as their current condition, and show that they have been "damaged" down from their new maximum. There is a workaround to fix that, but I don't think it's warranted. Let me know if that's a problem. Edited March 3, 2019 by Ultroman Link to comment https://forums.kleientertainment.com/forums/topic/103463-how-to-edit-armor-durability/#findComment-1161120 Share on other sites More sharing options...
Shinjikro Posted March 3, 2019 Author Share Posted March 3, 2019 Ah thank you, i'll go try it real quick @Ultroman It worked! thank you, you've been a lot of help to me so far. Link to comment https://forums.kleientertainment.com/forums/topic/103463-how-to-edit-armor-durability/#findComment-1161122 Share on other sites More sharing options...
Ultroman Posted March 3, 2019 Share Posted March 3, 2019 You're very welcome Link to comment https://forums.kleientertainment.com/forums/topic/103463-how-to-edit-armor-durability/#findComment-1161123 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now