Skip to content

Commit f700a18

Browse files
committed
Added type annotations to process_technology_recipe_productivity_effects.
1 parent e9afc0c commit f700a18

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/technology.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ local function xor(a,b)
359359
return (a or b) and (not(a and b))
360360
end
361361

362-
function Public.process_technology_recipe_productivity_effects(tech) --Undocumented. Placed here to simplify testing
362+
---@param tech table (TechnologyPrototype)
363+
function Public.process_technology_recipe_productivity_effects(tech)
363364
if tech.PlanetsLib_recipe_productivity_effects then
364365

365366
local new_effects = {}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
for _,tech in pairs(data.raw["technology"]) do
2-
PlanetsLib.process_technology_recipe_productivity_effects(tech)
2+
if tech.PlanetsLib_recipe_productivity_effects then
3+
PlanetsLib.process_technology_recipe_productivity_effects(tech)
4+
end
5+
36
end

0 commit comments

Comments
 (0)