mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Made items that get unbloodied update their icon during the unbloodying, so you can tell how much you used your gun between getting blood on it and cleaning it.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@791 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -5,9 +5,6 @@ ZIPPO
|
||||
|
||||
|
||||
*/
|
||||
/obj/item/weapon/cigpacket/proc/update_icon()
|
||||
return
|
||||
|
||||
/obj/item/weapon/cigpacket/update_icon()
|
||||
src.icon_state = text("cigpacket[]", src.cigcount)
|
||||
src.desc = text("There are [] cigs\s left!", src.cigcount)
|
||||
|
||||
@@ -96,7 +96,7 @@ TELEPORT GUN
|
||||
// AMMO
|
||||
|
||||
|
||||
/obj/item/weapon/ammo/proc/update_icon()
|
||||
/obj/item/weapon/ammo/update_icon()
|
||||
return
|
||||
|
||||
|
||||
@@ -541,7 +541,7 @@ obj/item/weapon/gun/revolver/attackby(obj/item/weapon/ammo/a357/A as obj, mob/us
|
||||
|
||||
// ENERGY GUN
|
||||
|
||||
/obj/item/weapon/gun/energy/proc/update_icon()
|
||||
/obj/item/weapon/gun/energy/update_icon()
|
||||
if (istype(src, /obj/item/weapon/gun/energy/crossbow)) return
|
||||
var/ratio = src.charges / 10
|
||||
ratio = round(ratio, 0.25) * 100
|
||||
|
||||
@@ -69,7 +69,7 @@ STUN BATON
|
||||
|
||||
// STUN BATON
|
||||
|
||||
/obj/item/weapon/baton/proc/update_icon()
|
||||
/obj/item/weapon/baton/update_icon()
|
||||
if(src.status)
|
||||
icon_state = "stunbaton_active"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user