Ejemplo n.º 1
0
        public static void AddRepAction(string input)
        {
            var softwareType     = MarketSimulation.Active.SoftwareTypes.Values.Where(value => !value.OneClient).GetRandom();
            var softwareCategory = softwareType.Categories.Keys.GetRandom();

            Settings.MyCompany.ChangeBusinessRep(5f, "", 1f);
            Example.AddReputation(softwareType.Name, softwareCategory, input.ConvertToIntDef(10000));
            HUD.Instance.AddPopupMessage("Trainer: Reputation has been added for SoftwareType: " + softwareType.Name + ", Category: " + softwareCategory, "Cogs", PopupManager.PopUpAction.None, 0, 0, 0, 0, 1);
        }
Ejemplo n.º 2
0
        public static void MaxMarketRecognition()
        {
            var softwareTypes = MarketSimulation.Active.SoftwareTypes.Values.Where(value => !value.OneClient).ToList();

            foreach (var softwareType in softwareTypes)
            {
                foreach (var category in softwareType.Categories.ToList())
                {
                    Example.AddReputation(softwareType.Name, category.Key, int.MaxValue);
                }
            }

            WindowManager.SpawnDialog("Trainer: Max market recognition is applied to all software types and categories.", false, DialogWindow.DialogType.Information);
        }