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:
commit
199394ab43
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user