Shotgun speedloader (#20835)

Stick two shotgun shells into it, break them off into a shotgun. Makes double barreled shotguns much more viable
This commit is contained in:
MadmanMartian
2018-11-30 22:11:00 +00:00
committed by jknpj
parent 8479ed8d8d
commit bf890e4942
3 changed files with 27 additions and 0 deletions

View File

@@ -94,6 +94,7 @@
new /obj/item/ammo_casing/shotgun/blank(), \
new /obj/item/ammo_casing/shotgun/beanbag(), \
new /obj/item/ammo_casing/shotgun/flare(), \
new /obj/item/ammo_storage/speedloader/shotgun(),
new /obj/item/ammo_storage/speedloader/c38/empty(), \
new /obj/item/ammo_storage/box/c38(), \
new /obj/item/toy/ammo/gun(), \

View File

@@ -36,3 +36,29 @@
/obj/item/ammo_storage/speedloader/a762x55/empty
starting_ammo = 0
/obj/item/ammo_storage/speedloader/shotgun
name = "double barreled shotgun speedloader"
desc = "The instructions read 'Just break the shotgun open, stick the shells in, and break the clip off.'"
icon_state = "shotgun_speedloader"
caliber = GAUGE12
exact = FALSE
max_ammo = 2
starting_ammo = 0
/obj/item/ammo_storage/speedloader/shotgun/update_icon()
overlays.Cut()
if(stored_ammo.len)
var/count = 1
for(var/obj/item/ammo_casing/shotgun/S in stored_ammo)
var/pixelx = 0
var/pixely = 0
switch(count)
if(1)
count++
pixelx = -10
if(2)
pixelx = -6
pixely = -1
var/image/shell_image = image("icon" = S.icon, "icon_state" = S.icon_state, "pixel_x" = pixelx, "pixel_y" = pixely)
overlays += shell_image

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB