From ab19e6ffbd7a64117cd70d3e3b88806c13822c94 Mon Sep 17 00:00:00 2001 From: MEEP of Faith <54301439+MEEPofFaith@users.noreply.github.com> Date: Wed, 30 Dec 2020 16:27:50 -0800 Subject: [PATCH] Launchpad Launch Sound (#4146) * Launchpad Launch Sound * Update LaunchPad.java --- core/src/mindustry/world/blocks/campaign/LaunchPad.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/mindustry/world/blocks/campaign/LaunchPad.java b/core/src/mindustry/world/blocks/campaign/LaunchPad.java index ef60f9a482..d0804bd4cf 100644 --- a/core/src/mindustry/world/blocks/campaign/LaunchPad.java +++ b/core/src/mindustry/world/blocks/campaign/LaunchPad.java @@ -1,6 +1,7 @@ package mindustry.world.blocks.campaign; import arc.*; +import arc.audio.*; import arc.Graphics.*; import arc.Graphics.Cursor.*; import arc.graphics.*; @@ -28,6 +29,7 @@ public class LaunchPad extends Block{ public final int timerLaunch = timers++; /** Time inbetween launches. */ public float launchTime; + public Sound launchSound = Sounds.none; public @Load("@-light") TextureRegion lightRegion; public @Load("launchpod") TextureRegion podRegion; @@ -119,6 +121,7 @@ public class LaunchPad extends Block{ //launch when full and base conditions are met if(items.total() >= itemCapacity && efficiency() >= 1f && timer(timerLaunch, launchTime / timeScale)){ + launchSound.at(x, y); LaunchPayload entity = LaunchPayload.create(); items.each((item, amount) -> entity.stacks.add(new ItemStack(item, amount))); entity.set(this);