LUIS DAS ARTIMANHAS - Biblioteca Utilitária


Biblioteca utilitária para criação rápida de itens, receitas e outros protótipos Factorio.. local LDA = require('__LDA-LIB__/init') local PATH = LDA.setBasePath('Quantum-Teleporter')

Internal
4 days ago
2.0
509

i UTILS PROJECTILES

4 days ago
(updated 4 days ago)

Create a funcion projectile
example:

data:extend(
    {
        {
            type = "beam",
            name = "blue-laser-mk2",
            flags = {"not-on-map"},
            acceleration = 0.005,
            action = {
                type = "direct",
                action_delivery = {
                    type = "instant",
                    target_effects = {
                        {
                            type = "damage",
                            damage = {amount = 15, type = "laser"} -- 3x o dano padrão
                        }
                    }
                }
            },
            light = {intensity = 0.5, size = 10, color = {r = 0.2, g = 0.2, b = 1}}, -- Tom verde claro
            animation = {
                filename = "__base__/graphics/entity/laser/laser-to-tint-medium.png",
                tint = {r = 0.2, g = 0.2, b = 1}, -- Tom verde claro
                frame_count = 1,
                width = 12,
                height = 33,
                priority = "high",
                blend_mode = "additive"
            },
            speed = 0.15
        }
    }
)

New response