Exemple #1
0
        protected override bool PrivateUpdate(ScenarioFrame frame)
        {
            base.PrivateUpdate(frame);

            if (Sim.Teen)
            {
                float gaySims      = 0;
                float straightSims = 0;
                Flirts.CalculateGayRatio(ref gaySims, ref straightSims);

                bool allowGay = ((gaySims / straightSims) * 100) < GetValue <ManagerFlirt.MaximumGayRatioOption, int>();

                Flirts.SetGenderPreference(Sim, allowGay);
            }
            return(true);
        }