1
0
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:
BlueRock (on discord) 2020-02-14 13:48:48 -05:00 committed by GitHub
parent 1692f094e8
commit 0abf22ad91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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