mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
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:
@@ -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(), \
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user