mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-01-01 05:01:40 +09:00
More 0.17.35 Fixs
This commit is contained in:
@@ -21,9 +21,9 @@ Event.add(defines.events.on_entity_damaged, function(event)
|
|||||||
|
|
||||||
-- Sets the message
|
-- Sets the message
|
||||||
local message
|
local message
|
||||||
if entity.name == 'player' and config.show_player_health then
|
if entity.name == 'character' and config.show_player_health then
|
||||||
message = {'damage-popup.player-health',health}
|
message = {'damage-popup.player-health',health}
|
||||||
elseif entity.name ~= 'player' and cause and cause.name == 'player' and config.show_player_damage then
|
elseif entity.name ~= 'character' and cause and cause.name == 'character' and config.show_player_damage then
|
||||||
message = {'damage-popup.player-damage',damage}
|
message = {'damage-popup.player-damage',damage}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ local function spawn_base(surface,position)
|
|||||||
table.insert(tiles_to_make,{name=dtile,position=p})
|
table.insert(tiles_to_make,{name=dtile,position=p})
|
||||||
local entities_to_remove = surface.find_entities_filtered{area={{p.x-1,p.y-1},{p.x,p.y}}}
|
local entities_to_remove = surface.find_entities_filtered{area={{p.x-1,p.y-1},{p.x,p.y}}}
|
||||||
for _,entity in pairs(entities_to_remove) do
|
for _,entity in pairs(entities_to_remove) do
|
||||||
if entity.name ~= 'player' then entity.destroy() end
|
if entity.name ~= 'character' then entity.destroy() end
|
||||||
end
|
end
|
||||||
elseif prod < pr2 then
|
elseif prod < pr2 then
|
||||||
-- if it is inside the pattern radius
|
-- if it is inside the pattern radius
|
||||||
|
|||||||
Reference in New Issue
Block a user