This definition should make the ammo only usable in turrets:ammo_type
Type: table of AmmoType or AmmoType
When using an array of AmmoType, the AmmoType has an extra property:
source_type - AmmoSourceType - Mandatory. - Defines for which kind of entity this ammo type applies. Each entity kind can only be used once per array.
When using a plain AmmoType, the ammo type applies to everything ("default").
Code: Select all
{
type = "ammo",
ammo_type = {
{
category = BI.additional_categories.Bio_Cannon.cannon_ammo.name,
source_type = "turret",
target_type = "direction",
action = {
{
type = "direct",
action_delivery = {
type = "projectile",
projectile = "bi-bio-cannon-ammo-basic",
starting_speed = 0.4,
direction_deviation = 0.25,
max_range = 105,
}
}
}
},
},
…
}