Software Inc.

Software Inc.

Trainer v4 for Alpha 11
SupanovaHS 23 Dec, 2020 @ 1:15pm
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....
Last edited by SupanovaHS; 23 Dec, 2020 @ 1:17pm
< >
Showing 1-1 of 1 comments
ZpaceMag 26 Mar, 2021 @ 4:06am 
Where inside TrainerBehaviour.cs should I add the lines?
< >
Showing 1-1 of 1 comments
Per page: 1530 50