[Twinsen] [0.16.51] Ammo range modifier doesn't affect turrets properly
Posted: Sat Feb 23, 2019 9:49 pm
If I define an ammo such that:
The range modifier doesn't affect turrets properly. The turret will not fire unless the enemy is within the range specified by the ammo, but will still "follow" the enemy if the enemy is inside the normal range but outside the range specified by the ammo. However, the turret range visualization (in map view or if I move the cursor over the turret) does not show the correct range as specified by the ammo; instead it shows the turret's original range.
In addition, neither the range modifier nor the cooldown modifier will affect the value shown in the entity tooltip for the turret, nor the item tooltip for the gun that can shoot these projectiles. I would like to see a (-30%) for the turret and gun range, similar to how assembling machines display consumption, pollution, speed, and productivity modifiers.
Steps to reproduce:
1) Change the range modifiers of regular bullet ammo to different amounts
2) Do the same with the cooldown modifiers
Code: Select all
ammo_type =
{
...
--Range is decreased by 30%
range_modifier = 0.7,
cooldown_modifier = 1.3,
...
},
In addition, neither the range modifier nor the cooldown modifier will affect the value shown in the entity tooltip for the turret, nor the item tooltip for the gun that can shoot these projectiles. I would like to see a (-30%) for the turret and gun range, similar to how assembling machines display consumption, pollution, speed, and productivity modifiers.
Steps to reproduce:
1) Change the range modifiers of regular bullet ammo to different amounts
2) Do the same with the cooldown modifiers