Created
February 1, 2020 16:01
-
-
Save matrix47/6469ab062ddb407bec13effa8216466f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/prototypes/robots/py-construction-robot-01.lua b/prototypes/robots/py-construction-robot-01.lua | |
index 68e6483..581da97 100644 | |
--- a/prototypes/robots/py-construction-robot-01.lua | |
+++ b/prototypes/robots/py-construction-robot-01.lua | |
@@ -1,3 +1,5 @@ | |
+local sounds = require "__base__/prototypes/entity/demo-sounds" | |
+ | |
RECIPE { | |
type = 'recipe', | |
name = 'py-construction-robot-01', | |
@@ -246,10 +248,7 @@ ENTITY { | |
animation_speed = 0.3 | |
} | |
}, | |
- working_sound = | |
- { | |
- filename = '__base__/sound/flying-robot-1.ogg', | |
- }, | |
+ working_sound = sounds.construction_robot(0.7), | |
cargo_centered = {0.0, 0.2}, | |
construction_vector = {0.30, 0.22} | |
} | |
diff --git a/prototypes/robots/py-logistic-robot-01.lua b/prototypes/robots/py-logistic-robot-01.lua | |
index 0a9c2eb..a35731d 100644 | |
--- a/prototypes/robots/py-logistic-robot-01.lua | |
+++ b/prototypes/robots/py-logistic-robot-01.lua | |
@@ -1,3 +1,5 @@ | |
+local sounds = require "__base__/prototypes/entity/demo-sounds" | |
+ | |
local cargo_bot = | |
RECIPE { | |
type = 'recipe', | |
@@ -230,9 +232,6 @@ ENTITY { | |
scale = 0.5 | |
} | |
}, | |
- working_sound = | |
- { | |
- filename = '__base__/sound/flying-robot-1.ogg', | |
- }, | |
+ working_sound = sounds.flying_robot(0.5), | |
cargo_centered = {0.0, 0.2} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment