游戏狂人
- 贡献度
- 1
- 金元
- 10292
- 积分
- 1033
- 精华
- 0
- 注册时间
- 2015-6-20
|
请先参阅:关于修改dll的一些心得(生产效率,人口需求,税收,无人机数量限制,生态人口,生产频率) https://bbs.3dmgame.com/thread-5929959-1-1.html
修改税收、电力、美观、生态、农业等的方法 https://bbs.3dmgame.com/thread-5928801-1-1.html
以上帖子有修改研究效力的方法,但是因为农田,果园,抽水站等等过高的产出效率,大大占用了无人机资源,所以我修改了人口需求,大大减少了单位需求量,原产出效率可以满足极端人口。
vitamin(维他命)的四种需求,我没看成功没。水,食物,家具,电器,商品等已经修改成。目前没发现BUG。
dnSpy打开CliffEmpire_Data\Managed\Assembly-CSharp.dll,在TERRA下搜‘ConsumptionTimerFood’,找到以下字段(不包括红色字段,红色字段是我自己添加的),在PopulationCount后添加*0.1f(没有空格),
意思是把人口需求缩小了十倍。你可以自己改倍数。(鱼我没改)。
适度修改就好
if (TERRA.BeitCountGlobal > 0)
{
this.ConsumptionTimerFood += (float)this.PopulationCount * 0.1f * this.ConsRate_Food * 0.93f * Time.deltaTime * this.EcoMultiplyer;
}
else
{
this.ConsumptionTimerFood += (float)this.PopulationCount * 0.1f * this.ConsRate_Food * Time.deltaTime * this.EcoMultiplyer;
}
if (this.LActive[10])
{
this.ConsumptionTimerWater += (float)this.PopulationCount * 0.1f * this.ConsRate_Water * 0.8f * Time.deltaTime * this.EcoMultiplyer;
}
else
{
this.ConsumptionTimerWater += (float)this.PopulationCount * 0.1f * this.ConsRate_Water * Time.deltaTime * this.EcoMultiplyer;
}
this.ConsumptionTimerFood2 += (float)this.PopulationCount * 0.1f * this.ConsRate_Food2 * Time.deltaTime;
this.ConsumptionTimerFood2_ECO += (float)this.PopulationCount * 0.1f * this.ConsRate_Food2 * Time.deltaTime * this.EcoMultiplyer;
this.ConsumptionTimerFood2_BAD += (float)this.PopulationCount * 0.1f * this.ConsRate_Food2_bad * Time.deltaTime;
this.ConsumptionTimerFood2_BAD_ECO += (float)this.PopulationCount * 0.1f * this.ConsRate_Food2_bad * Time.deltaTime * this.EcoMultiplyer;
this.ConsumptionTimerMebel += (float)this.PopulationCount * 0.1f * this.ConsRate_Meb * Time.deltaTime;
if (this.LActive[9])
{
this.ConsumptionTimerTechnique += (float)this.PopulationCount * 0.1f * this.ConsRate_Tec * 0.75f * Time.deltaTime;
this.ConsumptionTimerGadget += (float)this.PopulationCount * 0.1f * this.ConsRate_Gad * 0.75f * Time.deltaTime;
}
else
{
this.ConsumptionTimerTechnique += (float)this.PopulationCount * 0.1f * this.ConsRate_Tec * Time.deltaTime;
this.ConsumptionTimerGadget += (float)this.PopulationCount * 0.1f * this.ConsRate_Gad * Time.deltaTime;
}
this.ConsumptionTimerWine += (float)this.PopulationCount * 0.1f * this.ConsRate_Wine * Time.deltaTime;
|
评分
-
2
查看全部评分
-
|