diff --git a/api.lua b/api.lua index f0fcd4a..ff5f59b 100644 --- a/api.lua +++ b/api.lua @@ -437,7 +437,12 @@ function gunslinger.register_gun(name, def) end -- Abort when making use of unimplemented features if def.zoom then - error("register_gun: Unimplemented feature!") + if binoculars and binoculars.items then + binoculars.items[name] = def.zoom + if def.magazine then + binoculars.items[name.."_empty"] = def.zoom + end + end end if (def.mode == "automatic" or def.mode == "hybrid") diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..c5677c8 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +binoculars? \ No newline at end of file