Rewrite examine() to pass a list around

This commit is contained in:
Aronai Sieyes
2020-04-29 16:42:16 -04:00
committed by VirgoBot
parent 8c5c0a7cfb
commit 6ebd249748
214 changed files with 2021 additions and 1120 deletions

View File

@@ -11,4 +11,4 @@
/obj/item/weapon/magnetic_ammo/examine(mob/user)
. = ..()
to_chat(user, "There [(remaining == 1)? "is" : "are"] [remaining] flechette\s left!")
. += "There [(remaining == 1)? "is" : "are"] [remaining] flechette\s left!"

View File

@@ -50,12 +50,12 @@
produce()
/obj/item/ammo_magazine/smart/examine(mob/user)
..()
. = ..()
if(attached_cell)
to_chat(user, "<span class='notice'>\The [src] is loaded with a [attached_cell.name]. It is [round(attached_cell.percent())]% charged.</span>")
. += "<span class='notice'>\The [src] is loaded with a [attached_cell.name]. It is [round(attached_cell.percent())]% charged.</span>"
else
to_chat(user, "<span class='warning'>\The [src] does not appear to have a power source installed.</span>")
. += "<span class='warning'>\The [src] does not appear to have a power source installed.</span>"
/obj/item/ammo_magazine/smart/update_icon()
if(attached_cell)