コード例 #1
0
    public void introStart()
    {
        if (GameControl.charCorruption < 0)
        {
            GameControl.charCorruption = 0;
        }

        Board.text          = "You travel through the forest until you arrive to the city. Aurorum lies before you, its tall stone walls protecting it from any external harm. But the place is nothing but a shadow of its former glory. The first signs of its decay are obvious even from the outside, the fields surrounding it full of weeds, and abandoned. On the other side of those walls, no street is free of the jobless citizens who struggle to survive day to day. The green parks and thriving commerce that you once knew as a child are long gone. At the center of the city, upon a small hill, you can vaguely make out the silhouette of a great castle. Once you get closer, however, you can see that it is faring no better than the rest of the city. Your new home is almost in ruins, barely an improvement over your old shack. \n\nTwo soldiers await you at the gates of the castle. They look at each other and nod before opening the door, already anticipating your arrival. The first good surprise you get is that, although the castle is in ruins, someone has been taking care of it; or at least keeping the dust away. You call out, to see if you can meet the person who has been cleaning the place. Almost immediately you hear the noise of footsteps, and a feminine voice calling back to you. <i>\"On my way!\"</i> It doesn’t take long until a clumsy looking girl hurries downstairs to greet you. \n\nShe immediately stands in front of you and bows <i>“I’m sorry! I tried to get the house clean before your arrival, but it’s not ready yet. Please forgive me, but this place is too big for a single servant!”</i> You detect a glimpse of fear in her voice.\n\nThe girl stands in front of you, awaiting your command, and for the first time you have that feeling of authority. You realize that you have a great deal of power, but also that you must be careful with it. Should you instill fear in the heart of your servant? Or you should be benevolent and permissive, earning her loyalty? ";
        option0Name.text    = "Instill loyalty";
        option1Name.text    = "Instill fear";
        confirmationControl = 0;
        LawController.EnactLaw(new LawTaxesVeryLow());
    }
コード例 #2
0
    static public void dailyTax()
    {
        float sum = 0;

        if (LawController.IsEnacted <LawTaxesVeryLow>())
        {
            GameControl.charGold += (int)(CityControl.city100Prosperity * 2);
            Debug.Log("Taxes are very low");
        }

        if (LawController.IsEnacted <LawTaxesLow>())
        {
            GameControl.charGold += (int)(CityControl.city100Prosperity * 4);
            Debug.Log("Taxes are low");
        }

        if (LawController.IsEnacted <LawTaxesNormal>())
        {
            GameControl.charGold += (int)(CityControl.city100Prosperity * 8);
            Debug.Log("Taxes are normal");
        }

        if (LawController.IsEnacted <LawTaxesHigh>())
        {
            GameControl.charGold += (int)(CityControl.city100Prosperity * 14);
        }

        if (LawController.IsEnacted <LawTaxesVeryHigh>())
        {
            GameControl.charGold += (int)(CityControl.city100Prosperity * 20);
        }

        /*
         * if(CityControl.city100Taxes == 0){
         *      sum = CityControl.city100Prosperity + CityControl.city100ProsperityBonus;
         *      sum = sum * 3;
         *
         * }
         *
         * if(CityControl.city100Taxes == 1){
         *      sum = CityControl.city100Prosperity + CityControl.city100ProsperityBonus;
         *      sum = sum * 2;
         *
         *      CityControl.city100Happiness += 0.2f;
         *      CityControl.city100Order += 0.1f;
         * }
         *
         * if(CityControl.city100Taxes == 2){
         *      sum = CityControl.city100Prosperity + CityControl.city100ProsperityBonus;
         *      sum = sum * 4;
         *
         *      CityControl.city100Happiness -= 0.2f;
         *      CityControl.city100Order -= 0.1f;
         * }
         *
         * if(CityControl.city100Taxes == 3){
         *      sum = CityControl.city100Prosperity + CityControl.city100ProsperityBonus;
         *      sum = sum * 5;
         *      CityControl.city100Happiness -= 0.4f;
         *      CityControl.city100Order -= 0.2f;
         * }*/



        //calcf = CityControl.city100MinistersEfficiency [0] / 1000;


        GameControl.charGold += (int)sum;
    }
コード例 #3
0
 private void Awake()
 {
     instance = this;
 }