使野怪也有概率刷限定职业
归家异途2吧
全部回复
仅看楼主
level 1
位置NpcArmy->GenerateNpcData
int[] Nums = new int[]
{
4,
8,
23,
25,
30,
32,
34,
36
};
int rn = Nums[UnityEngine.Random.Range(0, Nums.Length)];
string name = ((double)UnityEngine.Random.value < 0.1) ? ReGameDataController.Instance.GetJobData(rn).name : ReGameDataController.Instance.GetJobData(enemyArmyData.jobIDList[l].idList[UnityEngine.Random.Range(0, enemyArmyData.jobIDList[l].idList.Count)]).name;
2022年03月05日 12点03分 1
level 1
配合性别判定使用
位置ReGameController->HeroGenerator
if (jobName != null)
{
if (jobName == "精英教官")
{
heroData.sex = 0;
}
if (jobName == "火炮指挥")
{
heroData.sex = 0;
}
if (jobName == "大独裁者")
{
heroData.sex = 0;
}
if (jobName == "豺狼")
{
heroData.sex = 1;
}
if (jobName == "秃鹫")
{
heroData.sex = 1;
}
if (jobName == "蝮蛇")
{
heroData.sex = 1;
}
if (jobName == "毒蝎")
{
heroData.sex = 1;
}
else
{
heroData.sex = UnityEngine.Random.Range(0, 2);
}
}
2022年03月05日 12点03分 2
if要改成if else 火炮改成炮兵
2022年03月05日 16点03分
大佬牛逼 这个我不会修改 我就会简单修改一个代码
2022年03月07日 05点03分
请问能改性别比例吗,比如多出女角色
2022年03月10日 17点03分
level 1
这样?
2022年03月05日 14点03分 7
是的,怎么改的丫。大佬
2022年03月05日 14点03分
@wenjun1854 不教改数值这种**行为 要改自己去找
2022年03月05日 14点03分
@永恒de彼端 好的,ヾ(o′▽`o)ノ°°谢谢
2022年03月05日 14点03分
大佬 能教一下这个宝石怎么改么?
2023年04月04日 03点04分
1