Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Feb 8, 2024
1 parent 646f085 commit 2a4014a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
15 changes: 12 additions & 3 deletions bobpower/prototypes/entity/nuclear.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ if settings.startup["bobmods-power-nuclear"].value == true then
data.raw.reactor["nuclear-reactor"].fast_replaceable_group = "nuclear-reactor"
data.raw.reactor["nuclear-reactor"].use_fuel_glow_color = true
data.raw.reactor["nuclear-reactor"].default_fuel_glow_color = { 0, 1, 0, 1 } -- color used as working_light_picture tint for fuels that don't have glow color defined
data.raw.reactor["nuclear-reactor"].localised_description = { "", { "entity-description.nuclear-reactor" }, { "entity-description.reactor-max-temperature", 1000 } }
data.raw.reactor["nuclear-reactor"].localised_description =
{ "", { "entity-description.nuclear-reactor" }, { "entity-description.reactor-max-temperature", 1000 } }
data.raw.reactor["nuclear-reactor"].working_light_picture = {
filename = "__bobpower__/graphics/nuclear-reactor/reactor-lights.png",
width = 160,
Expand All @@ -27,7 +28,11 @@ if settings.startup["bobmods-power-nuclear"].value == true then
data.raw.reactor["nuclear-reactor"],
{
name = "nuclear-reactor-2",
localised_description = { "", { "entity-description.nuclear-reactor" }, { "entity-description.reactor-max-temperature", 1250 } },
localised_description = {
"",
{ "entity-description.nuclear-reactor" },
{ "entity-description.reactor-max-temperature", 1250 },
},
icon = "__base__/graphics/icons/nuclear-reactor.png",
icon_size = 64,
icon_mipmaps = 4,
Expand Down Expand Up @@ -92,7 +97,11 @@ if settings.startup["bobmods-power-nuclear"].value == true then
data.raw.reactor["nuclear-reactor"],
{
name = "nuclear-reactor-3",
localised_description = { "", { "entity-description.nuclear-reactor" }, { "entity-description.reactor-max-temperature", 1500 } },
localised_description = {
"",
{ "entity-description.nuclear-reactor" },
{ "entity-description.reactor-max-temperature", 1500 },
},
icon = "__base__/graphics/icons/nuclear-reactor.png",
icon_size = 64,
icon_mipmaps = 4,
Expand Down
11 changes: 7 additions & 4 deletions bobrevamp/data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ then
data.raw.item["nuclear-reactor"].localised_name = { "entity-name.uranium-reactor" }
data.raw.reactor["nuclear-reactor"].localised_name = { "entity-name.uranium-reactor" }
data.raw["fuel-category"]["nuclear"].localised_name = { "fuel-category-name.uranium" }
data.raw.reactor["nuclear-reactor"].localised_description = { "", { "entity-description.uranium-reactor" }, { "entity-description.reactor-max-temperature", 1000 } }

data.raw.reactor["nuclear-reactor"].localised_description =
{ "", { "entity-description.uranium-reactor" }, { "entity-description.reactor-max-temperature", 1000 } }

data:extend({
{
type = "fuel-category",
Expand All @@ -185,7 +186,8 @@ then
})
data.raw.reactor["nuclear-reactor-2"].energy_source.fuel_category = "thorium"
data.raw.reactor["nuclear-reactor-2"].localised_name = { "entity-name.thorium-reactor" }
data.raw.reactor["nuclear-reactor-2"].localised_description = { "", { "entity-description.thorium-reactor" }, { "entity-description.reactor-max-temperature", 1250 } }
data.raw.reactor["nuclear-reactor-2"].localised_description =
{ "", { "entity-description.thorium-reactor" }, { "entity-description.reactor-max-temperature", 1250 } }
data.raw.reactor["nuclear-reactor-2"].default_fuel_glow_color = { r = 1.0, g = 1.0, b = 0.0 }
data.raw.reactor["nuclear-reactor-2"].icon = "__bobrevamp__/graphics/icons/thorium-reactor.png"
data.raw.reactor["nuclear-reactor-2"].icon_size = 32
Expand Down Expand Up @@ -234,7 +236,8 @@ then
})
data.raw.reactor["nuclear-reactor-3"].energy_source.fuel_category = "deuterium"
data.raw.reactor["nuclear-reactor-3"].localised_name = { "entity-name.deuterium-reactor" }
data.raw.reactor["nuclear-reactor-3"].localised_description = { "", { "entity-description.deuterium-reactor" }, { "entity-description.reactor-max-temperature", 1500 } }
data.raw.reactor["nuclear-reactor-3"].localised_description =
{ "", { "entity-description.deuterium-reactor" }, { "entity-description.reactor-max-temperature", 1500 } }
data.raw.reactor["nuclear-reactor-3"].icon_size = 32
data.raw.reactor["nuclear-reactor-3"].icon_mipmaps = nil

Expand Down

0 comments on commit 2a4014a

Please sign in to comment.