mob/proc
Regen()
var/regen = 1
if(usr.Ch< usr.MaxCh)
usr.Ch+=regen
New()
..()
spawn() Regen()
mob/proc
Inactive()
if(!src.client||src.client.inactivity>=30)
Regen()
else return
All I'm trying to do is set up a simple proc that regenerates the player's energy when they've been inactive for a certain amount of time, but for some reasons it's not working. It doesnt replenish the player's energy. Any help?