Skip to content

Commit

Permalink
Bob vehicle equipment 2.0 (#222)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Qatavin authored Nov 26, 2024
1 parent 4919c69 commit 02858f0
Show file tree
Hide file tree
Showing 24 changed files with 1,637 additions and 347 deletions.
2 changes: 1 addition & 1 deletion bobvehicleequipment/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data:extend({
})

function bobmods.equipment.technology_icon_constant_vehicle_equipment(technology_icon)
local scale = ((technology_icon.icon_size or 256) / 256) * (technology_icon.scale or 1)
local scale = 0.5
local icons = {
technology_icon,
{
Expand Down
80 changes: 79 additions & 1 deletion bobvehicleequipment/prototypes/battery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ data:extend({
order = "v[vehicle-equipment]-c[battery]-1",
stack_size = 50,
default_request_amount = 10,
drop_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
inventory_move_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
pick_sound = {
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
volume = 0.7
},
weight = 100000
},

{
Expand Down Expand Up @@ -51,7 +64,7 @@ data:extend({
type = "technology",
name = "vehicle-battery-equipment-1",
icons = bobmods.equipment.technology_icon_constant_vehicle_equipment({
icon = "__bobvehicleequipment__/graphics/technology/vehicle-battery-equipment-1.png",
icon = "__bobvehicleequipment__/graphics/technology/vehicle-battery-equipment.png",
icon_size = 128,
}),
order = "v-g-i-a",
Expand Down Expand Up @@ -87,6 +100,19 @@ data:extend({
order = "v[vehicle-equipment]-c[battery]-2",
stack_size = 50,
default_request_amount = 10,
drop_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
inventory_move_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
pick_sound = {
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
volume = 0.7
},
weight = 100000
},

{
Expand Down Expand Up @@ -166,6 +192,19 @@ data:extend({
order = "v[vehicle-equipment]-c[battery]-3",
stack_size = 50,
default_request_amount = 10,
drop_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
inventory_move_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
pick_sound = {
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
volume = 0.7
},
weight = 100000
},

{
Expand Down Expand Up @@ -244,6 +283,19 @@ data:extend({
order = "v[vehicle-equipment]-c[battery]-4",
stack_size = 50,
default_request_amount = 10,
drop_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
inventory_move_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
pick_sound = {
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
volume = 0.7
},
weight = 100000
},

{
Expand Down Expand Up @@ -324,6 +376,19 @@ data:extend({
order = "v[vehicle-equipment]-c[battery]-5",
stack_size = 50,
default_request_amount = 10,
drop_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
inventory_move_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
pick_sound = {
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
volume = 0.7
},
weight = 100000
},

{
Expand Down Expand Up @@ -403,6 +468,19 @@ data:extend({
order = "v[vehicle-equipment]-c[battery]-6",
stack_size = 50,
default_request_amount = 10,
drop_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
inventory_move_sound = {
filename = "__base__/sound/item/electric-small-inventory-move.ogg",
volume = 1
},
pick_sound = {
filename = "__base__/sound/item/electric-small-inventory-pickup.ogg",
volume = 0.7
},
weight = 100000
},

{
Expand Down
Loading

0 comments on commit 02858f0

Please sign in to comment.