ID:268666
 
Or do I just have to make a process to update the object?
There isn't an prefix variable available, but you can use prefixes in statpanels like this:

<code>atom/var/prefix mob/Stat() if(statpanel("Inventory")) for(var/obj/O in src.contents) stat(O.prefix, O)</code>
In response to Foomer
I was thinking something like...
atom
var
prefix
proc
prefix_add(atom/A)
A.name = "[A.prefix][A.name]"

=/
In response to Hell Ramen
Even the built-in suffix var doesn't do that. What you want is to modify the name, and the only way to do that is to modify the name!

<code>atom var/real_name proc/Suffix(suffix) if(suffix) name = "[suffix] [real_name]" else name = real_name return obj/stick name = "stick" real_name = "stick"</code>


That's all you can do, really.
In response to Foomer
x.x
Thanks