悬赏可以控制NPC公司IP的平台类型和付费类型的办法,解决GTA和CS有时候是街机,英雄联盟有时候是买断制游戏的问题
本帖最后由 yellowottomany 于 2022-7-28 12:00 编辑NPCIPs.txt这个文件里加<中间是平台类型代码>和<中间是付费模式代码>,分别可以控制IP的平台类型(电脑,主机,掌机,街机,手机)还有付费模式(买断,月费,免费),因为有的时候GTA和CS是街机十分影响游戏体验
固定平台和类型
textScript添加类
private int GetGameTypeFromSonderIP(int i)
{
for (int j = 0; j <= 2; j++)
{
if (this.npcIPs.Contains("<TY" + j.ToString() + ">"))
{
return j;
}
}
return 0;
}
textScript添加类
private int GetPlatTypeFromSonderIP(int i)
{
for (int j = 0; j <= 5; j++)
{
if (this.npcIPs.Contains("<PL" + j.ToString() + ">"))
{
return j;
}
}
return 0;
}
int gameZielgruppe = 0;后加
int gameType = 0;
int platType = 0;
num2 = this.GetSubGenreFromSonderIP(i);后加
gameType = this.GetGameTypeFromSonderIP(i);
platType = this.GetPlatTypeFromSonderIP(i);
text = text.Replace("<TG" + gameZielgruppe.ToString() + ">", "");后加
text = text.Replace("<TY" + gameType.ToString() + ">", "");
text = text.Replace("<PL" + platType.ToString() + ">", "");
game_.SetMyName(text);后加
game_.gameTyp = gameType;
if (platType == 1)
{
game_.exklusiv = true;
}
if (platType == 5)
{
game_.handy = true;
}
if (platType == 4)
{
game_.arcade = true;
}
if (platType == 3)
{
game_.retro = true;
}
if (platType == 2)
{
game_.herstellerExklusiv = true;
}
改动createnewgame2
删除
if (!forceContractGame)
{
this.tS_.GetRandomNpcIP(this.myID, gameScript);
}
后面的
gameScript.gameTyp = 0;
改动SetMMOorF2P
{
if (platTyp == 0 || platTyp == 1 || platTyp == 5 || platTyp == 2)
{
if (this.IsTochterfirma())
{
if (!this.tf_allowMMO)
{
return;
}
if (!this.tf_allowF2P)
{
return;
}
if (this.tf_onlyPlayerConsole)
{
return;
}
}
if (script_.gameTyp == 2)
{
if (this.publisher && this.unlock_.Get(22))
{
script_.gameTyp = 2;
script_.exklusiv = false;
script_.herstellerExklusiv = false;
script_.verkaufspreis = 0;
script_.inAppPurchase = true;
script_.inAppPurchase = true;
script_.inAppPurchase = true;
script_.inAppPurchase = true;
if (UnityEngine.Random.Range(0, 100) > 50)
{
script_.inAppPurchase = true;
}
if (UnityEngine.Random.Range(0, 100) > 50)
{
script_.inAppPurchase = true;
return;
}
}
}
else if (script_.gameTyp == 1 && this.gF_.gameplayFeatures_UNLOCK)
{
script_.gameTyp = 1;
script_.aboPreis = 5;
}
}
}
页:
[1]