I really dont understand why it has a problem with my tweak, keep getting a CTD and all I did was change the numbers to suit my ideal drop rate.
I think ive narrowed down the issue to this segment here.
local function eat(temp,itm)
if (is_weapon(itm:section())) then local c
if (cond > 0.8) then
itm:set_condition(math.random(5,50)/100)
printf("-eaten:"..itm:section())
end
end
end
npc:iterate_inventory(eat,nil)
utils.se_obj_save_var(npc:id(),npc:name(),"items_eaten",true)
end
If im reading this correctly, its saying any time a corpse is spawned, if the condition of the weapon is above 80%, it will set the condition to between 5% and 50% which completely contradicts the other drop specifications.
ComptonUnhh
joined
This member has provided no bio about themself...