Skip to content

Duplicator

Rob Nelson requested to merge pull/13523/Duplicator into Bleeding-Edge

Created by: Shadowmech88

duplicator_complete http://puu.sh/tq5VT/cf64e838ae.webm

Adds the duplicator, a machine which will duplicate anything placed into one pod, with the duplicate in the other pod possessing all the same contents and var values as the original.

Adds a duplicate() proc, which creates a new instance of the datum it's called on and then copies its vars over to the duplicate. Dumb copying of references tends to cause really bad unforeseen stuff, so the proc can be overridden for individual types in order to specifically copy the needed references in a more controlled manner, such as I've done for humans in needing to copy their organs and organ damages.

Console sprite taken from Europa Station.

Merge request reports