[2.0.34] Technology level not visualized when max_level=integer

Things that has been reported already before.
startupgaming
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Nov 03, 2024 8:50 pm
Contact:

[2.0.34] Technology level not visualized when max_level=integer

Post by startupgaming »

When setting TechnologyPrototype::max_level to an integer, while it does behave correctly in limiting the technology level to the given number and turning it green at such level, it doesn't show the level on the technology image as other infinite technologies.
I'd have expected it to show something along the lines of [3] 1-30 in the situation shown below
immagine.png
immagine.png (147.57 KiB) Viewed 218 times

Code: Select all

{
    type = "technology",
    name = "thruster-efficiency",
    icons = util.technology_icon_constant_movement_speed("__space-age__/graphics/technology/space-platform-thruster.png"),
    icon_size = 256,
    effects = {
      {
        type = "nothing",
        use_icon_overlay_constant = false,
        icons = {
          {
            icon = "__space-age__/graphics/icons/thruster.png",
            icon_size = 64,
          },
          {
            icon = "__core__/graphics/icons/technology/effect-constant/effect-constant-movement-speed.png",
            icon_size = 64,
            scale = 0.5,
            --shift = {25, 25},
            floating = true
          }
        },
        effect_description = { "modifier-description.thruster-efficiency", tostring(0.1) }
      }
    },
    prerequisites = { "promethium-science-pack" },
    unit =
    {
      count_formula = "2^L*1000",
      ingredients =
      {
        { "automation-science-pack", 1 },
        { "logistic-science-pack", 1 },
        { "chemical-science-pack", 1 },
        { "utility-science-pack", 1 },
        { "space-science-pack", 1 },
        { "promethium-science-pack", 1 }
      },
      time = 60
    },
    max_level = 30,
    upgrade = true
  }
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3901
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.34] Technology level not visualized when max_level=integer

Post by boskid »

This should be already fixed due to 125350.
Post Reply

Return to “Duplicates”