Examine Code Refactor

This commit is contained in:
Dip
2020-10-06 23:36:21 -03:00
parent c433514622
commit aa7d47a23b
334 changed files with 1337 additions and 1365 deletions
+3 -3
View File
@@ -93,11 +93,11 @@
return power_used
/obj/item/stock_parts/cell/examine(mob/user)
..()
. = ..()
if(rigged)
to_chat(user, "<span class='danger'>This power cell seems to be faulty!</span>")
. += "<span class='danger'>This power cell seems to be faulty!</span>"
else
to_chat(user, "The charge meter reads [round(src.percent() )]%.")
. += "The charge meter reads [round(src.percent() )]%."
/obj/item/stock_parts/cell/suicide_act(mob/user)
user.visible_message("<span class='suicide'>[user] is licking the electrodes of [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")