Skip to content

Commit

Permalink
locale: Edited the locale for the salt reactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Dec 14, 2024
1 parent 615efaf commit 63e71f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 1 addition & 5 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,11 @@ for _, quality in pairs(data.raw.quality) do
if quality.hidden then goto continue end
local quality_name = quality.localised_name or {"quality-name." .. quality.name}

local color = maraxsis.color_combine(quality.color, {1, 1, 1}, 0.7)
local r, g, b = color.r or color[1], color.g or color[2], color.b or color[3]
local r, g, b = tostring(r), tostring(g), tostring(b)

local quality_level = quality.level
if quality_level >= 5 and not mods["infinite-quality-tiers"] then quality_level = quality_level - 1 end
local mj = 10 * (2 ^ quality_level)

table.insert(electricity_description, {"recipe-description.maraxsis-electricity-quality-description", quality_name, tostring(mj), r, g, b})
table.insert(electricity_description, {"recipe-description.maraxsis-electricity-quality-description", quality.name, quality_name, tostring(mj)})
table.insert(electricity_description, "\n")
::continue::
end
Expand Down
5 changes: 3 additions & 2 deletions locale/en/locale.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ maraxsis-project-seadragon=Use buoyancy to your advantage. Allows to build rocke
maraxsis-abyssal-diving-gear=Invent advanced equipment to generate oxygen and survive the pressure of [planet=maraxsis].
ducts=Design enormous pipeline systems with huge extent length and underground distance. Tungsten ducts can be placed on [tile=water] and [tile=lava]. The [entity=maraxsis-trench-duct] can transfer fluids directly to the [planet=maraxsis-trench].
maraxsis-liquid-atmosphere=Develop cryogenic freezing of [fluid=maraxsis-atmosphere] on [planet=aquilo]. Liquid atmosphere is one hundred times denser than the gaseous counterpart. Barrelling and unbarrelling this fluid must be done inside a [entity=cryogenic-plant].
[entity-name]
maraxsis-diesel-submarine=Diesel submarine
constructron=Construction submarine
Expand Down Expand Up @@ -83,7 +84,7 @@ maraxsis-hydro-plant=Multi-purpose fluid handling unit built to handle extreme p
maraxsis-pressure-dome=Enormous structure that protects your machines from the pressure of the deep sea. Requires constant [fluid=maraxsis-atmosphere] atmosphere to provide positive pressure. This fluid can be created for free inside a [entity=chemical-plant] on any planet except [planet=maraxsis].
maraxsis-pressure-dome-collision=Enormous structure that protects your machines from the pressure of the deep sea. Requires constant [fluid=maraxsis-atmosphere] atmosphere to provide positive pressure.\nThis can only be mined if there are no machines inside the dome.
maraxsis-sonar=Uses sound waves to detect objects underwater.
maraxsis-salt-reactor=Advanced nuclear reactor that generates power directly from salt. Higher quality salt generates more power.\n__1__
maraxsis-salt-reactor=Advanced nuclear reactor that generates power directly from salt.\nHigher quality salt generates more power.\n__1__
maraxsis-coral=An underwater biome with a high biodiversity of marine life.
maraxsis-fishing-tower=Automated fishery that attracts and catches fish.\nRequires [item=maraxsis-fish-food].\nRequires [tile=lowland-cream-red-underwater].
service_station=Consumes [fluid=maraxsis-atmosphere] to provide positive pressure to the dome. See Factoriopedia for the atmosphere consumption rate. When powered, functions as an underwater [entity=roboport] and [entity=radar].\nProvides construction materials to [entity=constructron].
Expand Down Expand Up @@ -171,7 +172,7 @@ maraxsis-sublimation=Sublimation

[recipe-description]
maraxsis-electricity=Generates more energy based on the quality of salt.\n__1__
maraxsis-electricity-quality-description=[font=default-bold][color=__3__,__4__,__5__]__1__ salt:[/color][/font] __2__.0 MJ
maraxsis-electricity-quality-description=[img=quality.__1__] __2__ salt: [font=default-bold]__3__.0 MJ[/font]

[gui-car]
trunk=Storage
Expand Down

0 comments on commit 63e71f8

Please sign in to comment.