add support for my version of binoculars

This commit is contained in:
Elkien3 2019-07-28 11:11:18 -05:00
parent 0b5971f2d2
commit 74204e154f
2 changed files with 7 additions and 1 deletions

View File

@ -437,7 +437,12 @@ function gunslinger.register_gun(name, def)
end end
-- Abort when making use of unimplemented features -- Abort when making use of unimplemented features
if def.zoom then 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 end
if (def.mode == "automatic" or def.mode == "hybrid") if (def.mode == "automatic" or def.mode == "hybrid")

1
depends.txt Normal file
View File

@ -0,0 +1 @@
binoculars?