dofile_once("data/scripts/lib/utilities.lua")
local util = dofile_once("mods/quant.ew/files/resource/util_min.lua")

-- kill self
function death(damage_type_bit_field, damage_message, entity_thats_responsible, drop_items)
    local entity_id = GetUpdatedEntityID()
    local pos_x, pos_y = EntityGetTransform(entity_id)

    -- do some kind of an effect? throw some particles into the air?
    EntityLoad("data/entities/projectiles/fungus_big_explosion.xml", pos_x, pos_y)
end

function collision_trigger_timer_finished()
    local entity_id = GetUpdatedEntityID()
    local pos_x, pos_y = EntityGetTransform(entity_id)

    -- do some kind of an effect? throw some particles into the air?
    if util.do_i_own(entity_id) then
        CrossCall("ew_run_fungus", "data/entities/projectiles/fungus_big_explosion.xml", pos_x, pos_y)
    end
end
