Default: Add missing 'default_dig_snappy' sound
authorparamat <mat.gregory@virginmedia.com>
Sat, 10 Dec 2016 01:05:16 +0000 (01:05 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 13 Dec 2016 03:15:30 +0000 (03:15 +0000)
Some nodes with the snappy group (wool, glass pane, seeds) were missing
sound when dug with a sword.
Adding the sound causes it to be used for glass pane, so define a 'dig'
sound in the 'node sound glass defaults' table, use the footstep sound.
Adding the sound also causes it to be used for seeds which deliberately
have no dig sound, so add an empty sound override for seed dig.

Reduce the gain of the glass footstep sound which was excessively loud.

Add some freesound members to license.txt.

mods/default/README.txt
mods/default/functions.lua
mods/default/license.txt
mods/default/sounds/default_dig_snappy.ogg [new file with mode: 0644]
mods/farming/api.lua

index 9dde0eba100997e05617233dd7ea30ca663000a3..d261b6b5d16888c42525fa93dca9f6c331d8801c 100644 (file)
@@ -252,10 +252,13 @@ Metal sounds:
 Tool breaking sounds added by sofar: CC-BY-3.0
   default_tool_breaks.* - http://www.freesound.org/people/HerbertBoland/sounds/33206/
 
-AGFX
-https://www.freesound.org/people/AGFX/
-(CC BY 3.0):
+AGFX (CC BY 3.0)
+https://www.freesound.org/people/AGFX/packs/1253/
   default_water_footstep.1.ogg
   default_water_footstep.2.ogg
   default_water_footstep.3.ogg
 (default_water_footstep.4.ogg is silent)
+
+blukotek (CC0 1.0)
+https://www.freesound.org/people/blukotek/sounds/251660/
+  default_dig_snappy.ogg
index ed373ed77a7f78115bb4a98f2f3915e9d29419a0..a8e3355f61d32fee8133df98be53dbe701ce4bde 100644 (file)
@@ -88,7 +88,9 @@ end
 function default.node_sound_glass_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_glass_footstep", gain = 0.5}
+                       {name = "default_glass_footstep", gain = 0.25}
+       table.dig = table.dig or
+                       {name = "default_glass_footstep", gain = 0.45}
        table.dug = table.dug or
                        {name = "default_break_glass", gain = 1.0}
        default.node_sound_defaults(table)
index 137923c89d3f182ba04684c1a0dd3c3e97e039a8..e9267366aa65aeb2452fafc7a4e9bd49bfb7ab6c 100644 (file)
@@ -144,6 +144,9 @@ Copyright (C) 2009 cmusounddesign
 Copyright (C) 2010 Tomlija
 Copyright (C) 2010 lsprice
 Copyright (C) 2014 sonictechtonic
+Copyright (C) 2015 yadronoff
+Copyright (C) 2007 HerbertBoland
+Copyright (C) 2006 AGFX
 
 You are free to:
 Share — copy and redistribute the material in any medium or format.
diff --git a/mods/default/sounds/default_dig_snappy.ogg b/mods/default/sounds/default_dig_snappy.ogg
new file mode 100644 (file)
index 0000000..3686fcd
Binary files /dev/null and b/mods/default/sounds/default_dig_snappy.ogg differ
index 3ff182e9da9327c26af9bc8dbc4b23abb8ca8035..182e1b20d347e44bbbf885f565a130c19d0089b1 100644 (file)
@@ -307,6 +307,7 @@ farming.register_plant = function(name, def)
                },
                fertility = def.fertility,
                sounds = default.node_sound_dirt_defaults({
+                       dig = {name = "", gain = 0},
                        dug = {name = "default_grass_footstep", gain = 0.2},
                        place = {name = "default_place_node", gain = 0.25},
                }),