世嘉人类怎么快速刷人口军队 详细方法介绍

在游戏中人口和军队是非常重要的,而且可以通过一些修改快速刷出来,那么世嘉人类怎么快速刷人口军队呢?还不知道的玩家快来看小编带来的详细方法介绍吧。

在游戏中人口和军队是非常重要的,而且可以通过一些修改快速刷出来,那么世嘉人类怎么快速刷人口军队呢?还不知道的玩家快来看小编带来的详细方法介绍吧。

202108231044410561

详细方法介绍

dnspy打开Amplitude.Mercury.firstpass.dll

找到Amplitude.Mercury.Simulation包下的DepartmentOfIndustry类

找这个方法private void ProcessOrderBuyoutConstructionAt(OrderBuyoutConstructionAt order)

其中有一行是this.majorEmpire.DepartmentOfTheTreasury.Pay(buyoutCost);

括号里给它改成this.majorEmpire.DepartmentOfTheTreasury.Pay(FixedPoint.Zero);

具体改法就是右键编辑IL指令(因为反编译会因为引用外部dll无法再次编译,为了省事直接干IL)

找到调用Pay的这句:

26 004E callvirt instance void Amplitude.Mercury.Simulation.DepartmentOfTheTreasury::Pay(valuetype [Amplitude.Framework]Amplitude.FixedPoint)

然后找它前面一句,就是加载buyoutCost的那句,应该是ldloc.3,如果不是就看看前面的一个函数GetBuyoutCost之后存到第几个位置了,应该有一句stloc.3和这个ldloc.3是对着的先存后读的。

把ldloc.3给改成

25 0049 ldsfld valuetype [Amplitude.Framework]Amplitude.FixedPoint [Amplitude.Framework]Amplitude.FixedPoint::Zero

就是加载了一个FixedPoint.Zero这个静态变量。如果怕写错就找一下这个变量,然后查它的引用,找一行读取的IL指令复制过来,我就是这么搞的。

保存进游戏,造个建筑,用金币直接买,然后金币不减少,修改成功。

再来一个,解散部队返还人口数量5倍。结合上面的免费金币雇佣就可以原地一回合炒人口/军队了

namespace Amplitude.Mercury.Simulation

internal class DepartmentOfDefense : Agency, ISerializable

private void ProcessOrderDisbandUnits(OrderDisbandUnits order)

这句

population = unit.UnitDefinition.PopulationInstantCostDefinition.Constant;

进IL编辑,找到这句

67 00CF ldfld int32 [Amplitude.Mercury.Data]Amplitude.Mercury.Data.Simulation.Costs.PopulationInstantCostDefinition::Constant

后面加两行

ldc.i4.5

mul

改好变成这样

population = unit.UnitDefinition.PopulationInstantCostDefinition.Constant * 5;

以上就是今天为大家带来世嘉人类怎么快速刷人口军队的全部内容,希望对大家有所帮助,更多的内容请持续关注游戏攻略姬,为你带来最新最全的游戏相关内容。