Tech - Aidan647/ezlib GitHub Wiki
-
Add
-
Unlock recipe
-
ezlib.tech.add.unlock_recipe(tech_name, recipe)
- Add recipe as unlock-recipe effect to tech
-
Unlock modifer
-
ezlib.tech.add.unlock_recipe(tech_name, effect, modifier, ammo_category)
- Add effect to tech
- ammo_category needed only if effect is ammo-damage or gun-speed
-
Prerequisites
-
ezlib.tech.add.prerequisites(tech_name, tech_name_2)
- Add tech_name_2 as prerequisites to tech_name
-
Remove
-
Unlock recipe
-
ezlib.tech.remove.unlock_recipe(tech_name, recipe)
- Removes unlock-recipe effect from tech (if have)
-
Unlock modifer
-
ezlib.tech.remove.unlock_recipe(tech_name, effect, ammo_category)
- Removes effect from tech (if have)
- ammo_category is optional only if effect is ammo-damage or gun-speed
-
Prerequisites
-
ezlib.tech.remove.prerequisites(tech_name, tech_name_2)
- Removes tech_name_2 as prerequisites to tech_name
-
Find
-
Unlock recipe
-
ezlib.tech.find.unlock_recipe(recipe)
- Returns tech name(s) as table or string which contains recipe
-
Unlock modifer
-
ezlib.tech.find.unlock_modifer(type, modifier)
- Returns tech name(s) as table or string which contains effect type
- modifier is optional filter and can be any number
-
Get
-
List
- ezlib.tech.get.list(value)
- More is here
- Returns all technology list or string
- Value can be table only in tech format uses as filter