diff --git a/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs b/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs index 7f4a703c51..4772cbea79 100644 --- a/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs +++ b/OpenRA.Mods.Common/UtilityCommands/ExtractEmmyLuaAPI.cs @@ -149,7 +149,13 @@ namespace OpenRA.Mods.Common.UtilityCommands .Distinct()); if (!string.IsNullOrEmpty(parameterString)) + { + // OwnerInit is special as it is the only "required" init. All others are optional. + if (init.Name != nameof(OwnerInit)) + parameterString += '?'; + Console.WriteLine($"---@field {name} {parameterString}"); + } } usedEnums = localEnums.Distinct();