高级玩家

- 贡献度
- 10
- 金元
- 5256
- 积分
- 566
- 精华
- 0
- 注册时间
- 2012-4-23
|
本帖最后由 BeNinja 于 2019-8-30 15:13 编辑
0.17原版的激光塔修改X:\Factorio\data\base\prototypes\entity 下的turrets.lua
type = "electric-turret",
name = "laser-turret",
icon = "__base__/graphics/icons/laser-turret.png",
icon_size = 32,
flags = { "placeable-player", "placeable-enemy", "player-creation"},
minable = { mining_time = 0.5, result = "laser-turret" },
max_health = 1000, 血量
collision_box = {{ -0.7, -0.7}, {0.7, 0.7}},
selection_box = {{ -1, -1}, {1, 1}},
rotation_speed = 0.01, 旋转速度
preparing_speed = 0.05, 准备速度
dying_explosion = "medium-explosion",
corpse = "laser-turret-remnants",
folding_speed = 0.05, 变形速度
energy_source =
{
type = "electric",
buffer_capacity = "801kJ", 缓冲电量
input_flow_limit = "9600kW", 储存电量
drain = "24kW", 消耗电量
..................................略去若干........................................
type = "beam",
cooldown = 40, 冷却时间
range = 24, 射程
source_direction_count = 64,
source_offset = {0, -3.423489 / 4},
damage_modifier = 2, 伤害(2=20激光伤害,3=30激光伤害....)
ammo_type =
{
category = "laser-turret",
energy_consumption = "800kJ", 能耗
action =
{
type = "direct",
action_delivery =
{
type = "beam",
beam = "laser-beam",
max_length = 24, 最大射程
duration = 40, 持续时间
source_offset = {0, -1.31439 }
绿色的改不改无所谓 红色的改错了可能会导致激光无法发射 蓝色直接影响激光塔性能
|
|