Divergent/mods/Nitpicker's Modpack/gamedata/scripts/ish_keep_bolts.script

20 lines
572 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
-- KeepBolts - Nitpicker's Modpack
-- Last modified: 2021.07.26
-- https://github.com/Ishmaeel/NitpickerModpack
local Base_Action_Move = nil
function Ishy_Action_Move(sender, obj, bag, another, fourth, fifth)
obj = sender:CheckItem(obj, "Action_Move")
if sender.mode == "loot" and (bag == "actor_bag" or bag == "actor_equ") and IsBolt(obj) then
return
end
Base_Action_Move(sender, obj, bag)
end
function on_game_start()
Base_Action_Move = ui_inventory.UIInventory.Action_Move
ui_inventory.UIInventory.Action_Move = Ishy_Action_Move
end