Skip to content

Commit 369fc37

Browse files
authored
Drawing box fixes (#328)
* Update chemical-plant.lua * Update burner-generator.lua * Update entity.lua * Update turrets.lua * Update tank.lua * Update assembly-updates.lua * Update roboport.lua
1 parent ade0bd5 commit 369fc37

File tree

7 files changed

+15
-45
lines changed

7 files changed

+15
-45
lines changed

bobassembly/prototypes/assembly-updates.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ end
4949

5050
data.raw["assembling-machine"]["assembling-machine-3"].module_slots = 3
5151
data.raw["assembling-machine"]["assembling-machine-3"].next_upgrade = "assembling-machine-4"
52+
data.raw["assembling-machine"]["assembling-machine-3"].drawing_box_vertical_extension = nil
5253

5354
if data.raw.item["bob-aluminium-plate"] then
5455
bobmods.lib.recipe.replace_ingredient("assembling-machine-4", "steel-plate", "bob-aluminium-plate")

bobassembly/prototypes/chemical-plant.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then
1111
data.raw["assembling-machine"]["chemical-plant"].fast_replaceable_group = "chemical-plant"
1212
data.raw["assembling-machine"]["chemical-plant"].order = "e[chemical-plant-1]"
1313
data.raw["assembling-machine"]["chemical-plant"].energy_usage = "160kW"
14+
data.raw["assembling-machine"]["chemical-plant"].drawing_box_vertical_extension = 0.6
1415

1516
data.raw.item["chemical-plant"].stack_size = 50
1617
data.raw.item["chemical-plant"].subgroup = "bob-chemical-machine"
@@ -231,6 +232,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then
231232
dying_explosion = "medium-explosion",
232233
collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
233234
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
235+
drawing_box_vertical_extension = 0.6,
234236
allowed_effects = { "consumption", "speed", "productivity", "pollution" },
235237
module_slots = 4,
236238
icon_draw_specification = {
@@ -270,6 +272,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then
270272
dying_explosion = "medium-explosion",
271273
collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
272274
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
275+
drawing_box_vertical_extension = 0.6,
273276
allowed_effects = { "consumption", "speed", "productivity", "pollution" },
274277
module_slots = 5,
275278
icons_positioning = {
@@ -317,6 +320,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then
317320
dying_explosion = "medium-explosion",
318321
collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
319322
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
323+
drawing_box_vertical_extension = 0.6,
320324
allowed_effects = { "consumption", "speed", "productivity", "pollution" },
321325
module_slots = 6,
322326
icons_positioning = {

boblogistics/prototypes/entity/roboport.lua

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ data:extend({
788788
corpse = "small-remnants",
789789
collision_box = { { -0.7, -0.7 }, { 0.7, 0.7 } },
790790
selection_box = { { -1, -1 }, { 1, 1 } },
791+
drawing_box_vertical_extension = 1.4,
791792
dying_explosion = "medium-explosion",
792793
energy_source = {
793794
type = "electric",
@@ -856,17 +857,6 @@ data:extend({
856857
sound = { filename = "__base__/sound/roboport-working.ogg", volume = 0.4 },
857858
max_sounds_per_prototype = 3,
858859
},
859-
factoriopedia_simulation = {
860-
init = [[
861-
game.simulation.camera_position = {0, -1}
862-
game.simulation.camera_zoom = 2.0
863-
game.surfaces[1].create_entities_from_blueprint_string
864-
{
865-
string = "0eNqNj9EOgjAMRf+lzyMRAZX9ijGEYSVNRofbMCDZv7tBoq++tc3tOe0KSk84WmIPcgXqDDuQ1xUc9dzqNON2QJCgjMq06cl56rK3YcxwHlu+o4UggGIxg8zDTQCyJ0+4c7ZmaXgaVEzKXPzBEzAaFxGGkz9is1LAAvIQRRafEzrfPEh7tC4FHHYpu/t+h4R0C3kckuz7pIBXXNvQ1elYl3VdVcXlXNRFCB+52Fwa",
866-
position = {0, 0}
867-
}
868-
]],
869-
},
870860
},
871861

872862
{
@@ -881,6 +871,7 @@ data:extend({
881871
corpse = "small-remnants",
882872
collision_box = { { -0.7, -0.7 }, { 0.7, 0.7 } },
883873
selection_box = { { -1, -1 }, { 1, 1 } },
874+
drawing_box_vertical_extension = 1.4,
884875
dying_explosion = "medium-explosion",
885876
energy_source = {
886877
type = "electric",
@@ -949,17 +940,6 @@ data:extend({
949940
sound = { filename = "__base__/sound/roboport-working.ogg", volume = 0.4 },
950941
max_sounds_per_prototype = 3,
951942
},
952-
factoriopedia_simulation = {
953-
init = [[
954-
game.simulation.camera_position = {0, -1}
955-
game.simulation.camera_zoom = 2.0
956-
game.surfaces[1].create_entities_from_blueprint_string
957-
{
958-
string = "0eNqNj9EOgjAMRf+lzyNREIX9ijGEYSVNRofbMCDZv7tBoq++tc3tufeuoPSEoyX2IFegzrADeV3BUc+tTjduBwQJyqhMm56cpy57G8YM57HlO9oshyCA4jiDPIabAGRPnnAnbcvS8DQotFEg/iIKGI2LEMMpQwJXAhaQh2hl8Tmh882DtEfrksBhl7S74y9KSGnI45DsvkUFvOLbhi7PeX2q67IsqktRFyF8ANEdXOA=",
959-
position = {0, 0}
960-
}
961-
]],
962-
},
963943
},
964944

965945
{
@@ -974,6 +954,7 @@ data:extend({
974954
corpse = "small-remnants",
975955
collision_box = { { -0.7, -0.7 }, { 0.7, 0.7 } },
976956
selection_box = { { -1, -1 }, { 1, 1 } },
957+
drawing_box_vertical_extension = 1.4,
977958
dying_explosion = "medium-explosion",
978959
energy_source = {
979960
type = "electric",
@@ -1042,17 +1023,6 @@ data:extend({
10421023
sound = { filename = "__base__/sound/roboport-working.ogg", volume = 0.4 },
10431024
max_sounds_per_prototype = 3,
10441025
},
1045-
factoriopedia_simulation = {
1046-
init = [[
1047-
game.simulation.camera_position = {0, -1}
1048-
game.simulation.camera_zoom = 2.0
1049-
game.surfaces[1].create_entities_from_blueprint_string
1050-
{
1051-
string = "0eNqNj9EOgjAMRf+lzyNRJwr7FWMIw2qajA63YUCyf3eDRF99a5vbc+9dQJsRB0ccQC1AnWUP6rKApwe3Jt+47REUaKsLYx/kA3XF2zIWOA0t39AVEqIASuMEah+vApADBcKNtC5zw2Ov0SWB+IsoYLA+QSznDAksKwEzqF2ycvgc0YfmTiag81ngscvazfEXJeY0FLDPdt+iAl7pbUWXp0N9rOuylNVZ1jLGD9MxXOQ=",
1052-
position = {0, 0}
1053-
}
1054-
]],
1055-
},
10561026
},
10571027

10581028
{
@@ -1067,6 +1037,7 @@ data:extend({
10671037
corpse = "small-remnants",
10681038
collision_box = { { -0.7, -0.7 }, { 0.7, 0.7 } },
10691039
selection_box = { { -1, -1 }, { 1, 1 } },
1040+
drawing_box_vertical_extension = 1.4,
10701041
dying_explosion = "medium-explosion",
10711042
energy_source = {
10721043
type = "electric",
@@ -1135,17 +1106,6 @@ data:extend({
11351106
sound = { filename = "__base__/sound/roboport-working.ogg", volume = 0.4 },
11361107
max_sounds_per_prototype = 3,
11371108
},
1138-
factoriopedia_simulation = {
1139-
init = [[
1140-
game.simulation.camera_position = {0, -1}
1141-
game.simulation.camera_zoom = 2.0
1142-
game.surfaces[1].create_entities_from_blueprint_string
1143-
{
1144-
string = "0eNqNj8EOgjAQRP9lz+0BAbX9FWMI4Go2KVtsiwFJ/90WEr16293MvplZoTMTjo44gF6Besse9GUFTw9uTb5xOyBo6GwnjX2QD9TLt2WUOI8t39DJCqIASuMMuohXAciBAuFO2pal4Wno0CWB+IsoYLQ+QSznDAlcVwIW0LJIXg6fE/rQ3MkEdD4rPPZZvFv+ssQchwIO2e/bVMArvW3s+nhQlVJ1XZ5PpSpj/AAh410S",
1145-
position = {0, 0}
1146-
}
1147-
]],
1148-
},
11491109
},
11501110
})
11511111

bobpower/prototypes/burner-generator.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ if settings.startup["bobmods-power-burnergenerator"].value == true then
5858
fast_replaceable_group = "burner-generator",
5959
collision_box = { { -1.35, -1.35 }, { 1.35, 1.35 } },
6060
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
61+
drawing_box_vertical_extension = 0.8,
6162
energy_source = {
6263
type = "electric",
6364
usage_priority = "secondary-output",

bobtech/prototypes/entity/entity.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ if settings.startup["bobmods-burnerphase"].value == true then
318318
fast_replaceable_group = "burner-generator",
319319
collision_box = { { -1.35, -1.35 }, { 1.35, 1.35 } },
320320
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
321+
drawing_box_vertical_extension = 0.8,
321322
energy_source = {
322323
type = "electric",
323324
usage_priority = "secondary-output",

bobwarfare/prototypes/entity/tank.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ data:extend({
312312
impact_category = "metal-large",
313313
collision_box = { { -0.9, -1.3 }, { 0.9, 1.3 } },
314314
selection_box = { { -0.9, -1.3 }, { 0.9, 1.3 } },
315+
drawing_box_vertical_extension = 0.5,
315316
effectivity = 0.95,
316317
braking_power = "1000kW",
317318
energy_source = {
@@ -497,6 +498,7 @@ data:extend({
497498
impact_category = "metal-large",
498499
collision_box = { { -0.9, -1.3 }, { 0.9, 1.3 } },
499500
selection_box = { { -0.9, -1.3 }, { 0.9, 1.3 } },
501+
drawing_box_vertical_extension = 0.5,
500502
effectivity = 1,
501503
braking_power = "1200kW",
502504
energy_source = {

bobwarfare/prototypes/entity/turrets.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local warefareSounds = require("prototypes.entity.sounds")
33

44
data.raw["ammo-turret"]["gun-turret"].fast_replaceable_group = "turret"
55
data.raw["electric-turret"]["laser-turret"].fast_replaceable_group = "turret"
6+
data.raw["electric-turret"]["laser-turret"].drawing_box_vertical_extension = 0.7
67

78
local black = { r = 0, g = 0, b = 0, a = 1 }
89
local magenta = { r = 1, g = 0, b = 1, a = 1 }
@@ -549,7 +550,7 @@ local function bob_laser_turret(inputs)
549550
corpse = "laser-turret-remnants",
550551
collision_box = { { -0.7 * size, -0.7 * size }, { 0.7 * size, 0.7 * size } },
551552
selection_box = { { -1 * size, -1 * size }, { 1 * size, 1 * size } },
552-
drawing_box_vertical_extension = 0.3 * size,
553+
drawing_box_vertical_extension = 0.7 * size,
553554
circuit_wire_max_distance = default_circuit_wire_max_distance,
554555
dying_explosion = "medium-explosion",
555556
rotation_speed = inputs.rotation_speed or 0.01,

0 commit comments

Comments
 (0)