示例#1
0
        public static long GetStartupAttractiveness(GameContext gameContext, GameEntity startup)
        {
            long score = 0;

            if (Markets.IsPlayableNiche(gameContext, startup.product.Niche))
            {
                score += 100;
            }
            else
            {
                score -= 100;
            }

            var positionOnMarket = Markets.GetPositionOnMarket(gameContext, startup) + 1;

            score += 100 / positionOnMarket;

            var quality = Markets.GetAppQualityOnMarket(gameContext, startup) + 1;

            score += 30 / quality;

            score += (long)startup.branding.BrandPower;

            return(score);
        }