Software Inc.

Software Inc.

Trainer v4 for Alpha 11
SupanovaHS 2020 年 12 月 23 日 下午 1:15
Default Efficiency
I noticed that the trainer always boosts efficiency of the workers, I forget which one, but one is always set to 200%

It might have something to do with the Dictionary settings set to 2 and 4 in side Helpers.cs line 86.

Anyways, I didn't test all that much, but instead added

new KeyValuePair<string, object>("Default", 0),

to line 27 of Helpers.cs, and this inside TrainerBehaviour.cs

if(employee.RoleString.Contains("Lead"))
{
if(Helpers.GetProperty(Stores, "LeadEfficiencyStore").MakeFloat() > 0f)
{
actor.Effectiveness = Helpers.GetProperty(Stores, "LeadEfficiencyStore").MakeFloat();
}
}
else
{
if(Helpers.GetProperty(Stores, "EfficiencyStore").MakeFloat() > 0f)
{
actor.Effectiveness = Helpers.GetProperty(Stores, "EfficiencyStore").MakeFloat();
}
}

This allows players to turn off any boost given by the trainer,

edit, probably should of posted this on GitHub repo....
最后由 SupanovaHS 编辑于; 2020 年 12 月 23 日 下午 1:17
< >
正在显示第 1 - 1 条,共 1 条留言
ZpaceMag 2021 年 3 月 26 日 上午 4:06 
Where inside TrainerBehaviour.cs should I add the lines?
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50