资深玩家
  
- 贡献度
- 2023
- 金元
- 26032
- 积分
- 10705
- 精华
- 1
- 注册时间
- 2021-1-12
|
主要的修改就在这一段,其它也是改点数值
增加支持该游戏机的游戏对销量的影响 :
if (this.games_.arrayGamesScripts[l] && this.games_.arrayGamesScripts[l].isOnMarket)
{
for (int m = 0; m < this.games_.arrayGamesScripts[l].gamePlatform.Length; m++)
{
if (this.games_.arrayGamesScripts[l].gamePlatform[m] == this.myID)
{
//游戏销量 对游戏给游戏机带来的销量的影响
float num8;
if (this.games_.arrayGamesScripts[l].exklusiv || this.games_.arrayGamesScripts[l].herstellerExklusiv)
{
num8 = (float)Mathf.RoundToInt(UnityEngine.Random.Range((float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.16f, (float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.2f));
}
else
{
num8 = (float)Mathf.RoundToInt(UnityEngine.Random.Range((float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.04f, (float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.08f));
}
num8 *= this.GetPriceAbzug();//游戏机价格对 游戏给游戏机带来的销量的影响
num8 *= 1f + this.GetTechDifference() * 0.03f;//游戏机技术水平对 游戏给游戏机带来的销量的影响
if (num8 > (float)this.games_.arrayGamesScripts[l].sellsPerWeek[0])
{
num8 = (float)this.games_.arrayGamesScripts[l].sellsPerWeek[0];
}
if (this.games_.arrayGamesScripts[l].exklusiv || this.games_.arrayGamesScripts[l].herstellerExklusiv)
{
this.games_.arrayGamesScripts[l].exklusivKonsolenSells += (long)Mathf.RoundToInt(num8);
}
if ((int)num + (int)num8 + this.units >= 2147483647)
{
num = (float)(int.MaxValue - this.units);
if ((float)(2147483647 - this.units) - num > 0f)
{
num8 = (float)(int.MaxValue - this.units) - num;
}
else
{
num8 = 0f;
}
}
else
{
num += num8;
}
if (this.mS_.multiplayer)
{
if (this.mS_.mpCalls_.isServer)
{
this.mS_.mpCalls_.SERVER_Send_ExklusivKonsolenSells(this.games_.arrayGamesScripts[l], (long)Mathf.RoundToInt(num8));
}
if (this.mS_.mpCalls_.isClient)
{
this.mS_.mpCalls_.CLIENT_Send_ExklusivKonsolenSells(this.games_.arrayGamesScripts[l], (long)Mathf.RoundToInt(num8));
}
}
}
}
}
上面把第一个if里独占的条件去了,然后原来游戏是是有两个数,一个是游戏机最新一周销量的一部分,一个是该游戏最新一周销量的一部分,再取小的一个,
我就直接把第一个数去了,独占和非独占根据不同的比率取该游戏最新一周销量的一部分,
明显的结果就是增加了非独占游戏对游戏机销量的影响,当然这样会有一个问题,本来游戏机的市场份额会加游戏的销量,加上非独占也能加游戏机的销量,
也就是说所有游戏游戏机都有一个正反馈,两者销量都直接起飞
|
评分
-
1
查看全部评分
-
|