Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions gamedata/unitdefs_post.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,12 @@ local function preProcessTweakOptions()
end

table.sort(tweaks, function(a, b)
-- Ensure that tweakunits are processed before tweakdefs
-- This allows fine-tuning of tweaks using extended capabilities of tweakdefs
if a.type == 'defs' and b.type == 'units' then
return true
elseif a.type == 'units' and b.type == 'defs' then
return false
elseif a.type == 'units' and b.type == 'defs' then
return true
end
return a.index < b.index
end)
Expand Down
8 changes: 4 additions & 4 deletions modoptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ local options = {
unlock = {"community_balance_commando", "community_balance_cortermite", "community_balance_armwar", "community_balance_armfast", "community_balance_corjamt"} },
}
},

{
key = "community_balance_patch_changelog_link",
name = "Changelog",
Expand Down Expand Up @@ -2169,7 +2169,7 @@ Example: Armada VS Cortex VS Legion: 273 or 100 010 001 or 256 + 16 + 1]],
max = 10000,
step = 1,
},

{
key = "startmetalstorage",
name = "Starting Metal Storage",
Expand Down Expand Up @@ -2478,7 +2478,7 @@ Example: Armada VS Cortex VS Legion: 273 or 100 010 001 or 256 + 16 + 1]],
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

for i = 1, 9 do
for i = 1, 29 do
options[#options + 1] = {
key = "tweakunits" .. i,
name = "Tweak Units " .. i,
Expand All @@ -2490,7 +2490,7 @@ for i = 1, 9 do
}
end

for i = 1, 9 do
for i = 1, 29 do
options[#options + 1] = {
key = "tweakdefs" .. i,
name = "Tweak Defs " .. i,
Expand Down