Skip to content

Commit

Permalink
add comments to turd.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Nov 28, 2023
1 parent fb15897 commit 5ec2216
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/turd/turd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ local function on_researched(event)
return
end

-- this is for recipe replacement. if a non turd tech unlocks a recipe that is replaced by a turd tech, run reapply_turd_bonuses
-- TODO: optimize this to not run if the tech doesn't need recipe replacements (maybe a table of all turd replacable recipes is needed)
if game.tick ~= 0 then reapply_turd_bonuses(force) end
end

Expand Down

0 comments on commit 5ec2216

Please sign in to comment.