Skip to content

Commit 02858f0

Browse files
authored
Bob vehicle equipment 2.0 (#222)
* Fix technology_icon_constant_vehicle_equipment scale * Move vehicle equipment to be below all personal equipment * Update beams.lua Fix working_sound and update with graphics_set * Add glow to plasma projectile * advanced-electronics-3 -> advanced-processing-unit, fix other misnamed techs * Fix misnamed tech icon name * Update plasma sticker graphics, adjust to make identical to Warfare's plasma sticker * Fix icon sizes * category -> ammo_category, update tech names * Update tech names, category -> ammo_category, nerf damage relative to turrets * Update roboport.lua Update tech names, reorganize roboports, move icon_size to new location, fix KW -> kW * KW -> kW * Rename vehicle-battery.png to vehicle-battery-equipment.png * Rename vehicle-big-turret.png to vehicle-big-turret-equipment.png * Rename vehicle-engine.png to vehicle-engine-equipment.png * Rename vehicle-laser-defense.png to vehicle-laser-defense-equipment.png * Rename vehicle-motor.png to vehicle-motor-equipment.png * Rename vehicle-roboport.png to vehicle-roboport-equipment.png * Rename vehicle-shield.png to vehicle-shield-equipment.png * Rename vehicle-solar-panel.png to vehicle-solar-panel-equipment.png * Add new item sounds * Add new item sounds * Add new item sounds * Add new item sounds * Add new item sounds * Add new item sounds * Add new item sounds * Add new item sounds * Add new item sounds * Add new item sounds * Nerf laser defense damage to match changes to vanilla PLDE * Increase roboport robot_limit to equal 2 robot controllers * Change order to make weaker version come first * Hide beams from Factoriopedia * Hide explosion from Factoriopedia * Hide projectile from Factoriopedia
1 parent 4919c69 commit 02858f0

24 files changed

+1637
-347
lines changed

bobvehicleequipment/data.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data:extend({
1313
})
1414

1515
function bobmods.equipment.technology_icon_constant_vehicle_equipment(technology_icon)
16-
local scale = ((technology_icon.icon_size or 256) / 256) * (technology_icon.scale or 1)
16+
local scale = 0.5
1717
local icons = {
1818
technology_icon,
1919
{

bobvehicleequipment/graphics/technology/vehicle-battery.png renamed to bobvehicleequipment/graphics/technology/vehicle-battery-equipment.png

File renamed without changes.

bobvehicleequipment/graphics/technology/vehicle-big-turret.png renamed to bobvehicleequipment/graphics/technology/vehicle-big-turret-equipment.png

File renamed without changes.

bobvehicleequipment/graphics/technology/vehicle-engine.png renamed to bobvehicleequipment/graphics/technology/vehicle-engine-equipment.png

File renamed without changes.

bobvehicleequipment/graphics/technology/vehicle-laser-defense.png renamed to bobvehicleequipment/graphics/technology/vehicle-laser-defense-equipment.png

File renamed without changes.

bobvehicleequipment/graphics/technology/vehicle-motor.png renamed to bobvehicleequipment/graphics/technology/vehicle-motor-equipment.png

File renamed without changes.

bobvehicleequipment/graphics/technology/vehicle-roboport.png renamed to bobvehicleequipment/graphics/technology/vehicle-roboport-equipment.png

File renamed without changes.

bobvehicleequipment/graphics/technology/vehicle-shield.png renamed to bobvehicleequipment/graphics/technology/vehicle-shield-equipment.png

File renamed without changes.

bobvehicleequipment/graphics/technology/vehicle-solar-panel.png renamed to bobvehicleequipment/graphics/technology/vehicle-solar-panel-equipment.png

File renamed without changes.

bobvehicleequipment/prototypes/battery.lua

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ data:extend({
99
order = "v[vehicle-equipment]-c[battery]-1",
1010
stack_size = 50,
1111
default_request_amount = 10,
12+
drop_sound = {
13+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
14+
volume = 1
15+
},
16+
inventory_move_sound = {
17+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
18+
volume = 1
19+
},
20+
pick_sound = {
21+
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
22+
volume = 0.7
23+
},
24+
weight = 100000
1225
},
1326

1427
{
@@ -51,7 +64,7 @@ data:extend({
5164
type = "technology",
5265
name = "vehicle-battery-equipment-1",
5366
icons = bobmods.equipment.technology_icon_constant_vehicle_equipment({
54-
icon = "__bobvehicleequipment__/graphics/technology/vehicle-battery-equipment-1.png",
67+
icon = "__bobvehicleequipment__/graphics/technology/vehicle-battery-equipment.png",
5568
icon_size = 128,
5669
}),
5770
order = "v-g-i-a",
@@ -87,6 +100,19 @@ data:extend({
87100
order = "v[vehicle-equipment]-c[battery]-2",
88101
stack_size = 50,
89102
default_request_amount = 10,
103+
drop_sound = {
104+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
105+
volume = 1
106+
},
107+
inventory_move_sound = {
108+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
109+
volume = 1
110+
},
111+
pick_sound = {
112+
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
113+
volume = 0.7
114+
},
115+
weight = 100000
90116
},
91117

92118
{
@@ -166,6 +192,19 @@ data:extend({
166192
order = "v[vehicle-equipment]-c[battery]-3",
167193
stack_size = 50,
168194
default_request_amount = 10,
195+
drop_sound = {
196+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
197+
volume = 1
198+
},
199+
inventory_move_sound = {
200+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
201+
volume = 1
202+
},
203+
pick_sound = {
204+
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
205+
volume = 0.7
206+
},
207+
weight = 100000
169208
},
170209

171210
{
@@ -244,6 +283,19 @@ data:extend({
244283
order = "v[vehicle-equipment]-c[battery]-4",
245284
stack_size = 50,
246285
default_request_amount = 10,
286+
drop_sound = {
287+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
288+
volume = 1
289+
},
290+
inventory_move_sound = {
291+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
292+
volume = 1
293+
},
294+
pick_sound = {
295+
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
296+
volume = 0.7
297+
},
298+
weight = 100000
247299
},
248300

249301
{
@@ -324,6 +376,19 @@ data:extend({
324376
order = "v[vehicle-equipment]-c[battery]-5",
325377
stack_size = 50,
326378
default_request_amount = 10,
379+
drop_sound = {
380+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
381+
volume = 1
382+
},
383+
inventory_move_sound = {
384+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
385+
volume = 1
386+
},
387+
pick_sound = {
388+
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
389+
volume = 0.7
390+
},
391+
weight = 100000
327392
},
328393

329394
{
@@ -403,6 +468,19 @@ data:extend({
403468
order = "v[vehicle-equipment]-c[battery]-6",
404469
stack_size = 50,
405470
default_request_amount = 10,
471+
drop_sound = {
472+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
473+
volume = 1
474+
},
475+
inventory_move_sound = {
476+
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
477+
volume = 1
478+
},
479+
pick_sound = {
480+
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
481+
volume = 0.7
482+
},
483+
weight = 100000
406484
},
407485

408486
{

0 commit comments

Comments
 (0)