[Posila] [0.14.7] Destroyer's beam attack deals double damage

This subforum contains all the issues which we already resolved.
Meppi
Inserter
Inserter
Posts: 29
Joined: Thu Apr 07, 2016 2:57 pm
Contact:

[Posila] [0.14.7] Destroyer's beam attack deals double damage

Post by Meppi »

With damage_interval = 20 on the beam and duration = 20 on the destroyer one attack deals damage twice, once at the start and once at the end of the duration, doubling the damage output.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5267
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14.7] Destroyer's beam attack deals double damage

Post by Klonan »

I think this is a bug,

If we imagine we want things simple, this is wrong,

I want the beam to do 20 damage total,

so i set the interval to 1, and duration to 20,

However it would do 21 damage right?

In the same way i want to do 5 damage, so i set duration to 100, and interval to 20,
However it would do 6 damage

I think it is more intuitive this way
Meppi
Inserter
Inserter
Posts: 29
Joined: Thu Apr 07, 2016 2:57 pm
Contact:

Re: [0.14.7] Destroyer's beam attack deals double damage

Post by Meppi »

I want the beam to do 20 damage total,

so i set the interval to 1, and duration to 20,

However it would do 21 damage right?

In the same way i want to do 5 damage, so i set duration to 100, and interval to 20,
However it would do 6 damage
That's correct, if you also set the beam damage to 1.
You would have to set the durations to 19 and 99 or you get an off-by-one error.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14291
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Posila] [0.14.7] Destroyer's beam attack deals double damage

Post by Rseding91 »

Indeed the logic looks wrong for the beam :)
If you want to get ahold of me I'm almost always on Discord.
posila
Factorio Staff
Factorio Staff
Posts: 5353
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [Posila] [0.14.7] Destroyer's beam attack deals double damage

Post by posila »

Thanks for the report.
It should be fixed in 0.14.10
Post Reply

Return to “Resolved Problems and Bugs”