Page 1 of 1

Fix Flamethrower turret damage upgrade modifier

Posted: Tue Jan 19, 2021 2:19 pm
by jodokus31
I'm trying to mod a different flamethrower turret damage upgrade modifier at this place:

Code: Select all

{
    type = "technology",
    name = "refined-flammables-1",
    icon_size = 256, icon_mipmaps = 4,
    icons = util.technology_icon_constant_damage(refined_flammables_icon),
    effects =
    {
      {
        type = "ammo-damage",
        ammo_category = "flamethrower",
        modifier = 0.2 <-- changing this also works for flamethrower turret
      },
      {
        type = "turret-attack",
        turret_id = "flamethrower-turret",
        modifier = 0.4 -- CHANGED
      }
    },
    ...
    
It is shown correctly in bonus UI, but not in Flamethrower-Turret tooltip.
flamers_bonusUI.png
flamers_bonusUI.png (12.37 KiB) Viewed 751 times
flamer_turret_tooltip.png
flamer_turret_tooltip.png (123.28 KiB) Viewed 751 times

If I change the value for flamethrower ammo, it works also for flamethrower turret.
So I'm assuming its a bug