-- REMOVE function
function removeitems( times, type )
for i=1, times do
for mat_id,_ in pairs(tweak_data.blackmarket[type]) do
if _.infamous then
managers.blackmarket:remove_item("infamous", type, mat_id, false)
elseif _.dlc then
managers.blackmarket:remove_item("preorder", type, mat_id, false)
else
managers.blackmarket:remove_item("normal", type, mat_id, false)
end
end
end
end
-- REMOVE
removeitems(1000, "masks")
removeitems(1000, "materials")
removeitems(1000, "textures")
removeitems(1000, "colors")
removeitems(1000, "weapon_mods")
-- CLEAR function
function clearnewitems( type )
for i, v in pairs(tweak_data.blackmarket[type]) do
if managers.blackmarket:got_new_drop( "infamous", type, i ) then
managers.blackmarket:remove_new_drop( "infamous", type, i )
end
if managers.blackmarket:got_new_drop( "preorder", type, i ) then
managers.blackmarket:remove_new_drop( "preorder", type, i )
end
if managers.blackmarket:got_new_drop( "normal", type, i ) then
managers.blackmarket:remove_new_drop( "normal", type, i )
end
end
end
-- CLEAR
clearnewitems("masks")
clearnewitems("materials")
clearnewitems("textures")
clearnewitems("colors")
clearnewitems("weapon_mods")