高级玩家

- 贡献度
- 19
- 金元
- 2856
- 积分
- 362
- 精华
- 0
- 注册时间
- 2013-3-31
|
本帖最后由 hzzyca 于 2021-10-2 13:04 编辑
另外发几个修改的点: (v1.0.4 版本适用)
1. 食物不腐烂找到 ItemStack 类下面的 UpdateFoodIntegrity 方法
float num2 = this.m_def.DegradeAmountPerHour * (temp / 10f); 改为 float num2 = this.m_def.DegradeAmountPerHour * (-10f);
找到 Object_Base_WithStorage 类下面的 GetTemperature方法
把第9行改为 return -10f;温度计算永远按-10度,食物不腐烂
2.人物负重
找到Member 类下面的 GetCarryWeight 方法
float num = this.m_baseCarryingCapacity + (float)(base.baseStats.Strength.Level * 5); 改为 float num = this.m_baseCarryingCapacity + (float)(base.baseStats.Strength.Level * 200);
人物每点力量加200负重。
3.污水处理
找到Object_WaterPurifier类下面的 Update 方法
WaterManager.instance.AddWater(1f, false); 改为 WaterManager.instance.AddWater(500f, false);
每次净化污水得500净水
4.雨水过滤
找到Object_WaterFilter类下面的 m_waterFilteringEfficiency字段
private float m_waterFilteringEfficiency = 1f; 改为 private float m_waterFilteringEfficiency = 500f;
过滤效率500倍
5.物品耐久
找到Object_Integrity类
private float m_degradeRatePerGameHour = 5f;
改成
private float m_degradeRatePerGameHour = 0.1f;
耐久降低速度减少50倍
protected float m_integrity = 100f;
private float m_maxIntegrity = 100f;
改成
protected float m_integrity = 1000f;
private float m_maxIntegrity = 1000f;
初始耐久和最大耐久改为1000
在 SetMaxIntegrity 方法中:
this.m_maxIntegrity = Mathf.Clamp((float)value, 5f, 100f);
改为
this.m_maxIntegrity = Mathf.Clamp((float)value, 1000f, 1100f);
自制物品耐久下限修改为1000
6.风车最大输出
找到Object_WindTurbine类下面的 Update 方法
this.m_outputPerSecond = Mathf.Clamp(this.m_currentSpeed / this.m_maxRotationSpeed * this.m_maxOutputPossible, 0f, this.m_maxOutputPossible);
改为
this.m_outputPerSecond = Mathf.Clamp(20f * this.m_maxOutputPossible, this.m_maxOutputPossible*100f , this.m_maxOutputPossible*20f);
恒定20倍最大功率输出
7.发电机输出修改(有bug,不建议改,建议只改耗电)
找到Object_PowerSource 类
m_efficiencyPercent = 0.25f; 改为 m_efficiencyPercent = 5f;
m_maxOutputPerGameHour = 15f; 改为 m_maxOutputPerGameHour = 300f;
20倍最大功率输出,20倍燃料效率
8.耗电、秒睡修改 (引用网友 whynmd123 的帖子)
v1.0.4版本
找到Object_Powered类下面的SetPowerRequiredPerGameHour方法
this.m_powerRequiredPerRealSecond = this.m_powerRequiredPerGameHour / (TimeManager.secondsInGameDay / 24f);
改为
this.m_powerRequiredPerRealSecond = this.m_powerRequiredPerGameHour / (TimeManager.secondsInGameDay / 2400f);
耗电量降低100倍
找到ObjectInteraction_Sleep类下面的BeginInteraction方法
this.interactionLength = memberRH.member.needs.fatigue.Value / 100f * num2;
this.m_restAmountPerSecond = 100f / num2;
this.m_healAmountPerSecond = 100f / num3;
改为
this.interactionLength = memberRH.member.needs.fatigue.Value / 10000f * num2;
this.m_restAmountPerSecond = 10000f / num2;
this.m_healAmountPerSecond = 10000f / num3;
睡眠效率翻了100倍,疗伤速度100倍
v1.0.0版本 (引用网友 whynmd123 的帖子)
耗电量修改Object_Powered下SetPowerRequiredPerGameHour里这句this.m_powerRequiredPerGameHour = amount;改成this.m_powerRequiredPerGameHour = amount / 100f;就是降低了100倍
秒睡修改ObjectInteraction_Sleep下BeginInteraction里这句this.interactionLength = memberRH.member.needs.fatigue.Value / 100f * num2;改成this.interactionLength = memberRH.member.needs.fatigue.Value / 10000f * num2;
下一行this.m_restAmountPerSecond = 100f / num2;改成this.m_restAmountPerSecond = 10000f / num2;这样睡眠效率就翻了100倍
9.快速建筑、修理等
找到ObjectInteraction_ConstructObject类下面的 GetSpeedMulti方法
return num;
改为
return num + 10f;
10倍快速建筑
找到ObjectInteraction_CraftItem类下面的 GetSpeedMulti方法
return num;
改为
return num + 10f;
10倍快速制作
找到ObjectInteraction_Repair类下面的 BeginInteraction方法
this.m_repairPerSecond = 1f;
改为
this.m_repairPerSecond = 100f;
100倍快速修理
找到ObjectInteraction_RepairItem类下面的 GetSpeedMulti方法
return num;
改为
return num + 10f;
10倍快速修理物品
找到ObjectInteraction_DeconstructObject类下面的 GetSpeedMulti方法
return num;
改为
return num + 10f;
10倍快速拆除
暂时找不到快速打扫的办法,因为它直接引用的基础类方法,不敢修改
10.疲劳值修改
找到ObjectInteraction_Base类
把
protected float m_fatigueRateMultiplier = 1f;
protected float m_FatigueRate = 1f;
改为
protected float m_fatigueRateMultiplier = 0.1f;
protected float m_FatigueRate = 0.1f;
疲劳增长降低100倍
11.强制锻炼、学习(修正锻炼、学习无法升级问题)
找到ObjectInteraction_Exercise类下面的 BeginInteraction 方法
this.totalXpFortitude = 0;
。。。。
this.interactionLength = (float)memberRH.member.baseStats.GetStatByEnum(this.exer.Stat).GetRemainingExpValue() / (float)this.m_experienceGain / (this.m_higherThanMax ? 0.1f : 1f);
改成
this.totalXpFortitude = 1000;
。。。。
this.interactionLength = 60f;
强制锻炼60秒,耐力经验1000倍
找到ObjectInteraction_ReadCharismaBook 、 ObjectInteraction_ReadIntelligenceBook 、 ObjectInteraction_ReadPerceptionBook类下面的 BeginInteraction 方法
把
this.interactionLength = xxxxxxxxxxx
改成
this.interactionLength = 60f;
强制学习60秒
|
|