mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 13:42:44 +00:00
Examining power cells state their name and size (#6577)
This commit is contained in:
@@ -145,18 +145,11 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/item/weapon/cell/examine(mob/user)
|
/obj/item/weapon/cell/examine(mob/user)
|
||||||
var/msg = desc
|
..()
|
||||||
|
|
||||||
if(get_dist(src, user) <= 1)
|
if(get_dist(src, user) <= 1)
|
||||||
msg += " It has a power rating of [maxcharge].\nThe charge meter reads [round(src.percent() )]%."
|
to_chat(user, " It has a power rating of [maxcharge].\nThe charge meter reads [round(src.percent() )]%.")
|
||||||
|
return
|
||||||
|
|
||||||
to_chat(user, msg)
|
|
||||||
/*
|
|
||||||
if(maxcharge <= 2500)
|
|
||||||
to_chat(user, "[desc]\nThe manufacturer's label states this cell has a power rating of [maxcharge], and that you should not swallow it.\nThe charge meter reads [round(src.percent() )]%.")
|
|
||||||
else
|
|
||||||
to_chat(user, "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!\nThe charge meter reads [round(src.percent() )]%.")
|
|
||||||
*/
|
|
||||||
/obj/item/weapon/cell/attackby(obj/item/W, mob/user)
|
/obj/item/weapon/cell/attackby(obj/item/W, mob/user)
|
||||||
..()
|
..()
|
||||||
if(istype(W, /obj/item/weapon/reagent_containers/syringe))
|
if(istype(W, /obj/item/weapon/reagent_containers/syringe))
|
||||||
|
|||||||
Reference in New Issue
Block a user