private static string OddsIndicator(int obj, float odds, string verb, float odds2 = 0f, string verb2 = null)
        {
            StringBuilder sb = new StringBuilder("(");

            sb.Append("PES_Condition_Received".Translate().CapitalizeFirst());
            sb.Append(": ");
            if (obj == 1)
            {
                sb.Append("PES_Condition_Neutral".Translate());
                sb.Append(", ");
            }
            if (obj == 2)
            {
                sb.Append("PES_Condition_Hostile".Translate());
                sb.Append(", ");
            }
            sb.Append(DialogUtilities.GetOddsString(odds));
            sb.Append(" ");
            sb.Append(verb.Translate());
            if (verb2 != null)
            {
                sb.Append("; ");
                sb.Append(DialogUtilities.GetOddsString(odds2));
                sb.Append(" ");
                sb.Append(verb2.Translate());
            }
            sb.Append(")");
            return(sb.ToString());
        }
Example #2
0
        private static string OddsIndicator(float odds, string verb, float odds2 = 0f, string verb2 = null)
        {
            StringBuilder sb = new StringBuilder("(");

            sb.Append(DialogUtilities.GetOddsString(odds));
            sb.Append(" ");
            sb.Append(verb.Translate());
            if (verb2 != null)
            {
                sb.Append("; ");
                sb.Append(DialogUtilities.GetOddsString(odds2));
                sb.Append(" ");
                sb.Append(verb2.Translate());
            }
            sb.Append(")");
            return(sb.ToString());
        }