Esempio n. 1
0
        //private static void BossGroup_DropRewards(On.RoR2.BossGroup.orig_DropRewards orig, BossGroup self)
        //{
        //    ItemDropAPI.BossDropParticipatingPlayerCount = _bossItems;
        //    orig(self);
        //}

        /// <summary>
        /// // Helper function for Bossloot
        /// </summary>
        private static void OverrideBossLootScaling(On.RoR2.TeleporterInteraction.orig_OnInteractionBegin orig,
                                                    TeleporterInteraction self, Interactor activator)
        {
            _bossItems = ShareSuite.OverrideBossLootScalingEnabled.Value
                ? ShareSuite.BossLootCredit.Value
                : Run.instance.participatingPlayerCount;
            orig(self, activator);
        }
Esempio n. 2
0
 static void InstantTeleport(On.RoR2.TeleporterInteraction.orig_OnInteractionBegin orig, TeleporterInteraction self, Interactor activator)
 {
     if (NetworkServer.active)
     {
         PVPMode.Teleport(self);
     }
     else
     {
         orig(self, activator);
     }
 }
 private void TeleporterInteraction_OnInteractionBegin(On.RoR2.TeleporterInteraction.orig_OnInteractionBegin orig, TeleporterInteraction self, Interactor activator)
 {
     if (VotesEnabled.Value)
     {
         AttemptInteraction(activator, new Action(() => orig(self, activator)));
     }
     else
     {
         orig(self, activator);
     }
 }
 public void OnTeleporterInteract(On.RoR2.TeleporterInteraction.orig_OnInteractionBegin orig, TeleporterInteraction self, Interactor interactor)
 {
     orig(self, interactor);
     if (CRMissionController.instance)
     {
         CRMissionController.instance.BeginRoundOnInteract();
     }
     else
     {
         Debug.LogWarning("[CRCore3]: OnTeleporterInteract - No CRMissionController instance found!");
     }
 }
Esempio n. 5
0
        /// <summary>
        /// // Helper function for Bossloot
        /// </summary>
        private static void OverrideBossLootScaling(On.RoR2.TeleporterInteraction.orig_OnInteractionBegin orig,
                                                    TeleporterInteraction self, Interactor activator)
        {
            if (!ShareSuite.MultitudesIsActive && ShareSuite.OverrideBossLootScalingEnabled.Value)
            {
                _bossItems = ShareSuite.BossLootCredit.Value;
            }
            else
            {
                _bossItems = Run.instance.participatingPlayerCount;
            }

            orig(self, activator);
        }