1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Merge pull request #1113 from Refactorio/spidertron-artillery-immunity-fix-attempt-2

Spidertron artillery immunity fix
This commit is contained in:
Jayefuu 2020-11-18 17:10:47 +00:00 committed by GitHub
commit 199394ab43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1116,7 +1116,8 @@ local artillery_target_entities = {
'locomotive',
'cargo-wagon',
'fluid-wagon',
'artillery-wagon'
'artillery-wagon',
'spidertron'
}
local artillery_target_callback =
@ -1142,6 +1143,16 @@ local artillery_target_callback =
target = entity,
speed = 1.5
}
if entity.name == "spidertron" then
-- fire a rocket as well as artillery-projectile since artillery-projectile doesn't damage spidertrons
-- Balance note: 1 rocket per artillery kills spidertron shield fast but takes ~ 1 minute to kill the spidertron
entity.surface.create_entity {
name = 'rocket',
position = position,
target = entity,
speed = 1.5
}
end
end
end
)