资深玩家
  
- 贡献度
- 2023
- 金元
- 26037
- 积分
- 10706
- 精华
- 1
- 注册时间
- 2021-1-12
|
//没找完四个
if ((!this.exklusive && num2 <= 3) || num2 == 0)
{
this.platformList.Clear();//这个platformList大概是可选的平台列表
for (int k = 0; k < array.Length; k++)//遍历所有平台
{
if (array[k])
{
platformScript component3 = array[k.GetComponent<platformScript>();//拿到单个平台
if (component3 && component3.isUnlocked && gS_.gamePlatform[0 != component3.myID && gS_.gamePlatform[1 != component3.myID && gS_.gamePlatform[2 != component3.myID && gS_.gamePlatform[3 != component3.myID && ((gS_.retro && component3.vomMarktGenommen) || (!gS_.retro && !component3.vomMarktGenommen)))//不在四个平台里的(也就是上面没找着的),及其它要求
{
this.platformList.Add(new publisherScript.PlatformList(component3, component3.GetMarktanteil()));//加进去,后面这个是市场份额
}
}
}
this.platformList = (from i in this.platformList
orderby i.marktanteil descending
select i).ToList<publisherScript.PlatformList>();//按市场份额降序
for (int l = 0; l < this.platformList.Count; l++)//遍历 列表
{
platformScript script_ = this.platformList[l.script_;
if (script_ && gS_.gamePlatform[0 != script_.myID && gS_.gamePlatform[1 != script_.myID && gS_.gamePlatform[2 != script_.myID && gS_.gamePlatform[3 != script_.myID && ((gS_.handy && script_.typ == 3) || (gS_.arcade && script_.typ == 4) || (!gS_.handy && !gS_.arcade && script_.typ == 0) || (!gS_.handy && !gS_.arcade && script_.typ == 1) || (!gS_.handy && !gS_.arcade && script_.typ == 2)) && script_.isUnlocked && ((gS_.retro && script_.vomMarktGenommen) || (!gS_.retro && !script_.vomMarktGenommen)) && (gS_.gameTyp == 0 || (gS_.gameTyp == 1 && script_.internet) || (gS_.gameTyp == 2 && script_.internet)) && (script_.npc || (script_.thridPartyGames && UnityEngine.Random.Range(0, script_.price) < UnityEngine.Random.Range(0, this.platforms_.GetDurchschnittsDevKitPreis()) && (UnityEngine.Random.Range(0f, 100f + script_.GetMarktanteil()) > 60f || script_.GetMarktanteil() > 30f))))
//这一段也是各种要求,主要看后面
script_.npc ||//如果不是npc就要满足后面括号
(
script_.thridPartyGames &&平台接受第三方游戏
UnityEngine.Random.Range(0, script_.price) < UnityEngine.Random.Range(0, this.platforms_.GetDurchschnittsDevKitPreis())
0到平台价格 中随机一个数 < 0到所有平台平均价格 中随机一个数
&&
(
UnityEngine.Random.Range(0f, 100f + script_.GetMarktanteil()) > 60f //0到100 + 份额>60
|| script_.GetMarktanteil() > 30f // 或份额 > 30
)
)
接着
{
num = script_.myID;
bool flag2 = false;
if (this.ownPlatform && script_.manufacturer_GE.Contains(this.name_GE))
{
flag2 = true;
}//ai自己的平台
if (UnityEngine.Random.Range(0, 100) > 50 || script_.playerConsole || script_.multiplaySlot != -1 || flag2)// 1/2概率 或玩家平台 或ai平台 也就是就1/2概率
{
gS_.gamePlatform[num2 = script_.myID;//作为游戏的平台
gS_.gamePlatformScript[num2 = script_;
gS_.costs_entwicklung += (long)script_.dev_costs;
if (script_.playerConsole || script_.multiplaySlot != -1)//玩家平台
{
script_.SellPlayerKonsoleToNPC(this);//卖出给ai
}
if (gS_.exklusiv)
{
return;
}
num2++;//下一个
if (num2 >= 4)
{
return;
}
}
}
}
}
|
评分
-
1
查看全部评分
-
|