From 75e1e6f1666136f2e8067abb4dfdd37be7e6da24 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Wed, 8 Mar 2023 05:26:11 -0800 Subject: [PATCH] Player unit spawns before core animation finishes (#8375) * Player unit spawns before core animation finishes * the * Shouldn't the landing particles also be aimed at the tile's world pos? --- core/src/mindustry/core/Control.java | 2 +- core/src/mindustry/world/blocks/storage/CoreBlock.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java index 9ee4287fa5..af3d649437 100644 --- a/core/src/mindustry/core/Control.java +++ b/core/src/mindustry/core/Control.java @@ -193,7 +193,7 @@ public class Control implements ApplicationListener, Loadable{ if(!settings.getBool("skipcoreanimation") && !state.rules.pvp){ coreDelay = coreLandDuration; //delay player respawn so animation can play. - player.deathTimer = -80f; + player.deathTimer = Player.deathDelay - coreLandDuration; //TODO this sounds pretty bad due to conflict if(settings.getInt("musicvol") > 0){ Musics.land.stop(); diff --git a/core/src/mindustry/world/blocks/storage/CoreBlock.java b/core/src/mindustry/world/blocks/storage/CoreBlock.java index 50c1ec4dda..e1a59051ec 100644 --- a/core/src/mindustry/world/blocks/storage/CoreBlock.java +++ b/core/src/mindustry/world/blocks/storage/CoreBlock.java @@ -395,7 +395,7 @@ public class CoreBlock extends StorageBlock{ if(renderer.getLandTime() >= 1f){ tile.getLinkedTiles(t -> { if(Mathf.chance(0.4f)){ - Fx.coreLandDust.at(t.worldx(), t.worldy(), angleTo(t) + Mathf.range(30f), Tmp.c1.set(t.floor().mapColor).mul(1.5f + Mathf.range(0.15f))); + Fx.coreLandDust.at(t.worldx(), t.worldy(), angleTo(t.worldx(), t.worldy()) + Mathf.range(30f), Tmp.c1.set(t.floor().mapColor).mul(1.5f + Mathf.range(0.15f))); } });