I am not certain if this technically qualifies as a game bug, since the railgun is only technically in the game, since it isn't craftable.
Code: Select all
data.raw["ammo"]["flame-thrower-ammo"].ammo_type =
{
category = "flame-thrower",
target_type = "direction",
action =
{
{
type = "line",
range =3,
width = 1,
source_effects =
{
type = "create-entity",
entity_name = "railgun-beam"
},
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "create-entity",
entity_name = "flame-thrower-cloud"
},
{
type = "damage",
damage = { amount = 3, type="fire"}
}
}
}
},
{
type = "line",
range = 6,
width = 2,
source_effects =
{
type = "create-entity",
entity_name = "railgun-beam"
},
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "create-entity",
entity_name = "flame-thrower-cloud"
},
{
type = "damage",
damage = { amount = 3, type="fire"}
}
}
}
},
{
type = "line",
range = 9,
width = 4,
source_effects =
{
type = "create-entity",
entity_name = "railgun-beam"
},
action_delivery =
{
type = "instant",
target_effects =
{
{
type = "create-entity",
entity_name = "flame-thrower-cloud"
},
{
type = "damage",
damage = { amount = 3, type="fire"}
}
}
}
},
{
type = "direct",
repeat_count = 4,
action_delivery =
{
type = "projectile",
projectile = "flame-thrower-projectile",
starting_speed = 1,
direction_deviation = 0.4,
range_deviation = 1,
max_range = 8
}
}
}
}