player
var/pet/pet = new(src,"browny")
var/stat/health/health = new(src,100)
pet
var/mob/owner
var/stat/health/health = new(src,50)
New(mob/m,n)
..()
owner=m
name=n
stat/health
var
mob/mob
value
max_value
New(mob/m,val)
..()
mob=m
value=val
max_value=val
proc/decrease(val)
value-=val
if(value<=0)
mob.death()
I believe it will be very helpful especially for libraries.