1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-26 20:54:12 +02:00

fixed cluster count error on suicide biters

This commit is contained in:
Aaron Veden 2021-03-28 22:07:02 -07:00
parent 90376f11d5
commit cb639229f9
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -846,9 +846,9 @@ function biterFunctions.createSuicideAttack(attributes, blastWave, animation)
source_effects =
{
{
type = "damage",
affects_target = true,
damage = {amount = attributes.healthDamage or 5, type = "explosion"}
type = "damage",
affects_target = true,
damage = {amount = attributes.healthDamage or 5, type = "explosion"}
},
{
type = "create-entity",
@ -881,47 +881,47 @@ function biterFunctions.createSuicideAttack(attributes, blastWave, animation)
}
},
},
{
type = "cluster",
cluster_count = attributes.explosionCount,
distance = attributes.explosionDistance,
distance_deviation = 3,
action_delivery =
{
type = "instant",
source_effects= {
{
type="create-entity",
entity_name = attributes.attackExplosion,
},
{
type = "create-entity",
entity_name = attributes.attackScorchmark or "small-scorchmark",
check_buildability = true
},
{
type = "nested-result",
action = {
type = "area",
radius = attributes.radius,
action_delivery = {
type = "instant",
target_effects = {
{
type = "damage",
damage = {
amount = attributes.damage,
type = attributes.damageType or "explosion"
}
}
}
}
}
}
}
}
}
}-- ,
-- {
-- type = "cluster",
-- cluster_count = attributes.explosionCount,
-- distance = attributes.explosionDistance,
-- distance_deviation = 3,
-- action_delivery =
-- {
-- type = "instant",
-- source_effects= {
-- {
-- type="create-entity",
-- entity_name = attributes.attackExplosion,
-- },
-- {
-- type = "create-entity",
-- entity_name = attributes.attackScorchmark or "small-scorchmark",
-- check_buildability = true
-- },
-- {
-- type = "nested-result",
-- action = {
-- type = "area",
-- radius = attributes.radius,
-- action_delivery = {
-- type = "instant",
-- target_effects = {
-- {
-- type = "damage",
-- damage = {
-- amount = attributes.damage,
-- type = attributes.damageType or "explosion"
-- }
-- }
-- }
-- }
-- }
-- }
-- }
-- }
-- }
}