Skip to content
Snippets Groups Projects
Commit dd24e023 authored by Samuel Wegner's avatar Samuel Wegner
Browse files

Remove debugging code

parent 878cd840
No related branches found
No related tags found
1 merge request!295Warden's Call partial fix
......@@ -288,7 +288,7 @@ end
-- @ or nil to use the default assignent value
-- @return a reference to the clone on success, or nil on failure
makeParadoxClone = function(self, target, duration, alt_nodes)
if not target or not duration then return nil end -- TODO Make sure nothing is passing duration==nil
if not target or not duration then return nil end
-- Don't copy certain properties from the target
alt_nodes = alt_nodes or {}
......@@ -319,12 +319,8 @@ makeParadoxClone = function(self, target, duration, alt_nodes)
end
-- Clone the target
local m ,num = target:cloneCustom(alt_nodes)
local m = target:cloneCustom(alt_nodes)
print("[makeParadoxClone] Number returned by cloning function: ", num) -- DEBUG
print("[makeParadoxClone] Created clone: ", m, " uid: ", m.uid, " Player uid: ", target.uid) -- DEBUG
table.print(m) -- DEBUG
-- Basic setup
m.dead = false
m.no_drops = true
......@@ -340,7 +336,7 @@ makeParadoxClone = function(self, target, duration, alt_nodes)
m.desc = [[A creature from another timeline.]]
-- Remove some values
--m:removeAllMOs() -- TODO Might be able to remove this if we skip the MO nodes
--m:removeAllMOs()
m.make_escort = nil
m.escort_quest = nil
m.on_added_to_level = nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment