Skip to content

Commit

Permalink
Improve item sounds (#250)
Browse files Browse the repository at this point in the history
Had a few items that I couldn't find good options for item sounds. Notably, there's a lack of good glass-like sounds. A little research revealed that the game supports speed-changing for sound effects, and I was able to use this to improve the sounds for several items.
  • Loading branch information
Qatavin authored Dec 4, 2024
1 parent 31d674e commit 677f231
Showing 1 changed file with 41 additions and 26 deletions.
67 changes: 41 additions & 26 deletions bobelectronics/prototypes/electronics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,19 @@ data:extend({
order = "c-a2[phenolic-board]",
stack_size = 200,
drop_sound = {
filename = "__base__/sound/item/solid-fuel-inventory-move.ogg",
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.7,
speed = 0.85,
},
inventory_move_sound = {
filename = "__base__/sound/item/solid-fuel-inventory-move.ogg",
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.7,
speed = 0.85,
},
pick_sound = {
filename = "__base__/sound/item/solid-fuel-inventory-pickup.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-pickup.ogg",
volume = 0.8,
speed = 0.85,
},
},

Expand Down Expand Up @@ -342,16 +345,19 @@ data:extend({
order = "c-a3[fibreglass-board]",
stack_size = 200,
drop_sound = {
filename = "__base__/sound/item/solid-fuel-inventory-move.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.85,
speed = 1.6,
},
inventory_move_sound = {
filename = "__base__/sound/item/solid-fuel-inventory-move.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.85,
speed = 1.6,
},
pick_sound = {
filename = "__base__/sound/item/solid-fuel-inventory-pickup.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-pickup.ogg",
volume = 0.85,
speed = 1.6,
},
},

Expand Down Expand Up @@ -417,16 +423,19 @@ data:extend({
order = "c-b2[circuit-board]",
stack_size = 200,
drop_sound = {
filename = "__base__/sound/item/planner-inventory-move.ogg",
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.7,
speed = 0.85,
},
inventory_move_sound = {
filename = "__base__/sound/item/planner-inventory-move.ogg",
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.7,
speed = 0.85,
},
pick_sound = {
filename = "__base__/sound/item/planner-inventory-pickup.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-pickup.ogg",
volume = 0.8,
speed = 0.85,
},
},

Expand Down Expand Up @@ -457,16 +466,19 @@ data:extend({
order = "c-b3[superior-circuit-board]",
stack_size = 200,
drop_sound = {
filename = "__base__/sound/item/planner-inventory-move.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.85,
speed = 1.6,
},
inventory_move_sound = {
filename = "__base__/sound/item/planner-inventory-move.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.85,
speed = 1.6,
},
pick_sound = {
filename = "__base__/sound/item/planner-inventory-pickup.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-pickup.ogg",
volume = 0.85,
speed = 1.6,
},
},

Expand Down Expand Up @@ -497,16 +509,19 @@ data:extend({
order = "c-b4[multi-layer-circuit-board]",
stack_size = 200,
drop_sound = {
filename = "__base__/sound/item/planner-inventory-move.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.85,
speed = 1.6,
},
inventory_move_sound = {
filename = "__base__/sound/item/planner-inventory-move.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-move.ogg",
volume = 0.85,
speed = 1.6,
},
pick_sound = {
filename = "__base__/sound/item/planner-inventory-pickup.ogg",
volume = 0.7,
filename = "__base__/sound/item/wood-inventory-pickup.ogg",
volume = 0.85,
speed = 1.6,
},
},

Expand Down

0 comments on commit 677f231

Please sign in to comment.