3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 10695|回复: 4
打印 上一主题 下一主题

[原创] dll文件修改人口单位周期需求量为1/10(水,食物,家具,电器,小商品等)

[复制链接]

2

主题

900

帖子

1097

积分

游戏狂人

Rank: 6Rank: 6

贡献度
1
金元
10932
积分
1097
精华
0
注册时间
2015-6-20
跳转到指定楼层
主题
发表于 2019-12-13 03:24 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
请先参阅:关于修改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

查看全部评分

回复

使用道具 举报

0

主题

390

帖子

463

积分

高级玩家

Rank: 4

贡献度
0
金元
4628
积分
463
精华
0
注册时间
2013-8-14
舒服的沙发
发表于 2021-4-7 11:40 | 只看该作者
大佬怎么添加?发现改了之后不一样
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-25 20:52 , Processed in 0.029780 second(s), 19 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表