资深玩家
- 贡献度
- 2023
- 金元
- 26012
- 积分
- 10703
- 精华
- 1
- 注册时间
- 2021-1-12
|
本帖最后由 dybhkc 于 2022-7-31 18:32 编辑
textscript添加方法
private int GetGameTypeFromSonderIP(int i)
{
for (int j = 0; j <= 2; j++)
{
if (this.npcIPs.Contains("<TY" + j.ToString() + ">"))
{
return j;
}
}
return 0;
}
private int GetPlatTypeFromSonderIP(int i)
{
for (int j = 0; j <= 5; j++)
{
if (this.npcIPs.Contains("<PL" + j.ToString() + ">"))
{
return j;
}
}
return 0;
}
gamescript加
public int platType;
保存
textscript.GetRandomNpcIP():
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;
game_.platType=platType;
保存
publisherscript加方法
private int SetPlatformTyp2(gameScript script_, bool forceContractGame)
{
int num = script_.platType;
if (this.IsTochterfirma())
{
if (this.tf_noArcade && num == 4)
{
num = 0;
}
if (this.tf_noHandy && num == 5)
{
num = 0;
}
if (this.tf_noRetro && num == 3)
{
num = 0;
}
}
if (this.onlyMobile && this.unlock_.Get(65))
{
num = 5;
}
if (forceContractGame)
{
num = 1;
}
if (num == 1)
{
script_.exklusiv = true;
}
if (num == 5)
{
script_.handy = true;
}
if (num == 4)
{
script_.arcade = true;
}
if (num == 3)
{
script_.retro = true;
}
if (num == 2)
{
script_.herstellerExklusiv = true;
}
return num;
}
保存
publisherscript.createnewgame2():
删除this.tS_.GetRandomNpcIP(this.myID, gameScript);后面的gameScript.gameTyp = 0;
改int platTyp2 = this.SetPlatformTyp(gameScript, forceContractGame);为int platTyp2 = this.SetPlatformTyp2(gameScript, forceContractGame);
pulisherscript.SetMMOorF2P():
里面整个改掉
private void SetMMOorF2P(gameScript script_, int platTyp)
{
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] = 0;
script_.inAppPurchase[0] = true;
script_.inAppPurchase[1] = true;
script_.inAppPurchase[2] = true;
script_.inAppPurchase[3] = true;
if (UnityEngine.Random.Range(0, 100) > 50)
{
script_.inAppPurchase[4] = true;
}
if (UnityEngine.Random.Range(0, 100) > 50)
{
script_.inAppPurchase[5] = true;
return;
}
}
}
else if (script_.gameTyp == 1 && this.gF_.gameplayFeatures_UNLOCK[23])
{
script_.gameTyp = 1;
script_.aboPreis = 5;
}
}
}
这是改了一些之后的
|
评分
-
1
查看全部评分
-
|