https://zero-k.info/Mods/Detail/203can somone confirm this works im away and cannot test it
it should add a chicken and set map to chicken nuggets
almost all chickens should be hermits.
enjoy finding counters
[Spoiler]
{
"shortName": "HermitK",
"name" : "HermitK v1.0",
"description" : "Chickens with Hermits",
"options" : {
"chickenailevel" : "Suicidal",
"map" : "Chicken Nuggets v5",
"noelo" : true,
"queenhealthmod" : "4",
"option_notes" : "Chickens with Hermits",
"tweakdefs" :
"tweaks bellow went here",
"tweakunits" :
""
}
}
local replacements = {
chicken = "spiderscout",
chicken_pigeon = "spideraa",
chickenblobber = "spiderassault",
chicken_blimpy = "spiderassault",
chicken_tiamat = "spiderassault",
chickens = "spiderassault",
chickena = "spiderassault",
chicken_dragon = "spidercrabe",
chickenr = "spiderassault",
chickenwurm = "spiderassault",
chicken_roc = "spiderassault",
chicken_sporeshooter = "spiderassault",
chicken_digger = "spiderassault",
chicken_dodo = "spiderassault",
chicken_leaper = "spiderassault",
chickenf = "spiderassault",
chicken_spidermonkey = "spiderassault",
chicken_shield = "spiderassault",
chickenc = "spiderassault",
}
local function CopyTable(t)
local new = {}
for k, v in pairs(t) do
if type(v) == "table" then
new[k] = CopyTable(v)
else
new[k] = v
end
end
return new
end
for targetUnit, sourceUnit in pairs(replacements) do
local sourceDef = UnitDefs[sourceUnit]
if sourceDef then
UnitDefs[targetUnit] = CopyTable(sourceDef)
end
end