From 0bfac54070e3c9a041c343e469927cd522b93e41 Mon Sep 17 00:00:00 2001
From: kevinz000 <2003111+kevinz000@users.noreply.github.com>
Date: Sat, 4 May 2019 23:16:27 -0700
Subject: [PATCH] Update magweapon_energy.dm
---
.../projectiles/guns/ballistic/magweapon_energy.dm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/modular_citadel/code/modules/projectiles/guns/ballistic/magweapon_energy.dm b/modular_citadel/code/modules/projectiles/guns/ballistic/magweapon_energy.dm
index 90dd577c4b..4dbd4b61db 100644
--- a/modular_citadel/code/modules/projectiles/guns/ballistic/magweapon_energy.dm
+++ b/modular_citadel/code/modules/projectiles/guns/ballistic/magweapon_energy.dm
@@ -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, "[src]'s cell is [round(cell.charge / cell.maxcharge, 0.1) * 100]% full.")
+ else
+ to_chat(user, "[src] doesn't seem to have a cell!")
/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, "[src]'s cell is [round(cell.charge / cell.maxcharge, 0.1) * 100]% full.")
+ else
+ to_chat(user, "[src] doesn't seem to have a cell!")
+
/obj/item/gun/ballistic/automatic/pistol/mag_e/can_shoot()
if(QDELETED(cell))
return 0