Files
Rage 376b4b9689 Added New Mods and Profiles Folders
This is a complete rebuild of the modpack, with all new mods and updates for 1.5.3 of Anomaly.
2025-01-14 05:07:53 -05:00

12 lines
444 B
Plaintext

print_dbg = magazines.print_dbg
is_magazine = magazine_binder.is_magazine
GetCost = utils_item.get_item_cost
function utils_item.get_item_cost(obj, profile)
if not utils_item.on_get_item_cost and is_magazine(obj) and obj:parent() and obj:parent():id() == 0 then
print_dbg("reducing mag cost %s", obj:section())
return math.floor(GetCost(obj, profile) * 0.1)
else
return GetCost(obj, profile)
end
end