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"}