v1.0.1
Fixed both Pilot and Empath reset commands. They now follow the same coding standards as the rest of the various commands (such as only updating variables from the callers).
This commit is contained in:
parent
f3d2c96f36
commit
7c8d07f839
1 changed files with 48 additions and 45 deletions
|
@ -2202,7 +2202,10 @@ dmsg("Autopilot path set up.")</script>
|
|||
<Alias isActive="yes" isFolder="no">
|
||||
<name>Reset</name>
|
||||
<script>if #matches > 1 then
|
||||
dreadnought.pilot.reset()
|
||||
local resets = dreadnought.reset.pilot()
|
||||
|
||||
dreadnought.aetherbeastsTotal = resets.aetherbeastsTotal
|
||||
dreadnought.pilot = resets.pilot
|
||||
dmsg("All pilot variables have been reset.")
|
||||
else
|
||||
dmsg("This will reset ALL piloting variables. Please type 'preset confirm' to confirm.")
|
||||
|
@ -2405,7 +2408,10 @@ dreadnought.repairShip()</script>
|
|||
<Alias isActive="yes" isFolder="no">
|
||||
<name>Reset</name>
|
||||
<script>if #matches > 1 then
|
||||
dreadnought.empath.reset()
|
||||
local resets = dreadnought.reset.empath()
|
||||
|
||||
dreadnought.aetherbeastsTotal = resets.aetherbeastsTotal
|
||||
dreadnought.empath = resets.empath
|
||||
dmsg("All empath variables have been reset.")
|
||||
else
|
||||
dmsg("This will reset ALL empathing variables. Please type 'greset confirm' to confirm.")
|
||||
|
@ -2642,33 +2648,25 @@ dmsg("All Dreadnought reflexes have been disabled.")</script>
|
|||
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</script>
|
||||
<eventHandlerList/>
|
||||
<Script isActive="yes" isFolder="no">
|
||||
|
@ -2771,28 +2769,33 @@ end</script>
|
|||
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
|
||||
}</script>
|
||||
}
|
||||
end</script>
|
||||
<eventHandlerList/>
|
||||
<Script isActive="yes" isFolder="no">
|
||||
<name>Repair Ship</name>
|
||||
|
|
Loading…
Add table
Reference in a new issue