Update magweapon_energy.dm

This commit is contained in:
kevinz000
2019-05-04 23:16:27 -07:00
committed by GitHub
parent 534b5f0287
commit 0bfac54070
@@ -171,6 +171,12 @@
var/cell_type = /obj/item/stock_parts/cell/magrifle_e
var/dead_cell = FALSE
/obj/item/gun/ballistic/automatic/magrifle_e/examine(mob/user)
. = ..()
if(cell)
to_chat(user, "<span class='notice'>[src]'s cell is [round(cell.charge / cell.maxcharge, 0.1) * 100]% full.</span>")
else
to_chat(user, "<span class='notice'>[src] doesn't seem to have a cell!</span>")
/obj/item/gun/ballistic/automatic/magrifle_e/can_shoot()
if(QDELETED(cell))
@@ -229,6 +235,13 @@
var/cell_type = /obj/item/stock_parts/cell/magpistol_e
var/dead_cell = FALSE
/obj/item/gun/ballistic/automatic/pistol/mag_e/examine(mob/user)
. = ..()
if(cell)
to_chat(user, "<span class='notice'>[src]'s cell is [round(cell.charge / cell.maxcharge, 0.1) * 100]% full.</span>")
else
to_chat(user, "<span class='notice'>[src] doesn't seem to have a cell!</span>")
/obj/item/gun/ballistic/automatic/pistol/mag_e/can_shoot()
if(QDELETED(cell))
return 0