Good afternoon! I will try to change the code a little later, as you suggest.
The rest is more difficult, because I'm not a programmer. And even those changes that I made in this fork were very difficult for me. Therefore, I just do not understand what I need to do to solve the problem of "matching the power of the locomotive and the value of fictitious fuel"
In fact, this mod does not make sense to use without https://mods.factorio.com/mod/Train_balanced_K2_plus. Because this fork itself is a stripped down version of https://mods.factorio.com/mod/Realistic_Electric_Trains
I just wanted to add Krastorio 2 equipment mesh to these locomotives and bring their specifications in line with Krastorio 2, as well as keep the original sprites that I really liked...
I did this solely because, apart from me, it turned out to be useless to anyone. If someone more capable would support this fork or solve this problem in a better way, I would accept it with great pleasure and relief.