初级玩家

- 贡献度
- 0
- 金元
- 485
- 积分
- 49
- 精华
- 0
- 注册时间
- 2018-1-31
|
搜索SellPlayer程序集
把
for (int l = 0; l < this.games_.arrayGamesScripts.Length; l++)
{
if (this.games_.arrayGamesScripts[l] && (this.games_.arrayGamesScripts[l].exklusiv || this.games_.arrayGamesScripts[l].herstellerExklusiv) && 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 num7 = num * 0.3f;
if (this.games_.arrayGamesScripts[l].herstellerExklusiv)
{
num7 = num * 0.15f;
}
num7 *= this.GetPriceAbzug();
float num8 = (float)Mathf.RoundToInt(UnityEngine.Random.Range((float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.2f, (float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.3f));
num8 = num8 / 100f * (130f - this.GetMarktanteil());
if (num8 > (float)this.sellsPerWeek[0])
{
num8 = (float)this.sellsPerWeek[0];
}
if (num7 >= num8)
{
if (num8 > 0f)
{
this.games_.arrayGamesScripts[l].exklusivKonsolenSells += (long)Mathf.RoundToInt(num8);
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));
}
}
}
}
else if (num7 > 0f)
{
this.games_.arrayGamesScripts[l].exklusivKonsolenSells += (long)Mathf.RoundToInt(num7);
num += num7;
if (this.mS_.multiplayer)
{
if (this.mS_.mpCalls_.isServer)
{
this.mS_.mpCalls_.SERVER_Send_ExklusivKonsolenSells(this.games_.arrayGamesScripts[l], (long)Mathf.RoundToInt(num7));
}
if (this.mS_.mpCalls_.isClient)
{
this.mS_.mpCalls_.CLIENT_Send_ExklusivKonsolenSells(this.games_.arrayGamesScripts[l], (long)Mathf.RoundToInt(num7));
}
}
}
}
}
}
}
改为
for (int l = 0; l < this.games_.arrayGamesScripts.Length; l++)
{
if (this.games_.arrayGamesScripts[l] && (this.games_.arrayGamesScripts[l].exklusiv || this.games_.arrayGamesScripts[l].herstellerExklusiv) && this.games_.arrayGamesScripts[l].isOnMarket && !this.games_.arrayGamesScripts[l].typ_addon && !this.games_.arrayGamesScripts[l].typ_addonStandalone && !this.games_.arrayGamesScripts[l].typ_bundleAddon && !this.games_.arrayGamesScripts[l].typ_mmoaddon)
{
for (int m = 0; m < this.games_.arrayGamesScripts[l].gamePlatform.Length; m++)
{
float num7 = (float)Mathf.RoundToInt(UnityEngine.Random.Range((float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.2f, (float)this.games_.arrayGamesScripts[l].sellsPerWeek[0] * 0.3f));
if (this.games_.arrayGamesScripts[l].gamePlatform[m] == this.myID)
{
num7 *= 1f;
if (this.games_.arrayGamesScripts[l].herstellerExklusiv)
{
num7 *= 0.5f;
}
num7 *= this.GetPriceAbzug();
num7 = num7 / 100f * (130f - this.GetMarktanteil());
if (num7 > 0f)
{
this.games_.arrayGamesScripts[l].exklusivKonsolenSells += (long)Mathf.RoundToInt(num7);
num += num7;
if (this.mS_.multiplayer)
{
if (this.mS_.mpCalls_.isServer)
{
this.mS_.mpCalls_.SERVER_Send_ExklusivKonsolenSells(this.games_.arrayGamesScripts[l], (long)Mathf.RoundToInt(num7));
}
if (this.mS_.mpCalls_.isClient)
{
this.mS_.mpCalls_.CLIENT_Send_ExklusivKonsolenSells(this.games_.arrayGamesScripts[l], (long)Mathf.RoundToInt(num7));
}
}
}
}
}
}
} |
|