Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 16, 2024
1 parent a8d2cbf commit 456a5f8
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 13 deletions.
12 changes: 12 additions & 0 deletions mods_2.0/047_advanced-centrifuge/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.0
Date: 2024-12-16
Changes:
- The technology icon now shows a green working glow.
- The advanced centrifuge now supports circuit wires.
Compatibility:
- Added a frozen sprite. (200kw heating energy, twice that of the normal centrifuge)
- If space age is installed, require space science to unlock the technology as well.
Info:
- The new sprites and the circuit connection definitions were donated by user S6X here:
- https://mods.factorio.com/mod/advanced-centrifuge/discussion/675f51cabdb86728d9d16d8c
---------------------------------------------------------------------------------------------------
Version: 2.0.1
Date: 2024-12-15
Changes:
Expand Down
31 changes: 30 additions & 1 deletion mods_2.0/047_advanced-centrifuge/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,36 @@ require("prototypes/items/buildings")
require("prototypes/recipes/buildings")
require("prototypes/technologies/buildings")

if mods["space-exploration"] then
local remove_green_tint_from_icons = mods["space-exploration"] ~= nil
-- remove_green_tint_from_icons = true

if remove_green_tint_from_icons then
data.raw["item" ]["k11-advanced-centrifuge"].icon = "__advanced-centrifuge__/graphics/advanced-centrifuge/advanced-centrifuge-icon-base.png"
data.raw["assembling-machine"]["k11-advanced-centrifuge"].icon = "__advanced-centrifuge__/graphics/advanced-centrifuge/advanced-centrifuge-icon-base.png"
data.raw["technology" ]["k11-advanced-centrifuge"].icons = {
{
icon = util.empty_sprite().filename,
icon_size = 1,
},
{
icon = "__advanced-centrifuge__/graphics/advanced-centrifuge/advanced-centrifuge-tech-icon-base.png",
icon_size = 256,
shift = {0, -10},
}
}
end

if mods["space-age"] then
data.raw["assembling-machine"]["k11-advanced-centrifuge"].heating_energy = "200kW"
data.raw["assembling-machine"]["k11-advanced-centrifuge"].graphics_set.reset_animation_when_frozen = true
data.raw["assembling-machine"]["k11-advanced-centrifuge"].graphics_set.frozen_patch = {
filename = "__advanced-centrifuge__/graphics/advanced-centrifuge/advanced-centrifuge-frozen.png",
priority = "high",
width = 450,
height = 550,
shift = { 0, -0.9 },
scale = 0.5
}

table.insert(data.raw["technology"]["k11-advanced-centrifuge"].unit.ingredients, {"space-science-pack", 1})
end
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.
3 changes: 2 additions & 1 deletion mods_2.0/047_advanced-centrifuge/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "advanced-centrifuge",
"version": "2.0.1",
"version": "2.1.0",
"title": "Advanced Centrifuge",
"description": "An advanced centrifuge, to fill in the gap of advanced buildings for Krastorio 2",
"author": "kiratu11",
Expand All @@ -9,6 +9,7 @@
"factorio_version": "2.0",
"dependencies": [
"base",
"? space-age",
"? Krastorio2",
"? space-exploration"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ data:extend({
collision_box = { { -3.25, -3.25 }, { 3.25, 3.25 } },
selection_box = { { -3.5, -3.5 }, { 3.5, 3.5 } },
fast_replaceable_group = "assembling-machine",
circuit_wire_max_distance = data.raw["assembling-machine"]["centrifuge"].circuit_wire_max_distance,
circuit_connector = circuit_connector_definitions.create_vector(universal_connector_template, {
{ variation = 26, main_offset = util.by_pixel(0, -20.5), shadow_offset = util.by_pixel(0, -20.5), show_shadow = true },
{ variation = 26, main_offset = util.by_pixel(0, -20.5), shadow_offset = util.by_pixel(0, -20.5), show_shadow = true },
{ variation = 26, main_offset = util.by_pixel(0, -20.5), shadow_offset = util.by_pixel(0, -20.5), show_shadow = true },
{ variation = 26, main_offset = util.by_pixel(0, -20.5), shadow_offset = util.by_pixel(0, -20.5), show_shadow = true },
}),

graphics_set = {
animation = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,10 @@ data:extend({
{
type = "technology",
name = "k11-advanced-centrifuge",
icons = {
{
icon = util.empty_sprite().filename,
icon_size = 1,
},
{
icon = "__advanced-centrifuge__/graphics/advanced-centrifuge/advanced-centrifuge-tech-icon.png",
icon_size = 256,
shift = {0, -10},
}
},
icons = {{
icon = "__advanced-centrifuge__/graphics/advanced-centrifuge/advanced-centrifuge-tech-icon.png",
icon_size = 256,
}},
effects = {
{
type = "unlock-recipe",
Expand Down

0 comments on commit 456a5f8

Please sign in to comment.