Skip to content

Commit

Permalink
Update hail_hydra.lua
Browse files Browse the repository at this point in the history
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
  • Loading branch information
BlueRock2 authored Feb 14, 2020
1 parent 1692f09 commit 0abf22a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion map_gen/shared/hail_hydra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0abf22a

Please sign in to comment.