请教V0.17.54的激光炮塔的修改位置
本帖最后由 ibmking45 于 2019-7-19 23:05 编辑请教大佬,我想把激光炮塔的射击范围调大,需要在什么文件里搜索什么字符啊?我找了好久都找不到。谢谢指教,谢谢指教{:3_48:} 我不知道你玩的是什么mod,我用的是bobmod,激光塔一共五级,在bobwarfare_0.16.7压缩包打开找到如下文件夹,bobwarfare_0.16.7\prototypes\entity,打开其中的turrets.lua文件,找到如下语句, bob_laser_turret{name = "bob-laser(激光的意思)-turret(炮塔)-5"(激光塔五型), health = 2000, buffer_capacity = "8001kJ", input_flow_limit = "19200kW", drain = "48kW"(待机功率), energy_consumption = "1600kJ", projectile = "bob-white-laser", damage_modifier = 14.4(这个是伤害倍数的意思,激光塔伤害为14.4*5,我改成300后,激光塔五型伤害为1500), cooldown = 20, range = 30(射程), tint = red, base = bob_turret_base{type = "laser", tint = yellow}},别的就无所谓了,
希望有用 本帖最后由 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 }
绿色的改不改无所谓红色的改错了可能会导致激光无法发射蓝色直接影响激光塔性能
BeNinja 发表于 2019-8-30 15:10
0.17原版的激光塔修改X:\Factorio\data\base\prototypes\entity 下的turrets.lua
type = "electric-tur ...
感谢大佬,谢谢。
页:
[1]