songdings 发表于 2022-10-18 00:11

:):):):):):):):):)

amwsff 发表于 2022-10-18 07:44

{
                int num = 0;
                int num2 = 0;
                GameObject[] array = GameObject.FindGameObjectsWithTag("Platform");
                if (this.IsTochterfirma() && !this.tf_onlyPlayerConsole && (this.tf_platformFocus != -1 || this.tf_platformFocus != -1 || this.tf_platformFocus != -1 || this.tf_platformFocus != -1))
                {
                        for (int i2 = 0; i2 < array.Length; i2++)
                        {
                                if (array)
                                {
                                        platformScript component = array.GetComponent<platformScript>();
                                        if (component && (this.tf_platformFocus == component.myID || this.tf_platformFocus == component.myID || this.tf_platformFocus == component.myID || this.tf_platformFocus == component.myID) && ((gS_.handy && component.typ == 3) || (gS_.arcade && component.typ == 4) || (!gS_.handy && !gS_.arcade && component.typ == 0) || (!gS_.handy && !gS_.arcade && component.typ == 1) || (!gS_.handy && !gS_.arcade && component.typ == 2)) && component.isUnlocked && ((gS_.retro && component.vomMarktGenommen) || (!gS_.retro && !component.vomMarktGenommen)) && (gS_.gameTyp == 0 || (gS_.gameTyp == 1 && component.internet) || (gS_.gameTyp == 2 && component.internet)))
                                        {
                                                gS_.gamePlatform = component.myID;
                                                gS_.gamePlatformScript = component;
                                                gS_.costs_entwicklung += (long)component.dev_costs;
                                                if (gS_.exklusiv)
                                                {
                                                        this.ClearPlatforms(gS_);
                                                        return;
                                                }
                                                num2++;
                                                if (num2 >= 4)
                                                {
                                                        this.ClearPlatforms(gS_);
                                                        return;
                                                }
                                        }
                                }
                        }
                }
                if (this.IsTochterfirma())
                {
                        for (int j = 0; j < array.Length; j++)
                        {
                                if (array)
                                {
                                        platformScript component2 = array.GetComponent<platformScript>();
                                        if (component2 && component2.isUnlocked && gS_.gamePlatform != component2.myID && gS_.gamePlatform != component2.myID && gS_.gamePlatform != component2.myID && gS_.gamePlatform != component2.myID && ((gS_.retro && component2.vomMarktGenommen) || (!gS_.retro && !component2.vomMarktGenommen)))
                                        {
                                                this.platformList.Add(new publisherScript.PlatformList(component2, (float)component2.date_year + component2.GetMarktanteil()));
                                        }
                                }
                        }
                        this.platformList = (from i in this.platformList
                        orderby i.marktanteil descending
                        select i).ToList<publisherScript.PlatformList>();
                        for (int k = 0; k < this.platformList.ToArray().Length; k++)
                        {
                                platformScript script_ = this.platformList.script_;
                                if (script_ && gS_.gamePlatform != script_.myID && gS_.gamePlatform != script_.myID && gS_.gamePlatform != script_.myID && gS_.gamePlatform != 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 && script_.ownerID == this.mS_.myID && ((gS_.retro && script_.vomMarktGenommen) || (!gS_.retro && !script_.vomMarktGenommen)) && (gS_.gameTyp == 0 || (gS_.gameTyp == 1 && script_.internet) || (gS_.gameTyp == 2 && script_.internet)))
                                {
                                        num = script_.myID;
                                        gS_.gamePlatform = script_.myID;
                                        gS_.gamePlatformScript = script_;
                                        gS_.costs_entwicklung += (long)script_.dev_costs;
                                        if (gS_.exklusiv)
                                        {
                                                this.ClearPlatforms(gS_);
                                                return;
                                        }
                                        num2++;
                                        if (num2 >= 4)
                                        {
                                                this.ClearPlatforms(gS_);
                                                return;
                                        }
                                }
                        }
                }
                if (this.IsTochterfirma() && this.tf_onlyPlayerConsole)
                {
                        if (num2 != 0)
                        {
                                if (num2 == 1 && gS_.herstellerExklusiv)
                                {
                                        gS_.herstellerExklusiv = false;
                                        gS_.exklusiv = true;
                                }
                                this.ClearPlatforms(gS_);
                                return;
                        }
                        if (gS_.herstellerExklusiv)
                        {
                                gS_.herstellerExklusiv = false;
                                gS_.exklusiv = true;
                        }
                }
                if (this.ownPlatform)
                {
                        for (int l = 0; l < array.Length; l++)
                        {
                                if (array)
                                {
                                        platformScript component3 = array.GetComponent<platformScript>();
                                        if (component3 && component3.isUnlocked && gS_.gamePlatform != component3.myID && gS_.gamePlatform != component3.myID && gS_.gamePlatform != component3.myID && gS_.gamePlatform != component3.myID && ((gS_.retro && component3.vomMarktGenommen) || (!gS_.retro && !component3.vomMarktGenommen)))
                                        {
                                                this.platformList.Add(new publisherScript.PlatformList(component3, (float)component3.date_year + component3.GetMarktanteil()));
                                        }
                                }
                        }
                        this.platformList = (from i in this.platformList
                        orderby i.marktanteil descending
                        select i).ToList<publisherScript.PlatformList>();
                        for (int m = 0; m < this.platformList.ToArray().Length; m++)
                        {
                                platformScript script_2 = this.platformList.script_;
                                if (script_2 && gS_.gamePlatform != script_2.myID && gS_.gamePlatform != script_2.myID && gS_.gamePlatform != script_2.myID && gS_.gamePlatform != script_2.myID && ((gS_.handy && script_2.typ == 3) || (gS_.arcade && script_2.typ == 4) || (!gS_.handy && !gS_.arcade && script_2.typ == 0) || (!gS_.handy && !gS_.arcade && script_2.typ == 1) || (!gS_.handy && !gS_.arcade && script_2.typ == 2)) && script_2.isUnlocked && ((gS_.retro && script_2.vomMarktGenommen) || (!gS_.retro && !script_2.vomMarktGenommen)) && (gS_.gameTyp == 0 || (gS_.gameTyp == 1 && script_2.internet) || (gS_.gameTyp == 2 && script_2.internet)) && script_2.OwnerIsNPC())
                                {
                                        num = script_2.myID;
                                        bool flag = false;
                                        if (script_2.manufacturer_GE.Contains(this.name_GE))
                                        {
                                                flag = true;
                                        }
                                        if (flag)
                                        {
                                                gS_.gamePlatform = script_2.myID;
                                                gS_.gamePlatformScript = script_2;
                                                gS_.costs_entwicklung += (long)script_2.dev_costs;
                                                if (gS_.exklusiv)
                                                {
                                                        this.ClearPlatforms(gS_);
                                                        return;
                                                }
                                                num2++;
                                                if (num2 >= 4)
                                                {
                                                        this.ClearPlatforms(gS_);
                                                        return;
                                                }
                                        }
                                }
                        }
                }
                if ((!this.exklusive && num2 <= 3) || num2 == 0)
                {
                        this.platformList.Clear();
                        for (int n = 0; n < array.Length; n++)
                        {
                                if (array)
                                {
                                        platformScript component4 = array.GetComponent<platformScript>();
                                        if (component4 && component4.isUnlocked && gS_.gamePlatform != component4.myID && gS_.gamePlatform != component4.myID && gS_.gamePlatform != component4.myID && gS_.gamePlatform != component4.myID && ((gS_.retro && component4.vomMarktGenommen) || (!gS_.retro && !component4.vomMarktGenommen)))
                                        {
                                                this.platformList.Add(new publisherScript.PlatformList(component4, (float)component4.date_year + component4.GetMarktanteil()));
                                        }
                                }
                        }
                        this.platformList = (from i in this.platformList
                        orderby i.marktanteil descending
                        select i).ToList<publisherScript.PlatformList>();
                        for (int num3 = 0; num3 < this.platformList.Count; num3++)
                        {
                                platformScript script_3 = this.platformList.script_;
                                if (script_3 && gS_.gamePlatform != script_3.myID && gS_.gamePlatform != script_3.myID && gS_.gamePlatform != script_3.myID && gS_.gamePlatform != script_3.myID && ((gS_.handy && script_3.typ == 3) || (gS_.arcade && script_3.typ == 4) || (!gS_.handy && !gS_.arcade && script_3.typ == 0) || (!gS_.handy && !gS_.arcade && script_3.typ == 1) || (!gS_.handy && !gS_.arcade && script_3.typ == 2)) && script_3.isUnlocked && ((gS_.retro && script_3.vomMarktGenommen) || (!gS_.retro && !script_3.vomMarktGenommen)) && (gS_.gameTyp == 0 || (gS_.gameTyp == 1 && script_3.internet) || (gS_.gameTyp == 2 && script_3.internet)) && (script_3.OwnerIsNPC() || (script_3.thridPartyGames && UnityEngine.Random.Range(0, script_3.price) < UnityEngine.Random.Range(0, this.platforms_.GetDurchschnittsDevKitPreis()) && (UnityEngine.Random.Range(0f, 100f + script_3.GetMarktanteil()) > 60f || script_3.GetMarktanteil() > 30f))))
                                {
                                        num = script_3.myID;
                                        bool flag2 = false;
                                        if (this.ownPlatform && script_3.manufacturer_GE.Contains(this.name_GE))
                                        {
                                                flag2 = true;
                                        }
                                        if (UnityEngine.Random.Range(0, 100) > 50 || script_3.ownerID == this.mS_.myID || !script_3.OwnerIsNPC() || flag2)
                                        {
                                                gS_.gamePlatform = script_3.myID;
                                                gS_.gamePlatformScript = script_3;
                                                gS_.costs_entwicklung += (long)script_3.dev_costs;
                                                if (!script_3.OwnerIsNPC())
                                                {
                                                        script_3.SellPlayerKonsoleToNPC(this);
                                                }
                                                if (gS_.exklusiv)
                                                {
                                                        this.ClearPlatforms(gS_);
                                                        return;
                                                }
                                                num2++;
                                                if (num2 >= 4)
                                                {
                                                        this.ClearPlatforms(gS_);
                                                        return;
                                                }
                                        }
                                }
                        }
                }
                if (num2 == 0)
                {
                        gS_.gamePlatform = num;
                }
                this.ClearPlatforms(gS_);
        }

