Skip to content

Commit

Permalink
Move Factorissimo exceptions into third-party config
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Mar 25, 2019
1 parent e94e3de commit b1a4bc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ DECT.CONFIG.BASE_WATER_TILES = {"water", "deepwater", "water-green", "deepwater-
DECT.CONFIG.BASE_TREES = {"tree-01", "tree-02", "tree-03", "tree-04", "tree-05", "tree-06", "tree-07", "tree-08", "tree-09", "dead-dry-hairy-tree", "dead-grey-trunk", "dead-tree-desert", "dry-hairy-tree", "dry-tree"}
DECT.CONFIG.BASE_ROCKS = {"rock-huge", "rock-big", "sand-rock-big"}
DECT.CONFIG.SIGN_CATEGORIES = {"item", "fluid", "tool", "ammo", "armor", "capsule", "gun", "module"}
DECT.CONFIG.SIGN_BLACKLIST = {"barrel", "loader", "simple%-entity", "player%-port", "computer", "coin", "small%-plane", "railgun", "vehicle%-machine%-gun", "tank%-machine%-gun", "factory%-1%-", "factory%-2%-", "factory%-3%-", "signpost", "dect%-signal%-", "infinity%-chest", "infinity%-pipe", "heat%-interface", "pollution", "escape%-pod%-power", "dummy%-steel%-axe", "atlas", "dect%-sign", "dect%-base"}
DECT.CONFIG.SIGN_BLACKLIST = {"barrel", "loader", "simple%-entity", "player%-port", "computer", "coin", "small%-plane", "railgun", "vehicle%-machine%-gun", "tank%-machine%-gun", "signpost", "dect%-signal%-", "infinity%-chest", "infinity%-pipe", "heat%-interface", "pollution", "escape%-pod%-power", "dummy%-steel%-axe", "atlas", "dect%-sign", "dect%-base"}

DECT.INCOMPATIBLE = {}
DECT.INCOMPATIBLE.MODS = {
Expand Down
11 changes: 11 additions & 0 deletions prototypes/third-party/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ if mods["alien-biomes"] then
table.insert(DECT.CONFIG.SIGN_BLACKLIST, "dect%-alien%-biomes")
end

-- FACTORISSIMO 2
-- ---------------------------------
if mods["Factorissimo2"] then
-- Reduces some sign icon repetition
log("Factorissimo 2 detected, blacklisting sign icons.")
local f2_blacklist = {"factory%-1%-", "factory%-2%-", "factory%-3%-"}
for _, item in pairs(f2_blacklist) do
table.insert(DECT.CONFIG.SIGN_BLACKLIST, item)
end
end

-- YUOKI INDUSTRIES
-- ---------------------------------
if mods["Yuoki"] or mods["yi_railway"] then
Expand Down

0 comments on commit b1a4bc2

Please sign in to comment.