The most critical bug I found by far is in CommissionedVendor.cs, the last code line of the file,
Code:
if ( !cv.Deleted && cv.IsComm && cv.CommRate > 0 && cv.CommRate <= 100 && cv.LastHold > cv.HoldGold )
{
int left = cv.HoldGold - cv.LastHold;
int comm = (int)( left * cv.CommRate / 100 );
cv.HoldGold -= comm;
cv.LastHold = cv.HoldGold;
}
without adding the highted line, the commission calculation is wrong, HoldGold will be reduced time and again.
