超级玩家
 
- 贡献度
- 30
- 金元
- 5199
- 积分
- 640
- 精华
- 0
- 注册时间
- 2008-8-27
|
刚过教程就改了,原想着roll起来数值高点,看不太懂代码,简单粗暴找了个地方改了下,不知道这样正不正常,获得物品也跟着老是四五个地出?
Assembly-CSharp.dll -- Util
原:
public static int GetRandomRange(this List<int> list)
{
return Util.RandomRange(list[0, list[1 + 1);
}
改要的倍数(最终生成角色最高还是250):
public static int GetRandomRange(this List<int> list)
{
return Util.RandomRange(list[0 * 10, list[1 * 10 + 1);
}
Assembly-CSharp.dll -- PaperMoneyStorage
原:
public void AddPaperMoney(string id, int count, int price = 0)
{
if (this.PaperMoneys.ContainsKey(id))
{
this.PaperMoneys[id.Count += count;
}
else
{
this.PaperMoneys[id = new PaperMoneyStorage_Item
{
Count = count,
ID = id
};
}
for (int i = 0; i < count; i++)
{
this.PaperMoneys[id.PastPrice.Add(price);
}
}
改要的倍数(股票买下时获得数量变成10倍,直接卖就可以刷钱了):
public void AddPaperMoney(string id, int count, int price = 0)
{
if (this.PaperMoneys.ContainsKey(id))
{
this.PaperMoneys[id.Count += count * 10;
}
else
{
this.PaperMoneys[id = new PaperMoneyStorage_Item
{
Count = count * 10,
ID = id
};
}
for (int i = 0; i < count * 10; i++)
{
this.PaperMoneys[id.PastPrice.Add(price);
}
}
先改这么多玩着,解压覆盖到游戏目录下-- JH11_Data\Managed\
--来自百度网盘超级会员V4的分享
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
评分
-
1
查看全部评分
-
|