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