Divergent/mods/More Melee Features/gamedata/scripts/shovel_god.script

18 lines
386 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
local from_to = {
["shovel_old"] = "mmf_shovel_old",
["shovel_mili"] = "mmf_shovel_mili"
}
function item_rack(obj)
local sec = obj:section()
local p = obj:parent() or db.actor
if from_to[sec] then
alife_release(obj)
alife_create_item(from_to[sec], p)
end
end
function on_game_start()
RegisterScriptCallback("actor_item_to_ruck",item_rack)
end