Esempio n. 1
0
    public void Show(int vicID)
    {
        vicFactionID = vicID;

        if (GameControlTB.playerFactionExisted)
        {
            if (GameControlTB.IsHotSeatMode())
            {
                if (GameControlTB.IsPlayerFaction(vicFactionID))
                {
                    outcomeTxt = "Victory!!";
                }
                else
                {
                    outcomeTxt = "Defeated...";
                }
            }
            //single player mode
            else
            {
                if (GameControlTB.IsPlayerFaction(vicFactionID))
                {
                    outcomeTxt = "Victory!!";
                }
                else
                {
                    outcomeTxt = "Defeated";
                }
            }
        }
        else
        {
            outcomeTxt = "Faction " + vicFactionID + " Won!!";
        }

        if (!GameControlTB.IsHotSeatMode() && GameControlTB.playerFactionExisted && GameControlTB.LoadMode() == _LoadMode.UsePersistantData)
        {
            int pointGain   = GameControlTB.instance.pointGain;
            int pointReward = GameControlTB.instance.winPointReward;
            if (!GameControlTB.IsPlayerFaction(vicFactionID))
            {
                pointReward = 0;
            }

            int killBonus = pointGain - pointReward;
            int total     = GlobalStatsTB.GetPlayerPoint();
            int initial   = total - pointGain;

            statsTxt = killBonus + "\n" + pointReward + "\n" + initial;
            pointTxt = total.ToString();
        }
    }