diff --git a/Dreadnought/Dreadnought.xml b/Dreadnought/Dreadnought.xml index 6765daa..6da81c2 100644 --- a/Dreadnought/Dreadnought.xml +++ b/Dreadnought/Dreadnought.xml @@ -2202,7 +2202,10 @@ dmsg("Autopilot path set up.") Reset Reset siphonCallout = false }, - paths = {}, - - reset = function () - dreadnought.aetherbeastsTotal = 0 - dreadnought.pilot.calloutTimer = 0 - dreadnought.pilot.aetherbeastsPresent = 0 - dreadnought.pilot.currentPosition = 1 - dreadnought.pilot.flags = { - shocked = false, - siphonCallout = false - } - - dreadnought.pilot.paths = {} - end + paths = {} } function dreadnought.reset.pilot() - dreadnought.aetherbeastsTotal = 0 - dreadnought.pilot.calloutTimer = 0 - dreadnought.pilot.aetherbeastsPresent = 0 - dreadnought.pilot.currentPosition = 1 - dreadnought.pilot.flags = { - shocked = false, - siphonCallout = false - } + return { + aetherbeastsTotal = 0, - dreadnought.pilot.paths = {} + pilot = { + calloutTimer = 0, + aetherbeastsPresent = 0, + currentPosition = 1, + flags = { + shocked = false, + siphonCallout = false + }, + + paths = {} + } + } end haveClarity = false }, - slivvensFound = 0, + slivvensFound = 0 +} - reset = function () - dreadnought.aetherbeastsTotal = 0 - dreadnought.empath.modules = { - chair = "", - grid = "", - turrets = {}, - collectors = {}, - orb = "", - cube = "" +function dreadnought.reset.empath() + return { + aetherbeastsTotal = 0, + + empath = { + modules = { + chair = "", + grid = "", + turrets = {}, + collectors = {}, + orb = "", + cube = "" + }, + + commands = heap.new(), + + flags = { + haveClarity = false + }, + + slivvensFound = 0 } - - dreadnought.empath.commands = heap.new() - - dreadnought.empath.flags = { - haveClarity = false - } - - dreadnought.empath.slivvensFound = 0 - end -} + } +end