-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from jpanther/mod-support
Add third party mod support
- Loading branch information
Showing
78 changed files
with
1,066 additions
and
911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
-- data-final-fixes.lua | ||
|
||
require("prototypes.style") | ||
require("prototypes.entity.sign-icons") | ||
require("prototypes.style.gui") | ||
|
||
require("prototypes.entity.signs-icons") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- data-updates.lua | ||
|
||
require("prototypes.third-party.alien-biomes") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
for index, force in pairs(game.forces) do | ||
|
||
force.reset_recipes() | ||
force.reset_technologies() | ||
|
||
local tech = force.technologies | ||
local rec = force.recipes | ||
|
||
if settings.startup["dectorio-landscaping"].value then | ||
if tech["dect-landscaping"].researched and data.raw["tree"]["coral-lava-01"] then | ||
alien_biomes = { | ||
"grass-red","grass-orange","grass-yellow","grass-yellow-fade","grass-dry","grass-medium","grass","grass-blue-fade","grass-blue","grass-purple-fade","grass-purple", | ||
"dirt-red","dirt-brown","dirt-tan","dirt","dirt-dull","dirt-grey","dirt-red-dark","dirt-brown-dark","dirt-tan-dark","dirt-dark","dirt-dull-dark","dirt-grey-dark", | ||
"sand-red","sand-orange","sand-gold","sand","sand-dull","sand-grey","sand-red-dark","sand-orange-dark","sand-gold-dark","sand-dark","sand-dull-dark","sand-grey-dark", | ||
"snow","volcanic-cool","volcanic-medium","volcanic-hot" | ||
} | ||
for _, tile in pairs(alien_biomes) do | ||
rec["dect-alien-biomes-"..tile].enabled = true | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- entity/lamp | ||
|
||
-- Add glowing coloured lamp | ||
local lamp = util.table.deepcopy(data.raw["lamp"]["small-lamp"]) | ||
lamp.name = "dect-small-lamp-glow" | ||
lamp.icon = "__Dectorio__/graphics/icons/small-lamp-glow.png" | ||
lamp.minable.result = "dect-small-lamp-glow" | ||
lamp.glow_size = 25 | ||
lamp.glow_color_intensity = 0.8 | ||
lamp.glow_render_mode = "multiplicative" | ||
lamp.light_when_colored.size = 0 | ||
lamp.light_when_colored.intensity = 0 | ||
data:extend({lamp}) |
2 changes: 1 addition & 1 deletion
2
prototypes/entity/sign-icons.lua → prototypes/entity/signs-icons.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-- sign-icons.lua | ||
-- entity/sign-icons | ||
|
||
if DECT.ENABLED["signs"] then | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
-- entity/signs | ||
|
||
if DECT.ENABLED["signs"] then | ||
|
||
data:extend({ | ||
{ | ||
type = "simple-entity", | ||
name = "dect-sign-wood", | ||
icon = "__Dectorio__/graphics/icons/sign-wood.png", | ||
flags = {"placeable-neutral"}, | ||
render_layer = "object", | ||
minable = {mining_time = 1, result = "dect-sign-wood", count = 1}, | ||
max_health = 40, | ||
collision_box = {{-0.15, -0.15}, {0.15, 0.15}}, | ||
selection_box = {{-0.5, -0.5}, {0.5, 0.5}}, | ||
drawing_box = {{-0.5, -1.6}, {0.5, 0.5}}, | ||
repair_sound = { filename = "__base__/sound/manual-repair-simple.ogg" }, | ||
mined_sound = { filename = "__Dectorio__/sound/deconstruct-wood.ogg" }, | ||
vehicle_impact_sound = {filename = "__base__/sound/car-wood-impact.ogg", volume = 1.0}, | ||
pictures = { | ||
{ | ||
filename = "__Dectorio__/graphics/entity/sign-wood/sign-wood.png", | ||
priority = "extra-high", | ||
width = 85, | ||
height = 65, | ||
shift = {0.8, -0.45} | ||
} | ||
} | ||
}, | ||
{ | ||
type = "simple-entity", | ||
name = "dect-sign-steel", | ||
icon = "__Dectorio__/graphics/icons/sign-steel.png", | ||
flags = {"placeable-neutral"}, | ||
render_layer = "object", | ||
minable = {mining_time = 1, result = "dect-sign-steel", count = 1}, | ||
max_health = 40, | ||
collision_box = {{-0.15, -0.15}, {0.15, 0.15}}, | ||
selection_box = {{-0.5, -0.5}, {0.5, 0.5}}, | ||
drawing_box = {{-0.5, -1.6}, {0.5, 0.5}}, | ||
repair_sound = { filename = "__base__/sound/manual-repair-simple.ogg" }, | ||
mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" }, | ||
vehicle_impact_sound = {filename = "__base__/sound/car-metal-impact.ogg", volume = 1.0}, | ||
pictures = { | ||
{ | ||
filename = "__Dectorio__/graphics/entity/sign-steel/sign-steel.png", | ||
priority = "extra-high", | ||
width = 85, | ||
height = 65, | ||
shift = {0.77, -0.45} | ||
} | ||
} | ||
} | ||
}) | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.