Page 1 of 1

[Bilka] Enemy tooltips show the same modifiers as the player

Posted: Sun Oct 06, 2019 10:43 pm
by ownlyme
Symptom:
The tooltips of enemies always show the same ammo damage and gun speed modifiers that the player has.

Reproducing code: (to be tested sequentially)

Code: Select all

/c game.player.force.set_ammo_damage_modifier("biological",1)
game.player.surface.create_entity{name="small-spitter", position = game.player.position, force = "enemy"}

Code: Select all

/c game.create_force("test")
game.player.force = "test"
game.player.surface.create_entity{name="small-spitter", position = game.player.position, force = "player"}

Code: Select all

/c game.player.force.set_ammo_damage_modifier("biological",1)
game.player.surface.create_entity{name="small-spitter", position = game.player.position, force = "player"}

Re: Enemy tooltips show the same modifiers as the player

Posted: Sun Oct 06, 2019 11:11 pm
by Loewchen

Re: [Bilka] Enemy tooltips show the same modifiers as the player

Posted: Mon Oct 07, 2019 8:16 am
by Bilka
Thanks for the report, fixed for the next version.