Unfuck sawed off shotgun sprites because we have better sprites

Virgo hardcoded sprite recolors.
This commit is contained in:
Razgriz
2022-03-30 14:07:32 -07:00
committed by GitHub
parent e18c0203b5
commit c6316b6156

View File

@@ -118,7 +118,7 @@
origin_tech = list(TECH_COMBAT = 3, TECH_MATERIAL = 1)
ammo_type = /obj/item/ammo_casing/a12g/beanbag
var/unique_reskin
// var/unique_reskin CHOMP Remove
var/sawn_off = FALSE
burst_delay = 0
@@ -137,7 +137,7 @@
/obj/item/weapon/gun/projectile/shotgun/doublebarrel/unload_ammo(user, allow_dump)
..(user, allow_dump=1)
/*CHOMP Remove start
/obj/item/weapon/gun/projectile/shotgun/doublebarrel/verb/rename_gun()
set name = "Name Gun"
set category = "Object"
@@ -175,7 +175,7 @@
unique_reskin = options[choice]
to_chat(M, "Your gun is now sprited as [choice]. Say hello to your new friend.")
return 1
*/ //CHOMP Remove end
//this is largely hacky and bad :( -Pete //less hacky and bad now :) -Ghost
/obj/item/weapon/gun/projectile/shotgun/doublebarrel/attackby(var/obj/item/A as obj, mob/user as mob)
if(sawn_off)
@@ -193,10 +193,10 @@
if(do_after(user, 30)) // SHIT IS STEALTHY EYYYYY
if(sawn_off)
return
if(unique_reskin)
icon_state = "[unique_reskin]_sawn"
else
icon_state = "dshotgun_sawn"
// if(unique_reskin) //CHOMP Remove
// icon_state = "[unique_reskin]_sawn" //CHOMP Remove
// else //CHOMP Remove
// icon_state = "dshotgun_sawn" //CHOMP Remove
item_state = "sawnshotgun"
w_class = ITEMSIZE_NORMAL
force = 5