mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #5773 from CHOMPStation2/upstream-merge-14539
[MIRROR] [MIRROR] Adds const to holodeck copy bypass list.
This commit is contained in:
@@ -826,10 +826,22 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
||||
else
|
||||
O=new original.type(locate(0,0,0))
|
||||
|
||||
var/static/list/blacklisted_var_names = list(
|
||||
"ATOM_TOPIC_EXAMINE",
|
||||
"type",
|
||||
"loc",
|
||||
"locs",
|
||||
"vars",
|
||||
"parent",
|
||||
"parent_type",
|
||||
"verbs",
|
||||
"ckey",
|
||||
"key"
|
||||
)
|
||||
if(perfectcopy)
|
||||
if((O) && (original))
|
||||
for(var/V in original.vars)
|
||||
if(!(V in list("type","loc","locs","vars", "parent", "parent_type","verbs","ckey","key")))
|
||||
if(!(V in blacklisted_var_names))
|
||||
O.vars[V] = original.vars[V]
|
||||
return O
|
||||
|
||||
|
||||
Reference in New Issue
Block a user