Ejemplo n.º 1
0
    /// <summary>
    /// Returns name and description of trait
    /// </summary>
    /// <returns>The string.</returns>
    /// <param name="p">trait.</param>
    public string TraitToString(PoliticalTrait p)
    {
        string s = "";

        s += "\n\n" + p.name + "\nDescription: " + p.description;
        return(s);
    }
Ejemplo n.º 2
0
    protected void InitializePoliticalTraits()
    {
        PoliticalTrait p;

        // Non-Partisan traits 0-8
        p = new PoliticalTrait("Honest", "This politician's honesty inspires voter trust. \n\t+10% electability", 0f, 0f, 1f, 1.1f, 1f, Color.white, 0);                                                                           // 0
        politicalTraits.Add(p);
        p = new PoliticalTrait("Charismatic Speaker", "This politician's charisma wins over voters.\n\t+20% electability", 0f, 0f, 1f, 1.2f, 1f, Color.white, 0);                                                                  // 1
        politicalTraits.Add(p);
        p = new PoliticalTrait("Independent", "This politician does not let special interests govern their decisions.\n\t+50% chance of no loyalty\n\t+30% electability", .5f, 0f, 1f, 1.3f, 1f, Color.white, 0);                  // 2
        politicalTraits.Add(p);
        p = new PoliticalTrait("Inept", "This politician's poor judgement leads to waste.\n\t+20% police cost\n\t+20% build cost", 0f, 0f, 1.2f, 1f, 1.2f, Color.white, 0);                                                        // 3
        politicalTraits.Add(p);
        p = new PoliticalTrait("Corrupt", "This politician knows it doesn't hurt to wet your beak a bit.\n\t+50% chance to embezzle taxes", 0f, .5f, 1f, 1f, 1f, Color.white, 0);                                                  // 4
        politicalTraits.Add(p);
        p = new PoliticalTrait("Wise Budget", "This politician is always trying to shrink the budget.\n\t-20% police cost\n\t-20% build cost", 0f, 0f, .8f, 1f, .8f, Color.white, 0);                                              // 5
        politicalTraits.Add(p);
        p = new PoliticalTrait("Stingy", "This politician is so agressive about cutting the budget that it turns off voters.\n\t-30% police cost\n\t-20% electability\n\t-30% build cost", 0f, 0f, .7f, .8f, .7f, Color.white, 0); // 6
        politicalTraits.Add(p);
        p = new PoliticalTrait("Ugly", "This politician does not have the face of a leader.\n\t-30% electability", 0f, 0f, 1f, .7f, 1f, Color.white, 0);                                                                           // 7
        politicalTraits.Add(p);
        p = new PoliticalTrait("Panderer", "This politician knows what to say to appeal to certain groups.\n\t+30% electability", 0f, 0f, 1f, 1.3f, 1f, Color.white, 0);                                                           // 8
        politicalTraits.Add(p);

        // Teal Party Traits--Teal party wastes money, but they're easy to elect 9-12
        p = new PoliticalTrait("Dynasty", "The Teal party employs candidates from well-liked political families... regardless of their leadership skills.\n\t+30% police cost\n\t+30% electability\n\t+30% build cost", 0f, 0f, 1.3f, 1.3f, 1.3f, Color.cyan, 1);       // 9
        politicalTraits.Add(p);
        p = new PoliticalTrait("Celebrity Endorsements", "The Teal party pays public figures to appear at their events, which can cut into the budget.\n\t+20% police cost\n\t+20% electability\n\t+20% build cost", 0f, 0f, 1.2f, 1.2f, 1.2f, Color.cyan, 1);          // 10
        politicalTraits.Add(p);
        p = new PoliticalTrait("City Beautification Programs", "The Teal party likes to spend money decorating the city, a popular yet costly endeavor.\n\t+10% build cost\n\t+10% electability\n\t+10% build cost", 0f, 0f, 1.1f, 1.1f, 1.1f, Color.cyan, 1);          // 11
        politicalTraits.Add(p);
        p = new PoliticalTrait("Social Welfare Programs", "The Teal party often invests in costly projects aimed at improving the lives of the less-fortunate.\n\t+50% police cost\n\t+50% electability\n\t+50% build cost", 0f, 0f, 1.5f, 1.5f, 1.5f, Color.cyan, 1);  // 12
        politicalTraits.Add(p);

        // Grey party traits--pricey infrastructure, cheap police 13-16
        p = new PoliticalTrait("Law and Order", "The Grey party invests in a police force at the expense of infrastructure.\n\t-30% police cost\n\t+30% build cost", 0f, 0f, .7f, 1f, 1.3f, Color.grey, 2);                // 13
        politicalTraits.Add(p);
        p = new PoliticalTrait("Militarized Police", "The Grey party believes a well-armed police force is an effective police force.\n\t-10% police cost\n\t+10% build cost", 0f, 0f, .9f, 1f, 1.1f, Color.grey, 2);      // 14
        politicalTraits.Add(p);
        p = new PoliticalTrait("Prison Investor", "The Grey party knows that investing in prisons is just as good as investing in schools.\n\t-20% police cost\n\t+20% build cost", 0f, 0f, .8f, 1f, 1.2f, Color.grey, 2); // 15
        politicalTraits.Add(p);
        p = new PoliticalTrait("Military Background", "The Grey party fields candidates with experience in the armed forces.\n\t-10% police cost\n\t+10% build cost", 0f, 0f, .9f, 1f, 1.1f, Color.grey, 2);               // 16
        politicalTraits.Add(p);

        // Yellow party traits--cheap costs, low electability 17-20
        p = new PoliticalTrait("Neo-Monarchist", "The Yellow party believes the city can lower costs by instituting an absolute monarch.\n\t-50% police cost\n\t-50% electability\n\t-40% build cost", 0f, 0f, .5f, .6f, .6f, Color.yellow, 3); // 17
        politicalTraits.Add(p);
        p = new PoliticalTrait("Technocrat", "The Yellow party knows that embracing technology will bring the city forward.\n\t-30% police cost\n\t-30% electability\n\t-30% build cost", 0f, 0f, .7f, .7f, .7f, Color.yellow, 3);              // 18
        politicalTraits.Add(p);
        p = new PoliticalTrait("Wizard", "The Yellow party believes bearded sorcerers are capable of assisting in municipal governance.\n\t-20% police cost\n\t-20% electability\n\t-20% build cost", 0f, .0f, .8f, .8f, .8f, Color.yellow, 3); // 19
        politicalTraits.Add(p);
        p = new PoliticalTrait("Nega-Mayor", "The Yellow party knows that the best way to do no harm is to do nothing.\n\t-10% police cost\n\t-10% electability\n\t-10% build cost", 0f, 0f, .9f, .9f, .9f, Color.yellow, 3);                   // 20
        politicalTraits.Add(p);
    }