void BuildAndSendStepMessage(int steps) { string message = "Your total step count during the last 24h is " + steps; if (steps < 5000) { message += ". Scientists say that you should do 10000 so save some money buy running behind a bus! The price of Electricity- and Education buildings are increased by 1.3x"; } else if (steps >= 5000 && steps < 10000) { message += ". Your total goal should be 10000. Do more and get some sweet deals for Education- and Electricity buildings. As of now they remain at the original price."; } else if (steps >= 10000 && steps < 20000) { message += ". Well done! You're over 10000 steps. Prices for Education- and Electricity buildings are down by 30%"; } else { message += " WOW! That is a lot of walking. The price of Education- and Electricity buldings are down by 60%! Enjoy!!!"; } MessageManager.instance.QueueMessage(new InfoMessage("Step-master", message)); int avgSteps = googleApiHandler.GetAvgSteps(); string avgMessage = "Your avarage step count during the last three days is " + avgSteps + ". Your avarage step count effect how much tax income your housing, industries, offices and stores generate, so keep taking those steps and make more $$$"; MessageManager.instance.QueueMessage(new InfoMessage("Avarage steps", avgMessage)); }
public override void OnCreated(IEconomy economy) { int steps = 8000; apiHandler = new GoogleApiHandler(); steps = apiHandler.GetSteps(); avgSteps = apiHandler.GetAvgSteps(); SetConstructionCostBonuses(steps); SetConstructionBonusesFromActiveHours(); }