diff --git a/changelog.txt b/changelog.txt index b22a61f..a676bed 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.13.14 +Date: 26. 10. 2023 + Scripting: + - Updated /static-libs + - Added materials into easyAPI (not fully) +--------------------------------------------------------------------------------------------------- Version: 0.13.13 Date: 25. 10. 2023 Scripting: diff --git a/data-updates.lua b/data-updates.lua index 2ceca2b..4dace58 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -2,15 +2,10 @@ lazyAPI.get_stage() -- in order to get this stage internally --#region set tags -local materials = {"iron", "steel", "copper", "gold", "brass", "tin", "invar", - "chromium", "nickel", "carbon", "titanium", "lead", "bronze", "diamond", - "stone", "coal", "wood", "uranium", "ruby", "rubber", "sulphur", "electrum", - "plastic", "silicon", "charcoal", "coal", "glass" -} local add_tags = lazyAPI.base.add_tags local recipes = data.raw.recipe local items = data.raw.item -for _, v in pairs(materials) do +for _, v in pairs(lazyAPI.materials) do local name = v .. "-gear-wheel" add_tags(recipes[name], "gear") add_tags(items[name], "gear") diff --git a/experimental/lazyAPI.lua b/experimental/lazyAPI.lua index abf1eea..f09a3b3 100644 --- a/experimental/lazyAPI.lua +++ b/experimental/lazyAPI.lua @@ -18,7 +18,7 @@ The short name for this framework is "LAPI". ]]-- ---@class lazyAPI ---@module "__zk-lib__/experimental/lazyAPI" -local lazyAPI = {_SOURCE = "https://github.com/ZwerOxotnik/zk-lib", _VERSION = "0.0.1"} +local lazyAPI = {_SOURCE = "https://github.com/ZwerOxotnik/zk-lib", _VERSION = "0.0.2"} --- Perhaps, I should auto generate annotations like LAPIWrappedPrototype etc. @@ -420,6 +420,15 @@ lazyAPI.resource = {} lazyAPI["mining-drill"] = lazyAPI.mining_drill lazyAPI.character = {} +lazyAPI.materials = {"iron", "steel", "copper", "gold", "brass", "tin", "invar", + "chromium", "nickel", "carbon", "titanium", "lead", "bronze", "diamond", + "stone", "coal", "wood", "uranium", "ruby", "rubber", "sulphur", "electrum", + "plastic", "silicon", "charcoal", "coal", "glass", "manganese", "bismuth", + "silver", "platinum", "platinum", "palladium", "zirconium", "tungsten", + "silica", "quartz", "sand", "salt", "chlorine", "graphite", "aluminum", + "alumina", "zircon", "zink" +} + --- type = { name = { tags }} ---@type table> lazyAPI.tags = {} diff --git a/info.json b/info.json index ae01f52..861ecc6 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "zk-lib", - "version": "0.13.13", + "version": "0.13.14", "factorio_version": "1.1", "title": "ZwerOxotnik's extendable mod with 8 addons", "author": "ZwerOxotnik", diff --git a/static-libs b/static-libs index 954eb0b..a80147e 160000 --- a/static-libs +++ b/static-libs @@ -1 +1 @@ -Subproject commit 954eb0b69e0f2caf5fefaef97e7837207938da04 +Subproject commit a80147ee80db75f328cc4ac8b6da825f09151564