added resource event for attraction generation
This commit is contained in:
parent
864760ab0e
commit
f80a067597
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ namespace TouchyTickets.Attractions {
|
||||||
var amount = this.ticketPercentage.Floor();
|
var amount = this.ticketPercentage.Floor();
|
||||||
if (amount > 0) {
|
if (amount > 0) {
|
||||||
GameImpl.Instance.Tickets += amount;
|
GameImpl.Instance.Tickets += amount;
|
||||||
|
GameImpl.Instance.Analytics.AddResourceEvent(false, "Tickets", amount, "Attraction", this.Type.Name);
|
||||||
this.ticketPercentage -= amount;
|
this.ticketPercentage -= amount;
|
||||||
}
|
}
|
||||||
// return the generation rate per second
|
// return the generation rate per second
|
||||||
|
|
Loading…
Reference in a new issue