added resource event for attraction generation

This commit is contained in:
Ellpeck 2020-06-05 16:23:59 +02:00
parent 864760ab0e
commit f80a067597

View file

@ -38,6 +38,7 @@ namespace TouchyTickets.Attractions {
var amount = this.ticketPercentage.Floor();
if (amount > 0) {
GameImpl.Instance.Tickets += amount;
GameImpl.Instance.Analytics.AddResourceEvent(false, "Tickets", amount, "Attraction", this.Type.Name);
this.ticketPercentage -= amount;
}
// return the generation rate per second