Exemplo n.º 1
0
 //Television Ad event is bought
 public void TelevisionAd(MainTycoonScript script)
 {
     if (busy == "" && money >= COST_TELEVISION_AD)
     {
         //if not already busy and has enough money, set busy to "television ad", subtract money and add length to timer
         busy   = "television ad";
         timer  = TIME_TELEVISION_AD * DAY_LENGTH;
         money -= COST_TELEVISION_AD;
         UpdateMoney(script);
         popularity.UpdatePopularity(script, script.GetPolicyValues(), MULTIPLIER_TELEVISION_AD);
     }
 }
Exemplo n.º 2
0
 //Conference is event is bought
 public void Conference(MainTycoonScript script)
 {
     if (busy == "" && money >= COST_CONFERENCE)
     {
         //if not already busy and has enough money, set busy to "conference", subtract money and add length to timer
         busy   = "conference";
         timer  = TIME_CONFERENCE * DAY_LENGTH;
         money -= COST_CONFERENCE;
         UpdateMoney(script);
         popularity.UpdatePopularity(script, script.GetPolicyValues(), MULTIPLIER_CONFERENCE);
     }
 }
Exemplo n.º 3
0
 //Town Hall event is bought
 public void TownHall(MainTycoonScript script)
 {
     if (busy == "" && money >= COST_TOWN_HALL)
     {
         //if not already busy and has enough money, set busy to "town hall", subtract money and add length to timer
         busy   = "town hall";
         timer  = TIME_TOWN_HALL * DAY_LENGTH;
         money -= COST_TOWN_HALL;
         UpdateMoney(script);
         popularity.UpdatePopularity(script, script.GetPolicyValues(), MULTIPLIER_TIME_HALL);
     }
 }