1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-07 13:31:40 +02:00
This commit is contained in:
MewMew 2019-06-16 18:49:06 +02:00
parent b009618273
commit b026865b53

View File

@ -403,11 +403,11 @@ local function on_entity_died(event)
local points = score_table[event.entity.name]
for _, p in pairs(rewarded_players) do
-- Handles floating text
if global.show_floating_killscore[player.name] == true then
if global.show_floating_killscore[p.name] == true then
show_floating_text = true
end
-- Add
local score = global.score[event.force.name].players[player.name]
local score = global.score[event.force.name].players[p.name]
score.killscore = points + (score.killscore or 0)
end