예제 #1
0
        private System.Collections.IEnumerator UpdateManagerProfitMult(ManagerInfo manager)
        {
            yield return(new WaitUntil(() => IsLoaded));

            if (manager.IsHired)
            {
                Generators.AddProfitBoost(
                    generatorId: manager.Id,
                    boost: BoostInfo.CreateTemp(manager.ManagerProfitMultId, manager.Efficiency(Services)));

                double boostValue = Generators.GetGeneratorInfo(manager.Id).GetProfitBoostValue(manager.ManagerProfitMultId);
                UDebug.Log($"Update generator {manager.Id} efficiency mult to => {boostValue}".Attrib(bold: true, italic: true, color: "y"));
            }
        }