mob
Stat()
sleep(2)
statpanel("Stats")
if(statpanel("Stats"))
stat("Name: [src]")
stat("~~~~~~~~~~~~~~~Vitals~~~~~~~~~~~~~~")
stat("Level: [level]")
stat("Level Points: [src.levelpoints]")
stat("Race: [race]")
if(usr.race=="Arrancar")
stat("Number: [espadas]")
if(usr.combat2)
stat("Clash: [combat2]")
if(usr.squad)
stat("Rank: [status]")
stat("Health: [health]/[mhealth]")
stat("Wounds: [wound]/100")
stat("Rei: [rei]/[mrei]")
stat("Attack: [mattack] (+[attack-mattack])")
stat("Defence: [mdefence] (+[defence-mdefence])")
stat("Reiatsu: [mreiatsu] (+[reiatsu-mreiatsu])")
stat("Experience: [exp]/[mexp] ([round(exp/mexp,0.001)*100]%)")
stat("Flash Step Uses: [flashuse]")
if(usr.thits)
stat("Memory Hits: [thits]")
if(usr.bringerblast)
stat("Bringer Blasts: [bringerblast]")
if(usr.getsugaring)
stat("Getsuga Rings: [getsugaring]")
if(usr.shielduses)
stat("Shield Uses: [shielduses]")
if(usr.kicks)
stat("Critical Hits: [kicks]")
stat("~~~~~~~~~~~~~~~Miscs~~~~~~~~~~~~~~")
stat("Money: [money]")
stat("Event Points: [eventpoints]")
stat("Kills: [kills]")
stat("Deaths: [deaths]")
stat("Location: [src.x],[src.y],[src.z]")
if(usr.race=="Arrancar")
stat("Ressurection Drain: [ressdrain]")
if(usr.race=="Shinigami"||usr.race=="Vaizard")
stat("Shikai Drain: [shikaidrain]")
stat("Bankai Drain: [bankaidrain]")
stat("Flash Step Uses: [flashuse]")
if(usr.race=="Vaizard")
stat("Mask Time: [maskuses]")
if(statpanel("Kills"))
statpanel("Kills")
stat("PVP Kills: [kills]")
stat("Hollow Kills: [hkills]")
stat("Arrancar Kills: [arrkills]")
stat("Shinigami Kills: [shkills]")
stat("Vaizard Kills: [vkills]")
stat("Lost Vaizard Kills: [lkills]")
stat("Final Shinigami Kills: [fkills]")
stat("Quincy Kills: [kkills]")
stat("Sado Kills: [kskills]")
stat("Fullbringer Kills: [kfkills]")
if(statpanel("Story"))
statpanel("Story")
stat("Story Completion: [storycom]%")
stat("Current Part: [curpart]")
stat("Current Story Mission: [curmis]")
var/list/T=new
for(var/obj/O in src.contents)
if(!T.Find(O.type))
T+=O.type
var/count=0
for(var/obj/o in src.contents)
if(o.type==O.type)
count+=o.stacked
if(o!=O)del(o)
O.stacked=count
O.suffix="[count]"
if(O.suffix=="1"||O.suffix=="0")
O.suffix=""
Problem description:
The "mob/stat" is 3rd most CPU aggressive thing when I profile the world. Am I doing something wrong or is that natural?
However to answer your question- Stat() is called every tick or so I believe,which boils down to constantly.