I want to cancel all technologies to improve the damage, but disabling one technology is very inconvenient, if there is a way to cancel the study of the entire branch using a script?
Is there a way to simplify this code?
Can I disable the technology branch
Can I disable the technology branch
My native language is russian. Sorry if my messages are difficult to read.
Re: Can I disable the technology branch
Code: Select all
function tech_iterator (tech_name, level)
local level = level or 1
tech_name = tech_name .. '-' .. level
--If data techs tech_name then tech_iterator (tech_name, level+1)