native cod_random_upgrade(&value, upgradeMin = -1, upgradeMax = 1, valueMin = NONE, valueMax = NONE);
Item value pointer to malipulate
Minimum upgrade value, can be smaller than 0
Maximum upgrade value
Minimum item value
Maximum item value
Makes random item upgrade.
After upgrade item value will always be at least 0.
COD_STOP will be returned if item is not upgradable
or valueMin / valueMax is already reached.
COD_CONTINUE (0) if upgraded, otherwise COD_STOP (4)