Page 1 of 1

Stream / Projectile Damage Question

Posted: Thu Apr 18, 2019 8:02 pm
by TheSAguy
Why does the Damege bleow work on one and not the other?
How do I add Damage, that's not at the " type = "area"" level?

WORKS:

Code: Select all

  {
    type = "stream",
    name = "ne-fire-stream",
    flags = {"not-on-map"},
    stream_light = {intensity = 1, size = 4},
    ground_light = {intensity = 0.8, size = 4},

    action =
    {
      {
        type = "direct",
        action_delivery =
        {
          type = "instant",
          target_effects =
          {
            {
              type = "create-fire",
              entity_name = "ne-fire-flame-2"
            },
          }
        }
      },
      {
        type = "area",
        radius = 2,
        action_delivery =
        {
          type = "instant",
          target_effects =
          {
            {
              type = "create-sticker",
              sticker = "ne-fire-sticker-2"
            },
            {
              type = "damage",
              damage = { amount = 3, type = "ne_fire"},
              apply_damage_to_trees = true
            },
            {
              type = "damage",
              damage = { amount = 0.5, type = "physical"},
              apply_damage_to_trees = false
            }
          }
        }
      }
    },

DOES NOT WORK:

Code: Select all

  {
    type = "stream",
    name = "ne-fire-stream",
    flags = {"not-on-map"},
    stream_light = {intensity = 1, size = 4},
    ground_light = {intensity = 0.8, size = 4},
    
    action =
    {
      {
        type = "direct",
        action_delivery =
        {
          type = "instant",
          target_effects =
          {
            {
              type = "create-fire",
              entity_name = "ne-fire-flame-2"
            },
            {
              type = "damage",
              damage = { amount = 3, type = "ne_fire"},
              apply_damage_to_trees = true
            },
            {
              type = "damage",
              damage = { amount = 0.5, type = "physical"},
              apply_damage_to_trees = false
            }
          }
        }
      },
      {
        type = "area",
        radius = 2,
        action_delivery =
        {
          type = "instant",
          target_effects =
          {
            {
              type = "create-sticker",
              sticker = "ne-fire-sticker-2"
            },
          }
        }
      }
    },
Thanks./