Skip to content

Commit

Permalink
Update to 0.13.14
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed Oct 26, 2023
1 parent f9206aa commit ba1dab5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 1 addition & 6 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
11 changes: 10 additions & 1 deletion experimental/lazyAPI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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<string <string, string[]>>
lazyAPI.tags = {}
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion static-libs

0 comments on commit ba1dab5

Please sign in to comment.