polishing

This commit is contained in:
DeityLink
2015-08-09 13:02:36 +02:00
parent bd10938b95
commit 087f2ab47b
2 changed files with 12 additions and 1 deletions

View File

@@ -16,6 +16,13 @@
machine_flags = WRENCHMOVE | FIXED2WORK
/obj/machinery/recharger/Destroy()
if(charging)
charging.update_icon()
charging.loc = loc
charging = null
occupant_overlay=null
..()
/obj/machinery/recharger/attackby(obj/item/weapon/G, mob/user)
if(istype(user,/mob/living/silicon))

View File

@@ -692,7 +692,7 @@
/obj/item/osipr_magazine
name = "pulse magazine"
desc = "Primary ammo for OSIPR."
desc = "Primary ammo for OSIPR. Can be replenished by a recharger."
icon = 'icons/obj/ammo.dmi'
icon_state = "osipr-magfull"
flags = FPRINT
@@ -706,6 +706,10 @@
pixel_x = rand(-10.0, 10)
pixel_y = rand(-10.0, 10)
/obj/item/osipr_magazine/examine(mob/user)
..()
user << "<span class='info'>Has [bullets] pulse bullet\s remaining.</span>"
/obj/item/osipr_magazine/update_icon()
if(bullets == OSIPR_MAG_FULL)
icon_state = "osipr-magfull"