ID:1025068
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Is it possible to have src as a "constant" argument in declarations like
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.
It wouldn't be any different (or less unpredictable) than simply initializing the variable in New().
It gives flexibility. If you have a stat library, people could just set stat=new(src,1234) without them having to tinker with their mob's New() proc. I wanted this badly in one of my projects though I forgot why exactly.
--

Sorry, but I really see no use in this compairitive to all the open request from a year ago that never got dealt with.