Skip to content

Commit

Permalink
Update to 0.17.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed Oct 27, 2024
1 parent 7cf187b commit 90a3426
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2018-2023 ZwerOxotnik <[email protected]>
Copyright (C) 2018-2024 ZwerOxotnik <[email protected]>

This project is licensed under the European Union Public License (EUPL)
The license is available in the 23 official languages of the EU. The English version is included here.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ FAQ
If you want to download from this source, then use commands below (requires [git](https://git-scm.com/downloads)).

```bash
git clone --recurse-submodules -j8 https://github.com/ZwerOxotnik/zk-lib
git clone --recurse-submodules -j8 https://github.com/ZwerOxotnik/zk-lib zk-lib
cd zk-lib
```

Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.17.5
Date: 28. 10. 2024
Scripting:
- Fixed collision layers
---------------------------------------------------------------------------------------------------
Version: 0.17.4
Date: 27. 10. 2024
Scripting:
Expand Down
10 changes: 5 additions & 5 deletions data-api/fakes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ fakes.create_fake_walkable_tile = function(name)
local new_tile = util.table.deepcopy(tiles[fake_tile_name])
new_tile.name = fake_tile_name
new_tile.collision_mask = {
"water-tile",
"ground-tile",
"item-layer",
"resource-layer",
"object-layer"
"water_tile",
"ground_tile",
"item",
"resource",
"object"
}
new_tile.autoplace = nil
new_tile.localised_name = {"", {"tile-name." .. name}, " [fake-W]"}
Expand Down
11 changes: 6 additions & 5 deletions experimental/lazyAPI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,12 @@ for _, sound_name in pairs(lazyAPI.all_common_sound_fields) do
lazyAPI.all_sound_fields[#lazyAPI.all_sound_fields+1] = sound_name
end

-- TODO: update for Factorio 2.0!!!
-- TODO: add more functions to compare these values etc.
-- https://wiki.factorio.com/Types/RenderLayer
-- https://lua-api.factorio.com/latest/types/RenderLayer.html
-- The order from lowest to highest:
lazyAPI.RenderLayers = {
"water-tile", "ground-tile", "tile-transition", "decals",
"water_tile", "ground_tile", "tile-transition", "decals",
"lower-radius-visualization", "radius-visualization",
"transport-belt-integration", "resource", "building-smoke",
"decorative", "ground-patch", "ground-patch-higher",
Expand Down Expand Up @@ -767,9 +768,9 @@ lazyAPI.all_SpriteVariations_fields = {

-- https://wiki.factorio.com/Types/CollisionMask
lazyAPI.collision_mask_layers = {
"ground-tile", "water-tile", "resource-layer", "doodad-layer",
"floor-layer", "rail-layer", "transport-belt-layer", "item-layer",
"ghost-layer", "object-layer", "player-layer", "train-layer",
"ground_tile", "water_tile", "resource", "doodad",
"floor", "rail", "transport_belt", "item",
"ghost", "object", "player", "train",
}
for i=13, 55 do
table.insert(lazyAPI.collision_mask_layers, "layer-" .. i)
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.17.4",
"version": "0.17.5",
"factorio_version": "2.0",
"title": "ZwerOxotnik's extendable mod with 8 addons",
"author": "ZwerOxotnik",
Expand Down
2 changes: 1 addition & 1 deletion static-libs

0 comments on commit 90a3426

Please sign in to comment.