Merge pull request #15223 from Hatterhat/yeehaw-box

The Yeehaw Update - makes .38 lever-actions slightly more accessible
This commit is contained in:
silicons
2021-10-11 20:45:42 -07:00
committed by GitHub
9 changed files with 83 additions and 4 deletions
@@ -122,7 +122,7 @@
icon_state = "c20r[magazine ? "-[CEILING(get_ammo(0)/4, 1)*4]" : ""][chambered ? "" : "-e"][suppressed ? "-suppressed" : ""]"
/obj/item/gun/ballistic/automatic/wt550
name = "security semi-auto smg"
name = "security semi-auto PDW"
desc = "An outdated personal defence weapon. Uses 4.6x30mm rounds and is designated the WT-550 Semi-Automatic SMG."
icon_state = "wt550"
item_state = "arg"
@@ -359,9 +359,13 @@
icon_state = "levercarabine"
item_state = "leveraction"
sawn_item_state = "maresleg"
var/can_cut = TRUE
/obj/item/gun/ballistic/shotgun/leveraction/attackby(obj/item/A, mob/user, params)
..()
if(!can_cut)
to_chat(user, "<span class='warning'>You can't cut \the [src] down!</span>")
return
if(A.tool_behaviour == TOOL_SAW || istype(A, /obj/item/gun/energy/plasmacutter))
sawoff(user)
if(istype(A, /obj/item/melee/transforming/energy))
@@ -377,3 +381,11 @@
icon_state = "[unique_reskin[current_skin]][sawn_off ? "-sawn" : ""][chambered ? "" : "-e"]"
else
icon_state = "[initial(icon_state)][sawn_off ? "-sawn" : ""][chambered ? "" : "-e"]"
/obj/item/gun/ballistic/shotgun/leveraction/brush
name = "brush gun"
desc = "While lever-actions have been horribly out of date for hundreds of years now, \
putting a nicely sized hole in a man-sized target with a .45-70 round has stayed relatively timeless."
icon_state = "brushgun"
can_cut = FALSE
mag_type = /obj/item/ammo_box/magazine/internal/shot/levergun/brush