-
Notifications
You must be signed in to change notification settings - Fork 66
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 #360 from Arch666Angel/dev
Release bugfix patch 2 (1.0 release)
- Loading branch information
Showing
233 changed files
with
9,143 additions
and
1,138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--------------------------------------------------------------------------------------------------- | ||
Version: 0.0.1 | ||
Date: 20.08.2020 | ||
Features: | ||
- Merges angels mobility mods: | ||
- Angels Crawler train v0.1.6 | ||
- Angels Petro train v0.5.10 | ||
- Angels Smelting train v0.3.9 |
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,69 @@ | ||
local sourceEntityTypes = { | ||
["train-stop"] = true, | ||
["locomotive"] = true, | ||
["cargo-wagon"] = true, | ||
["fluid-wagon"] = true | ||
} | ||
|
||
local destinationEntityTypes = { | ||
["cargo-wagon"] = false, | ||
["fluid-wagon"] = true | ||
} | ||
|
||
local ptier_amount = settings.startup["angels-petrotrain-tier-amount"].value | ||
local stier_amount = settings.startup["angels-smeltingtrain-tier-amount"].value | ||
local wagonsToCopy = { | ||
["petro-tank1"] = ptier_amount >= 1, | ||
["petro-tank1-2"] = ptier_amount >= 2, | ||
["petro-tank1-3"] = ptier_amount >= 3, | ||
["petro-tank1-4"] = ptier_amount >= 4, | ||
["petro-tank1-5"] = ptier_amount >= 5, | ||
["petro-tank2"] = ptier_amount >= 1, | ||
["petro-tank2-2"] = ptier_amount >= 2, | ||
["petro-tank2-3"] = ptier_amount >= 3, | ||
["petro-tank2-4"] = ptier_amount >= 4, | ||
["petro-tank2-5"] = ptier_amount >= 5, | ||
["smelting-wagon-1"] = stier_amount >= 1, | ||
["smelting-wagon-1-2"] = stier_amount >= 2, | ||
["smelting-wagon-1-3"] = stier_amount >= 3, | ||
["smelting-wagon-1-4"] = stier_amount >= 4, | ||
["smelting-wagon-1-5"] = stier_amount >= 5 | ||
} | ||
|
||
local on_entity_settings_pasted = function(event) | ||
local source = event.source | ||
local destination = event.destination | ||
|
||
if | ||
(wagonsToCopy[source.name] or wagonsToCopy[destination.name]) and -- correct train to do behaviour for | ||
(sourceEntityTypes[source.type] and destinationEntityTypes[destination.type] or -- paste to a cargo or fluid wagon | ||
sourceEntityTypes[destination.type] and destinationEntityTypes[source.type]) | ||
then -- copy from a cargo or fluid wagon | ||
local source_color = source.color or source.prototype.color | ||
if source_color then | ||
local destination_color = destination.color or destination.prototype.color | ||
destination.color = { | ||
r = source_color.r, | ||
g = source_color.g, | ||
b = source_color.b, | ||
a = destination_color and destination_color.a or 1 -- keep alpha color | ||
} | ||
end | ||
end | ||
end | ||
|
||
local init_events = function() | ||
script.on_event(defines.events.on_entity_settings_pasted, on_entity_settings_pasted) | ||
end | ||
|
||
script.on_load( | ||
function() | ||
init_events() | ||
end | ||
) | ||
|
||
script.on_init( | ||
function() | ||
init_events() | ||
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,46 @@ | ||
local wagons = { | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 1 and "petro-tank1" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 2 and "petro-tank1-2" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 3 and "petro-tank1-3" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 4 and "petro-tank1-4" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 5 and "petro-tank1-5" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 1 and "petro-tank2" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 2 and "petro-tank2-2" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 3 and "petro-tank2-3" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 4 and "petro-tank2-4" or nil, | ||
angelsmods.addons.mobility.petrotrain.tier_amount >= 5 and "petro-tank2-5" or nil, | ||
angelsmods.addons.mobility.smeltingtrain.tier_amount >= 1 and "smelting-wagon-1" or nil, | ||
angelsmods.addons.mobility.smeltingtrain.tier_amount >= 2 and "smelting-wagon-1-2" or nil, | ||
angelsmods.addons.mobility.smeltingtrain.tier_amount >= 3 and "smelting-wagon-1-3" or nil, | ||
angelsmods.addons.mobility.smeltingtrain.tier_amount >= 4 and "smelting-wagon-1-4" or nil, | ||
angelsmods.addons.mobility.smeltingtrain.tier_amount >= 5 and "smelting-wagon-1-5" or nil | ||
} | ||
|
||
for _, prototype_type in pairs { | ||
"train-stop", | ||
"locomotive", | ||
"cargo-wagon" | ||
} do | ||
-- add wagon to other prototypes | ||
for _, prototype in pairs(data.raw[prototype_type]) do | ||
local additional_pastable_entities = prototype.additional_pastable_entities or {} | ||
for _, wagon_name in pairs(wagons) do | ||
table.insert(additional_pastable_entities, wagon_name) | ||
end | ||
prototype.additional_pastable_entities = additional_pastable_entities | ||
end | ||
--fluid wagon updates | ||
local wagon_prototypes = {data.raw["fluid-wagon"],data.raw["cargo-wagon"]} | ||
-- add other prototypes to the wagons | ||
for _, wagon_name in pairs(wagons) do | ||
for _, wagon_proto in pairs(wagon_prototypes) do | ||
if wagon_proto[wagon_name] then | ||
local additional_pastable_entities = wagon_proto[wagon_name].additional_pastable_entities or {} | ||
for prototype_name, _ in pairs(data.raw[prototype_type]) do | ||
table.insert(additional_pastable_entities, prototype_name) | ||
end | ||
wagon_proto[wagon_name].additional_pastable_entities = additional_pastable_entities | ||
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,4 @@ | ||
require("prototypes.recipes.recipe-updates") | ||
require("prototypes.technology.technology-components-updates") | ||
require("prototypes.technology.technology-tech-updates") | ||
require("prototypes.equipment-updates") |
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,49 @@ | ||
angelsmods = angelsmods or {} | ||
angelsmods.addons = angelsmods.addons or {} | ||
angelsmods.addons.mobility = angelsmods.addons.mobility or {} | ||
angelsmods.addons.mobility.number_tint = {r = 0.95, g = 0.65, b = 0.25, a = 1} | ||
|
||
angelsmods.addons.mobility.crawlertrain = angelsmods.addons.mobility.crawlertrain or {} | ||
angelsmods.addons.mobility.crawlertrain.enabled = settings.startup["angels-crawlertrain-tier-amount"].value >= 1 and true or false | ||
angelsmods.addons.mobility.crawlertrain.tier_amount = settings.startup["angels-crawlertrain-tier-amount"].value | ||
angelsmods.addons.mobility.crawlertrain.number_tint = {r = 0.95, g = 0.65, b = 0.25, a = 1} | ||
|
||
angelsmods.addons.mobility.petrotrain = angelsmods.addons.mobility.petrotrain or {} | ||
angelsmods.addons.mobility.petrotrain.enabled = settings.startup["angels-petrotrain-tier-amount"].value >= 1 and true or false | ||
angelsmods.addons.mobility.petrotrain.tier_amount = settings.startup["angels-petrotrain-tier-amount"].value | ||
angelsmods.addons.mobility.petrotrain.number_tint = {r = 0.92, g = 0.07, b = 0, a = 0.5} | ||
|
||
angelsmods.addons.mobility.smeltingtrain = angelsmods.addons.mobility.smeltingtrain or {} | ||
angelsmods.addons.mobility.smeltingtrain.enabled = settings.startup["angels-smeltingtrain-tier-amount"].value >= 1 and true or false | ||
angelsmods.addons.mobility.smeltingtrain.tier_amount = settings.startup["angels-smeltingtrain-tier-amount"].value | ||
angelsmods.addons.mobility.smeltingtrain.number_tint = {r = 1, g = 0.38, b = 0, a = 1} | ||
|
||
|
||
|
||
tech_unlocks = {} | ||
|
||
require("prototypes.categories") | ||
--CRAWLER | ||
require("prototypes.entities.crawler-locomotive") | ||
require("prototypes.entities.crawler-locomotive-wagon") | ||
require("prototypes.entities.crawler-wagon") | ||
require("prototypes.entities.crawler-bot-wagon") | ||
--PETRO | ||
require("prototypes.entities.petro-locomotive") | ||
require("prototypes.entities.petro-tank1") | ||
require("prototypes.entities.petro-tank2") | ||
--SMELTING | ||
require("prototypes.entities.smelting-locomotive") | ||
require("prototypes.entities.smelting-locomotive-tender") | ||
require("prototypes.entities.smelting-wagon") | ||
|
||
require("prototypes.recipes.recipes") | ||
|
||
--CRAWLER | ||
require("prototypes.technology.crawler-technology") | ||
--PETRO | ||
require("prototypes.technology.petro-technology") | ||
--SMELTING | ||
require("prototypes.technology.smelting-technology") | ||
|
||
tech_unlocks = nil |
Binary file added
BIN
+3.11 MB
angelsaddons-mobility/graphics/entity/crawler-train/crawler-bot-wagon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.69 MB
angelsaddons-mobility/graphics/entity/crawler-train/crawler-loco-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.69 MB
angelsaddons-mobility/graphics/entity/crawler-train/crawler-loco-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.89 MB
angelsaddons-mobility/graphics/entity/crawler-train/crawler-loco-wagon-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.9 MB
angelsaddons-mobility/graphics/entity/crawler-train/crawler-loco-wagon-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.93 MB
angelsaddons-mobility/graphics/entity/crawler-train/crawler-wagon.png
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.
Binary file added
BIN
+1.34 MB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-1-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+466 KB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-1-tint.png
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.
Binary file added
BIN
+2.87 MB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-1.png.1
Binary file not shown.
Binary file added
BIN
+2.84 MB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-2-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+475 KB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-2-tint.png
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.
Binary file added
BIN
+2.84 MB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-2.png.1
Binary file not shown.
Binary file added
BIN
+383 KB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-shadow-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+383 KB
angelsaddons-mobility/graphics/entity/petro-loco1/petro-loco1-shadow-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+613 KB
angelsaddons-mobility/graphics/entity/petro-tank1/petro-tank1-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+769 KB
angelsaddons-mobility/graphics/entity/petro-tank1/petro-tank1-tint.png
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.
Binary file not shown.
Binary file added
BIN
+2.34 MB
angelsaddons-mobility/graphics/entity/petro-tank2/petro-tank2-orig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+427 KB
angelsaddons-mobility/graphics/entity/petro-tank2/petro-tank2-shadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+471 KB
angelsaddons-mobility/graphics/entity/petro-tank2/petro-tank2-tint-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+525 KB
angelsaddons-mobility/graphics/entity/petro-tank2/petro-tank2-tint-2.png.1
Binary file not shown.
Binary file added
BIN
+743 KB
angelsaddons-mobility/graphics/entity/petro-tank2/petro-tank2-tint.png
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.
Binary file added
BIN
+961 KB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-1-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.56 MB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-1-tint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.72 MB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-1.png
Oops, something went wrong.
Binary file added
BIN
+955 KB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-2-base.png
Oops, something went wrong.
Binary file added
BIN
+1.55 MB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-2-tint.png
Oops, something went wrong.
Binary file added
BIN
+2.71 MB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-2.png
Oops, something went wrong.
Binary file added
BIN
+803 KB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-shadow-1.png
Oops, something went wrong.
Binary file added
BIN
+769 KB
angelsaddons-mobility/graphics/entity/smelting-loco1/smelting-loco1-shadow-2.png
Oops, something went wrong.
Binary file added
BIN
+1000 KB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-1-base.png
Oops, something went wrong.
Binary file added
BIN
+1.62 MB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-1-tint.png
Oops, something went wrong.
Binary file added
BIN
+2.82 MB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-1.png
Oops, something went wrong.
Binary file added
BIN
+986 KB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-2-base.png
Oops, something went wrong.
Binary file added
BIN
+1.61 MB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-2-tint.png
Oops, something went wrong.
Binary file added
BIN
+2.81 MB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-2.png
Oops, something went wrong.
Binary file added
BIN
+789 KB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-shadow-1.png
Oops, something went wrong.
Binary file added
BIN
+776 KB
angelsaddons-mobility/graphics/entity/smelting-loco2/smelting-loco2-shadow-2.png
Oops, something went wrong.
Binary file added
BIN
+1000 KB
angelsaddons-mobility/graphics/entity/smelting-wagon1/smelting-wagon1-1-base.png
Oops, something went wrong.
Binary file added
BIN
+1.6 MB
angelsaddons-mobility/graphics/entity/smelting-wagon1/smelting-wagon1-1-tint.png
Oops, something went wrong.
Binary file added
BIN
+2.84 MB
angelsaddons-mobility/graphics/entity/smelting-wagon1/smelting-wagon1-1.png
Oops, something went wrong.
Binary file added
BIN
+73.1 KB
...bility/graphics/entity/smelting-wagon1/smelting-wagon1-door-horizontal-base.png
Oops, something went wrong.
Binary file added
BIN
+130 KB
...bility/graphics/entity/smelting-wagon1/smelting-wagon1-door-horizontal-tint.png
Oops, something went wrong.
Binary file added
BIN
+230 KB
...ns-mobility/graphics/entity/smelting-wagon1/smelting-wagon1-door-horizontal.png
Oops, something went wrong.
Binary file added
BIN
+92.5 KB
...mobility/graphics/entity/smelting-wagon1/smelting-wagon1-door-vertical-base.png
Oops, something went wrong.
Binary file added
BIN
+150 KB
...mobility/graphics/entity/smelting-wagon1/smelting-wagon1-door-vertical-tint.png
Oops, something went wrong.
Binary file added
BIN
+260 KB
...dons-mobility/graphics/entity/smelting-wagon1/smelting-wagon1-door-vertical.png
Oops, something went wrong.
Binary file added
BIN
+987 KB
angelsaddons-mobility/graphics/entity/smelting-wagon1/smelting-wagon1-shadow-1.png
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "angelsaddons-mobility", | ||
"version": "0.0.1", | ||
"factorio_version": "1.0", | ||
"title": "Angel's Addons - Mass Transit", | ||
"author": "Arch666Angel, lovely_santa", | ||
"contact": "https://discord.gg/ff5p6KE", | ||
"homepage": "https://forums.factorio.com/viewforum.php?f=185", | ||
"description": "A combination mod of the various themed trains", | ||
"dependencies": [ | ||
"base >= 1.0.0", | ||
|
||
"? angelsindustries >= 0.4.5" | ||
] | ||
} |
Oops, something went wrong.