1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/base_data.lua

9 lines
316 B
Lua
Raw Normal View History

2017-06-13 13:16:07 +02:00
if not global.score_biter_total_kills then global.score_biter_total_kills = 0 end
local function biter_kill_counter(event)
if event.entity.force.name == "enemy" then
global.score_biter_total_kills = global.score_biter_total_kills + 1
end
end
Event.register(defines.events.on_entity_died, biter_kill_counter)