amwsff 发表于 2022-10-18 07:47

方法吃鸡

frances27 发表于 2022-10-20 12:38

谢谢分享

zcool131 发表于 2022-10-22 00:28

666666666666666

mmshishang 发表于 2022-10-22 08:02

11111111111111111111111111111111

3dm_18135277 发表于 2022-10-23 00:47

6666666666666666

Mask0411 发表于 2022-10-23 01:07

6666666666666

chuxiaolon 发表于 2022-10-27 16:30

感谢大佬

我叉叉叉 发表于 2022-10-27 18:21

666666666666666666666666

qq2bubu 发表于 2022-10-29 23:08

析流行牵头者获奖条件机制 [修

j1158460231 发表于 2022-10-30 10:49

666666666666666666666666666666666

cccgame1 发表于 2022-10-31 02:34

66666666666

SunnyQvQ 发表于 2022-10-31 18:11

支持~~~~

iamarookie211 发表于 2022-11-3 10:54

...................................

2742214367a 发表于 2022-11-6 10:24

加哦就

jimmmy66 发表于 2022-11-12 22:25

666666666666666666666666666

酷洛薇拉の幻想 发表于 2022-11-13 06:48

牵头者获奖条件机制 [修改]








CharlesMorgan 发表于 2022-11-13 07:14

谢谢分享

猪猪鑫 发表于 2022-11-13 11:35

非常感谢分享

lidou168 发表于 2022-11-13 12:04

看看楼主的说法

a8215131 发表于 2022-11-13 14:51

dsdsaldsajkl

w.情 发表于 2022-11-15 14:05

666666666666

RenktonCJ 发表于 2022-11-16 20:27

感谢分享

qq1178074479 发表于 2022-11-19 12:17

谢谢分享

冷酷的AI 发表于 2022-11-27 23:02

感谢楼主分享

七创qi 发表于 2022-11-28 19:29

11111111111

酷酷哥 发表于 2022-11-28 19:46

下载之前先顶帖。下载完要是不能用就回来顶帖,能用就不来了。

离难 发表于 2022-11-30 15:15

6666666666

samwcd 发表于 2022-12-2 08:44

66666666666666
页: 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15
查看完整版本: 从代码角度解析最佳开发商、最佳发行商、流行牵头者获奖条件机制