新开医院初始资金修改
修改的类 TH20.FinanceManager修改的函数FinanceManager 的构造函数
public FinanceManager(FinanceManager.Config config, Level level)
{
this._config = config;
this._level = level;
this._staffToPay = new List<Staff>();
this._priceModifiers = new PriceModifiers();
this.ModifyBalance(new FinanceManager.ModifyBalanceParams
{
Amount = config.GetInitialBalance() + 20000000 // 先表贪心, 初始金钱加 2千万
});
level.PostConstruct = (System.Action)Delegate.Combine(level.PostConstruct, new System.Action(this.PostConstruct));
this.Initialise();
}
修改的游戏版本是 1.17.41111, 其他版本没试过,大家喜欢就收好
用编辑方法,有很多错误,改不了 本帖最后由 lowieliang 于 2021-10-9 11:32 编辑
嗯,是的,这是由于我们看到的代码都是 dnSpy 反编译出来的,可能带有语法错。不过没关系,改正了还是可以编译的,不影响。很神奇的是,你改正了编译了,发现那行又是有问题的代码;P
你遇到什么编译错啊?贴出来我给参考参考(贴的时候最好带上类名+函数名,上下三行),要到错的那行双击编译报错就可以。
页:
[1]