noider 发表于 2019-8-24 11:14

修改税收、电力、美观、生态、农业等的方法

本帖最后由 noider 于 2019-8-24 20:34 编辑

在这里抛砖引玉,希望各位大神可以说一下修改Assembly-CSharp.dll文件的心得
修改工具:dnSpy(https://github.com/0xd4d/dnSpy/releases )
首先备份文件,Cliff.Empire.GE\CliffEmpire_Data\Managed\Assembly-CSharp.dll
用工具打开这个文件,然后用“修改方法”改(红色的地方就是改动的地方),最后全部保存

税收:50倍
在TERRA下面查找TaxValue,找到this.TaxValue = Mathf.RoundToInt(this.PopulationIncreasePow * 0.002f * (float)

(this.PopulationWORKS - this.PopulationMIGRANT));

改为this.TaxValue = Mathf.RoundToInt(this.PopulationIncreasePow *

0.002f * (float)(this.PopulationWORKS * 50 - this.PopulationMIGRANT));


电力:太阳能和风能发电5000倍
在TERRA下面查找windPower,找到所有this.EnergyProduce_Wind * (this.WindPower+ TERRA.WindADD) + this.EnergyProduce_Sun

* (this.Sunny + TERRA.SolarADD) * num5 + this.EnergyProduce_SunRing * (num5 * 0.6f + 0.4f);

全部都改为

this.EnergyProduce_Wind * (this.WindPower * 5000f + TERRA.WindADD) + this.EnergyProduce_Sun * (this.Sunny * 5000f +

TERRA.SolarADD) * num5 + this.EnergyProduce_SunRing * (num5 * 0.6f + 0.4f);


美观:各设施增加原来的100倍
找到this.Beaut += bld3.BeautyPoint;
改为this.Beaut += bld3.BeautyPoint * 100;


生态:各设施增加原来的100倍
找到this.Ecol += bld3.EcologyPoint;
改为this.Ecol += bld3.EcologyPoint * 100;


农业:
1、改化肥厂效果为增加100倍
找到if (this.FekalijCount > 0)
{
   this.FoodADD += 0.05f * (float)this.FekalijCount * this.FinalGeather;
}
改为if (this.FekalijCount > 0)
{
   this.FoodADD += 50f * (float)this.FekalijCount * this.FinalGeather;
}
2、改研究为增加10倍、30倍、50倍
找到if (USER_UI.singletone.UnivDone)
{
   this.FoodADD += 0.05f;
}
if (USER_UI.singletone.UnivDone)
{
   this.FoodADD += 0.08f;
}
if (USER_UI.singletone.UnivDone)
{
   this.FoodADD += 0.12f;
改为:if (USER_UI.singletone.UnivDone)
{
   this.FoodADD += 10f;
}
if (USER_UI.singletone.UnivDone)
{
   this.FoodADD += 30f;
}
if (USER_UI.singletone.UnivDone)
{
   this.FoodADD += 50f;

改秩序和医疗可参考上面改农业研究的方法,JudjeADD为秩序,MedicADD为医疗。

改USER_UI里面的研究,参考上面的改研究的方法
娱乐:EnterADD;水:WaterADD;鱼:FishADD;太阳能:SolarADD;风能:WindADD;物质:MetalADD;铀:UranADD


tingyu86 发表于 2023-7-6 10:29

模块可以突破5的限制吗
页: [1]
查看完整版本: 修改税收、电力、美观、生态、农业等的方法