Example #1
0
        public override void PreUpdate()
        {
            if (Main.netMode == NetmodeID.SinglePlayer || Main.dedServ)
            {
                TimeSkipManager.UpdateTimeSkip();
                TimeStopManagement.MainOnOnTick();
            }


            TBAPlayer plr = TimeStopManagement.TimeStopper as TBAPlayer;

            if (TimeStopManagement.TimeStoppedFor <= 78 && TimeStopManagement.TimeStoppedFor > 76)
            {
                if (plr.StandUser)
                {
                    if (plr.Stand is TheWorldStand)
                    {
                        TBAMod.PlayVoiceLine("Sounds/TheWorld/TimeResume");
                        Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/TheWorld/TheWorld_ZaWarudoReleaseSFX"));
                    }

                    if (plr.Stand is StarPlatinumStand)
                    {
                        Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/StarPlatinum/SP_TimeRestore"));
                    }
                }
            }

            base.PreUpdate();
        }
Example #2
0
        public override void PostDrawTiles()
        {
            if (Main.netMode == NetmodeID.MultiplayerClient)
            {
                TimeSkipManager.UpdateTimeSkip();
                TimeStopManagement.MainOnOnTick();
            }

            base.PostDrawTiles();
        }