For all whose wonder, here is the exact formula, thanks to Denadan's kindness:
Code:public static void CalculateCBillValue(MechDef mechDef, ref float currentValue, ref float maxValue) { currentValue = (float)mechDef.Chassis.Description.Cost; float num = 10000f; float num2 = 0f; num2 += mechDef.Head.AssignedArmor; num2 += mechDef.CenterTorso.AssignedArmor; num2 += mechDef.CenterTorso.AssignedRearArmor; num2 += mechDef.LeftTorso.AssignedArmor; num2 += mechDef.LeftTorso.AssignedRearArmor; num2 += mechDef.RightTorso.AssignedArmor; num2 += mechDef.RightTorso.AssignedRearArmor; num2 += mechDef.LeftArm.AssignedArmor; num2 += mechDef.RightArm.AssignedArmor; num2 += mechDef.LeftLeg.AssignedArmor; num2 += mechDef.RightLeg.AssignedArmor; num2 *= UnityGameInstance.BattleTechGame.MechStatisticsConstants.CBILLS_PER_ARMOR_POINT; currentValue += num2; for (int i = 0; i < mechDef.Inventory.Length; i++) { MechComponentRef mechComponentRef = mechDef.Inventory[i]; currentValue += (float)mechComponentRef.Def.Description.Cost; } currentValue = Mathf.Round(currentValue / num) * num; }
In short - it takes value from mechdef, sums all the armor points and multiplies by CBILL_PER_ARMOR_POINT, and then adds cost of all equipped stuff. Just as suspected, but these code is a hard and ultimate proof.
Excellent investigation job!
However I think we are still missing some variable in the formulas as, according to the shown code lines the Highlander HGN-732b's standard (i.e. 100%) purchase price should be 16.820.000 C-Bill, while both the following screenshots seem to point to a much higher inferred standard purchase price of 21.960.000 C-Bills, courtesy respectively of
@Shameless:
and @Wayward Son 5:
There seem to be some kind of consistency in the Highlander HGN-732b’ purchase price, i.e.:
20.682.000*100/95=21.960.000 C-Bills
19.764.000*100/90=21.960.000 C-Bills
Moreover, even this slim consistency (i.e. the Highlander HGN-732B’s inferred 100% price as of 21.960.000 C-Bills) seems to be completely wrong whenever compared to the adjusted Highlander HGN-732B’s inferred 100% price based on the 10.000% price increase reputation due to being loathed by Pirates at -100 Reputation with them, shown in the following screenshot, courtesy of a fellow MechWarrior whose call-sign I currently don’t remember, i.e.: 2.147.483.648/10.000%*100%=21.474.836 C-Bills: