Skip to content

Commit a04697f

Browse files
committed
Turrets specified incorrectly in code #449
1 parent 95a3b6e commit a04697f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

bobwarfare/prototypes/entity/turrets.lua

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -649,19 +649,17 @@ local function bob_laser_turret(inputs)
649649
energy_consumption = inputs.energy_consumption or "800kJ",
650650
clamp_position = inputs.clamp_position or nil,
651651
action = {
652-
{
653-
type = "direct",
654-
action_delivery = {
655-
{
656-
type = "projectile",
657-
projectile = inputs.projectile or "laser",
658-
starting_speed = inputs.starting_speed or 0.28,
652+
type = "direct",
653+
action_delivery = {
654+
{
655+
type = "projectile",
656+
projectile = inputs.projectile or "laser",
657+
starting_speed = inputs.starting_speed or 0.28,
659658

660-
direction_deviation = inputs.direction_deviation or nil,
661-
range_deviation = inputs.range_deviation or nil,
659+
direction_deviation = inputs.direction_deviation or nil,
660+
range_deviation = inputs.range_deviation or nil,
662661

663-
max_range = (inputs.range * 2) or 50,
664-
},
662+
max_range = (inputs.range * 2) or 50,
665663
},
666664
},
667665
},
@@ -680,6 +678,7 @@ local function bob_laser_turret(inputs)
680678
damage_modifier = inputs.damage_modifier or 2,
681679
turn_range = inputs.turn_range,
682680
ammo_type = {
681+
type = "beam",
683682
energy_consumption = inputs.energy_consumption or "800kJ",
684683
action = {
685684
type = "direct",

0 commit comments

Comments
 (0)