Пример #1
0
        public void ScienceChanged(float science, TransactionReasons reason)
        {
            if (System.IgnoreEvents)
            {
                return;
            }

            System.MessageSender.SendScienceMessage(science, reason.ToString());
        }
        public void ReputationChanged(float reputation, TransactionReasons reason)
        {
            if (System.IgnoreEvents)
            {
                return;
            }

            LunaLog.Log($"Reputation changed to: {reputation} reason: {reason}");
            System.MessageSender.SendReputationMsg(reputation, reason.ToString());
        }
Пример #3
0
        public void FundsChanged(double funds, TransactionReasons reason)
        {
            if (System.IgnoreEvents)
            {
                return;
            }

            LunaLog.Log($"Funds changed to: {funds} reason: {reason}");
            System.MessageSender.SendFundsMessage(funds, reason.ToString());
        }
Пример #4
0
/*************************************************************************************************************************/
        void rep_changed(float rep, TransactionReasons reason)
        {
            Log.PushStackInfo("FMRS_Core.rep_changed", "enter rep_changed(float rep, TransactionReasons reason) " + rep.ToString() + " " + reason.ToString());

            if (HighLogic.CurrentGame.Mode != Game.Modes.CAREER)
            {
                return;
            }

            last_rep_change = rep - current_rep;

            Log.dbg("rep changed: {0} {1}", rep, last_rep_change);

            current_rep = rep;

            Log.PopStackInfo("leave rep_changed(float rep)");
        }
Пример #5
0
        void OnScienceChanged(float sci, TransactionReasons scitxreason)
        {
            if (sstv_on_science_toggle && scitxreason == TransactionReasons.VesselRecovery || scitxreason == TransactionReasons.ScienceTransmission)
            {
                science_transmitted = true;

                if (debugging) Debug.Log("[CHATR] Event scienceTX PASS");
            }

            if (debugging) Debug.Log("[CHATR] Event scienceTX triggered, reason : " + scitxreason.ToString());
        }
Пример #6
0
/*************************************************************************************************************************/
        void rep_changed(float rep, TransactionReasons reason)
        {
#if DEBUG
            //if (Debug_Level_1_Active)
            Log.PushStackInfo("FMRS_Core.rep_changed", "enter rep_changed(float rep, TransactionReasons reason) " + rep.ToString() + " " + reason.ToString());
#endif
            if (HighLogic.CurrentGame.Mode != Game.Modes.CAREER)
            {
                return;
            }

            last_rep_change = rep - current_rep;
#if DEBUG
            if (Debug_Active)
            {
                Log.Info("rep changed: " + rep.ToString() + " " + last_rep_change.ToString());
            }
#endif

            current_rep = rep;
#if DEBUG
            //if (Debug_Level_1_Active)
            Log.PopStackInfo("leave rep_changed(float rep)");
#endif
        }