[2.0.72] Heal tooltip has erroneous minus sign

User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 207
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

[2.0.72] Heal tooltip has erroneous minus sign

Post by Osmo »

- Download the following mod:
repair-gun_0.1.0.zip
(3.28 MiB) Downloaded 15 times
- Look at "Repair spray" ammo item tooltip.
- Damage is displayed as "Heal: -120/s Healing", while it should be "Heal: 120/s Healing"
изображение.png
изображение.png (24.02 KiB) Viewed 123 times
The trigger effect is defined like this in data.lua:214

Code: Select all

 {
    type = "damage",
    damage = { amount = -4, type = "repair-gun-healing" },
    apply_damage_to_trees = false
}
In other places, such as with Raw fish, it is displayed as Heal without the - sign
изображение.png
изображение.png (38.78 KiB) Viewed 123 times
Attachments
factorio-current.log
(11.59 KiB) Downloaded 4 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4338
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.72] Heal tooltip has erroneous minus sign

Post by boskid »

Thanks for the report. Issue is now fixed for 2.1.
Post Reply

Return to “Fixed for 2.1”