mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-06 00:23:49 +02:00
Fix some bad refs
This commit is contained in:
parent
71b46cf23d
commit
32a8825908
@ -840,7 +840,7 @@ local function kill_force(force_name, cause)
|
||||
chest.insert(items)
|
||||
end
|
||||
end
|
||||
if cause.player then
|
||||
if cause.name == 'character' then
|
||||
message = town_name .. ' has fallen to ' .. cause.player.name .. '!'
|
||||
elseif cause.force.name == 'player' then
|
||||
message = town_name .. ' has fallen to outlanders!'
|
||||
@ -856,7 +856,7 @@ local function kill_force(force_name, cause)
|
||||
killer_town_center.coin_balance = killer_town_center.coin_balance + balance
|
||||
cause.force.print(balance .. " coins have been transferred to your town")
|
||||
end
|
||||
if cause.player then
|
||||
if cause.name == 'character' then
|
||||
message = town_name .. ' has fallen to ' .. cause.player.name .. ' from ' .. killer_town_center.town_name .. '!'
|
||||
else
|
||||
message = town_name .. ' has fallen to ' .. killer_town_center.town_name .. '!'
|
||||
|
Loading…
Reference in New Issue
Block a user