Dear Umod users,
Sorry i see this ended up in the wrong section.
A diving tank usally has 600S i tried to upgrade this to 999s.
I tried to do it the following ways:
- item.maxCondition = 999s
- item.condition = 999s
I also tried to repair it with a negative value. But everytime item.maxCondition says 600s. Is it even possible to manupilate?
I get the item from a GetSlot (so it is a item) I can fill it to 600s but it is not possible for me to get it higher.
I'm kind off new in these kind of coding so all help is appreciated.
Kind regards.
Higher maxCondition diving tank?Solved
Code below works fine.
private object CanWearItem(PlayerInventory inventory, Item item, int targetSlot)
{
if (item.info.shortname == "diving.tank")
{
item._maxCondition = 999f;
item._condition = 999f;
}
return null;
} Much love man! thank you so much!
Locked automatically