关于修改dll的一些心得(生产效率,人口需求,税收,无人机数量限制,生态人口,生产频率)
用dnSpy打开需要修改的dll文件,下面可以看到很多分类,每个分类里面都包含2部分(方法和变量),可以通过英文搜索找到,右键变量可以分析调用这个变量的方法,我们一般也就是修改这个方法的数值.
红色标注是我的修改
1.人口效率,电力效率,总效率;
Terra分类下的找
this.PopulationAffect = 1f + this.PopulationAffectNoMedAff * this.HealthAffectMultiplyer;
this.EnergyAffect = Mathf.Clamp01(1f + 1f / (this.EnergyRequire + 1f) * (this.EnergyProduce + 1f));
this.FinalGeather = Mathf.Clamp01(1f + this.PopulationAffect * this.EnergyAffect);
这部分效率只是面板效率,实际效果不超过100%,实际增产还需要修改生产周期时间.
2.地图基础需求;
Terra分类下找:
this.Med = 1000;
this.Psyho = 1000;
this.Entert = 1000;
this.Just = 1000;
this.Safe = 1000;
this.SafeNeed = -5;
this.Educ = 1000;
this.EducADD = 0;
this.ReqSattelitePoints = 0;
this.Beaut = 1000;
this.Fish = this.StartFish;
this.SocialTransportAddon = 0f;
this.FoodADD = 0f;
3.税收值
Terra分类下找:
this.TaxValue = Mathf.RoundToInt(1000f + this.PopulationIncreasePow * 0.002f * (float)(this.PopulationWORKS - this.PopulationMIGRANT));
4.无人机数量限制
Terra分类下找:
this.LimDroneSimpl = 400;
this.LimDroneAgrar = 320;
this.LimDroneGruz = 250;
5.电力消耗
Terra分类下找:
this.EnergyRequire -= (float)Mathf.RoundToInt(0.1*num2 * 1.3f);
this.EnergyRequire -= 0.1*num2;
6.不耗粮人口住房
Terra分类下找:
this.PopulationPlaceECO += 10*bld3.Humans;
this.PopulationPlaceMax += 10*bld3.Humans;
7.单位生产频率:
BLD分类下找:
this.Seconds += this.EfectSummar * 13f * Time.deltaTime;
this.Seconds += this.EfectSummar * 10f * Time.deltaTime;
有些别的修改可以查看帖子https://bbs.3dmgame.com/thread-5928801-1-1.html
感谢大佬:) 大佬有没有仓库大小修改啊,现在的仓库MOD有问题不能用无人机运输。
页:
[1]