Code: Select all
fallout_cloud =
{
type = "smoke-with-trigger",
name = "fallout-cloud",
flags = {"not-on-map"},
show_when_smoke_off = true,
animation =
{
filename = "__base__/graphics/entity/cloud/cloud-45-frames.png",
flags = { "compressed" },
priority = "low",
width = 256,
height = 256,
frame_count = 45,
animation_speed = 0.1,
line_length = 7,
scale = 6,
},
slow_down_factor = 0,
affected_by_wind = true,
cyclic = true,
--duration = 60 * 80,
duration = 1,
--fade_away_duration = 4 * 60,
spread_duration = 50,
color = { r = 1, g = 1, b = 1},
action = {
type = "direct",
action_delivery =
{
type = "instant",
source_effects =
{
{
repeat_count = 100,
type = "create-trivial-smoke",
smoke_name = "nuclear-smoke",
offset_deviation = {{-1, -1}, {1, 1}},
slow_down_factor = 1,
starting_frame = 3,
starting_frame_deviation = 5,
starting_frame_speed = 0,
starting_frame_speed_deviation = 5,
speed_from_center = 0.5,
speed_deviation = 0.2
},
{
type = "create-entity",
entity_name = "explosion"
},
{
type = "damage",
damage = {amount = 400, type = "explosion"}
},
{
type = "create-entity",
entity_name = "uranium-explosion-LUQ",
trigger_created_entity = "true"
},
{
type = "create-entity",
entity_name = "uranium-explosion-RUQ"
},
{
type = "create-entity",
entity_name = "uranium-explosion-LLQ"
},
{
type = "create-entity",
entity_name = "uranium-explosion-RLQ"
},
{
type = "create-entity",
entity_name = "nuclear-scorchmark",
check_buildability = true
},
{
type = "nested-result",
action =
{
type = "area",
target_entities = false,
repeat_count = 2000,
radius = 35,
action_delivery =
{
type = "projectile",
projectile = "atomic-bomb-wave",
starting_speed = 0.5
}
}
}
}
}
},
action_cooldown = 30
}