1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00
ComfyFactorio/modules/biters_double_damage.lua

12 lines
475 B
Lua
Raw Normal View History

2021-03-24 20:14:55 +01:00
local Event = require 'utils.event'
2019-02-16 17:36:12 +01:00
2021-03-24 20:14:55 +01:00
local function on_player_joined_game()
2021-03-24 16:46:00 +01:00
game.forces.enemy.set_ammo_damage_modifier('melee', 1)
game.forces.enemy.set_ammo_damage_modifier('biological', 1)
game.forces.enemy.set_ammo_damage_modifier('artillery-shell', 0.5)
game.forces.enemy.set_ammo_damage_modifier('flamethrower', 0.5)
game.forces.enemy.set_ammo_damage_modifier('laser', 0.5)
2019-02-16 17:36:12 +01:00
end
2021-03-24 16:46:00 +01:00
2021-03-24 20:14:55 +01:00
Event.add(defines.events.on_player_joined_game, on_player_joined_game)