edit_list(list/L)
var/list/new_list = list()
for(var/item in L)
new_list += "[item]"+"[L[item]]"
new_list["[item]"+"[L[item]]"] = L[item] <---
world << "[item] --> [new_list[item]]"
world << "[item] --> [L[item]]"
return new_list
Sure it copies the variable, but it doesn't copy the actual var saved.
Example, if an item in L was "Strength" and it's value was "src.str" in another procedure, this procedure saves the actual number, not the actual variable.
Is there any way to let it save the variable?
~~> Dragon Lord
Instead of L[item], does just item work?