mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Update hail_hydra.lua
Merging this hail hydra particle fix (PR 1035) with PR 1032 (diggy patch for 0.18) since all of the updates are related to the particle changes in Factorio 0.18
This commit is contained in:
parent
1692f094e8
commit
0abf22ad91
@ -94,6 +94,7 @@ local on_died =
|
||||
local cause = event.cause
|
||||
local surface = entity.surface
|
||||
local create_entity = surface.create_entity
|
||||
local create_particle = surface.create_particle
|
||||
local find_non_colliding_position = surface.find_non_colliding_position
|
||||
|
||||
local command = create_attack_command(position, cause)
|
||||
@ -136,7 +137,7 @@ local on_died =
|
||||
particle_count = amount * 15
|
||||
end
|
||||
|
||||
CreateParticles.blood_explosion(create_entity, particle_count, position)
|
||||
CreateParticles.blood_explosion(create_particle, particle_count, position)
|
||||
|
||||
for _ = amount, 1, -1 do
|
||||
position = find_non_colliding_position(hydra_spawn, position, 2, 0.4) or position
|
||||
|
Loading…
x
Reference in New Issue
Block a user