mob/var/list
Elements = list("Katon"=0, "Fuuton"=0, "Raiton"=0, "Doton"=0, "Suiton"=0)
obj/elements
icon = 'images/elements/chakraElements.dmi'
fireimg
icon_state = "fire"
name = "Katon"
windimg
icon_state = "wind"
name = "Fuuton"
lightningimg
icon_state = "lightning"
name = "Raiton"
earthimg
icon_state = "earth"
name = "Doton"
waterimg
icon_state = "water"
name = "Suiton"
mob/Stat()
statpanel("Status")
stat(src)
for(var/obj/elements/E in contents)
stat(E)
mob/proc/UPDATESTAT()
var/obj/elements/fireimg/F = new()
F.suffix = " [src.Elements["Katon"]]"
src.contents += F
var/obj/elements/windimg/W = new()
W.suffix = " [src.Elements["Fuuton"]]"
src.contents += W
var/obj/elements/lightningimg/L = new()
L.suffix = " [src.Elements["Raiton"]]"
src.contents += L
var/obj/elements/earthimg/E = new()
E.suffix = " [src.Elements["Doton"]]"
src.contents += E
var/obj/elements/waterimg/WA = new()
WA.suffix = " [src.Elements["Suiton"]]"
src.contents += WA
Basically due to the limitation of the stat() proc, I had to use suffixes to get the numbers I wanted to display to the right of the image. So, how would I go about making this terrible code more efficient?