mirror of
https://github.com/weyne85/MIST.git
synced 2025-10-29 16:56:32 +00:00
Documentation Minor changes
Doc file and pdf. Minor changes to mist.lua
This commit is contained in:
parent
c50463a7c8
commit
22d5b00d49
BIN
Mist guide.pdf
BIN
Mist guide.pdf
Binary file not shown.
17
mist.lua
17
mist.lua
@ -3187,7 +3187,6 @@ mist.flagFunc.group_dead = function(vars)
|
|||||||
end
|
end
|
||||||
|
|
||||||
mist.flagFunc.group_alive_less_than = function(vars)
|
mist.flagFunc.group_alive_less_than = function(vars)
|
||||||
env.info('aliveless')
|
|
||||||
local type_tbl = {
|
local type_tbl = {
|
||||||
[{'group', 'groupname', 'gp', 'groupName'}] = 'string',
|
[{'group', 'groupname', 'gp', 'groupName'}] = 'string',
|
||||||
percent = 'number',
|
percent = 'number',
|
||||||
@ -5209,12 +5208,18 @@ mist.randomizeNumTable = function(vars)
|
|||||||
return newTable
|
return newTable
|
||||||
end
|
end
|
||||||
|
|
||||||
mist.randomizeGroupOrder = function(units, vars)
|
mist.randomizeGroupOrder = function(passedUnits, vars)
|
||||||
-- figure out what to exclude, and send data to other func
|
-- figure out what to exclude, and send data to other func
|
||||||
|
local units = passedUnits
|
||||||
|
|
||||||
|
if passedUnits.units then
|
||||||
|
units = passUnits.units
|
||||||
|
end
|
||||||
|
|
||||||
local exclude = {}
|
local exclude = {}
|
||||||
local excludeNum = {}
|
local excludeNum = {}
|
||||||
if vars and vars.excludeName and type(vars.excludeName) == 'table' then
|
if vars and vars.excludeType and type(vars.excludeType) == 'table' then
|
||||||
exclude = vars.excludeName
|
exclude = vars.excludeType
|
||||||
end
|
end
|
||||||
|
|
||||||
if vars and vars.excludeNum and type(vars.excludeNum) == 'table' then
|
if vars and vars.excludeNum and type(vars.excludeNum) == 'table' then
|
||||||
@ -5241,8 +5246,8 @@ mist.randomizeGroupOrder = function(units, vars)
|
|||||||
if unitIndex >= low and unitIndex <= hi then -- if within range
|
if unitIndex >= low and unitIndex <= hi then -- if within range
|
||||||
local found = false
|
local found = false
|
||||||
if #exclude > 0 then
|
if #exclude > 0 then
|
||||||
for excludeName, index in pairs(exclude) do -- check if excluded
|
for excludeType, index in pairs(exclude) do -- check if excluded
|
||||||
if mist.stringMatch(excludeName, unitData.type) then -- if excluded
|
if mist.stringMatch(excludeType, unitData.type) then -- if excluded
|
||||||
excludeNum[unitIndex] = unitIndex
|
excludeNum[unitIndex] = unitIndex
|
||||||
found = true
|
found = true
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user