超级玩家
 
- 贡献度
- 150
- 金元
- 3481
- 积分
- 958
- 精华
- 1
- 注册时间
- 2012-5-29
|
本人纯小白,只能修改无限鸟蛋,具体需要用到软件“dnspy”
废话不多说,直接上修改步骤。
第一步:找到游戏目录ROL_Data文件夹并打开,在打开Managed文件夹,备份好Assembly-CSharp.dll此文件。
第二步:打开dnspy,读取Assembly-CSharp.dll,依次打开列表找到BirdHouse
第三步:具体修改如下:
修改第一处:// Token: 0x060002F4 RID: 756
private void updateData()
{
for (int i = 0; i < Loads.DownLand_Data_Now.Count; i++)
{
if (this.zoneID == Loads.DownLand_Data_Now[i][0])
{
if (float.Parse(Loads.DownLand_Data_Now[i][this.OnlyIndex]) * this.outSpeed > this.MaxNumOutProp)
{
Loads.DownLand_Data_Now[i][this.OnlyIndex = (this.MaxNumOutProp / this.outSpeed).ToString();
}
this.outPropNum = float.Parse(Loads.DownLand_Data_Now[i][this.OnlyIndex]) * this.outSpeed + 5f; 此处+5是需要添加的。
return;
}
}
}
修改第二处:
// Token: 0x060002F5 RID: 757 RVA: 0x0001EEF8 File Offset: 0x0001D0F8
private void updateShow()
{
if (this.isFixed)
{
if (!base.transform.Find("ShowA").gameObject.activeSelf)
{
base.transform.Find("ShowA").gameObject.SetActive(true);
}
if (base.transform.Find("ShowB").gameObject.activeSelf)
{
base.transform.Find("ShowB").gameObject.SetActive(false);
}
if (base.transform.Find("UI_BT").Find("FixBT").gameObject.activeSelf)
{
base.transform.Find("UI_BT").Find("FixBT").gameObject.SetActive(false);
}
if (!base.transform.Find("UI_BT").Find("back").gameObject.activeSelf)
{
base.transform.Find("UI_BT").Find("back").gameObject.SetActive(true);
}
if (this.outPropNum >= 1f)
{
if (base.transform.Find("propShow").childCount > 0)
{
if (base.transform.Find("propShow").GetChild(0).GetComponent<PropGet>().Num != (float)Mathf.FloorToInt(this.outPropNum))
{
base.transform.Find("propShow").GetChild(0).GetComponent<PropGet>().Num = (float)Mathf.FloorToInt(this.outPropNum);
}
}
else
{
GameObject gameObject = UnityEngine.Object.Instantiate<GameObject>((GameObject)Resources.Load("PropGet"));
gameObject.name = "dgop002";
gameObject.GetComponent<PropGet>().Num = (float)Mathf.FloorToInt(this.outPropNum) * 5f; 此处*5是需要添加的。
gameObject.GetComponent<PropGet>().ClassID = 11;
gameObject.transform.parent = base.transform.Find("propShow");
gameObject.transform.localPosition = new Vector3(0.1f, 0f, 0f);
gameObject.transform.localScale = new Vector3(1f, 1f, 1f);
}
}
}
else
{
if (base.transform.Find("ShowA").gameObject.activeSelf)
{
base.transform.Find("ShowA").gameObject.SetActive(false);
}
if (!base.transform.Find("ShowB").gameObject.activeSelf)
{
base.transform.Find("ShowB").gameObject.SetActive(true);
}
if (!base.transform.Find("UI_BT").Find("FixBT").gameObject.activeSelf)
{
base.transform.Find("UI_BT").Find("FixBT").gameObject.SetActive(true);
}
if (base.transform.Find("UI_BT").Find("back").gameObject.activeSelf)
{
base.transform.Find("UI_BT").Find("back").gameObject.SetActive(false);
}
}
if (this.isgetplayer && this.player.transform.position.x - base.transform.position.x >= -2f && this.player.transform.position.x - base.transform.position.x <= 2f && base.transform.Find("propShow").childCount > 0 && !base.transform.Find("ShowA").Find("Bird").gameObject.activeSelf)
{
base.transform.Find("ShowA").Find("Bird").gameObject.SetActive(true);
}
}
这两处修改完,进游戏体验无限鸟蛋吧,前提需要自己先用2根绳子把狩猎区的鸟窝建好。
|
|