From 5f09262b6b8a4b4311ed022eb8c1c11fc127cde1 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 5 Jun 2020 23:15:47 +0200 Subject: [PATCH] added tap increase upgrade --- .../Content/Localization/Localization.json | 6 ++++++ TouchyTickets/Content/Textures/Ui.aseprite | Bin 2134 -> 2296 bytes TouchyTickets/Content/Textures/Ui.png | Bin 3356 -> 3622 bytes TouchyTickets/Ui.cs | 13 ++++++++++--- TouchyTickets/Upgrade.cs | 1 + 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/TouchyTickets/Content/Localization/Localization.json b/TouchyTickets/Content/Localization/Localization.json index 2fe02f7..f3a370b 100644 --- a/TouchyTickets/Content/Localization/Localization.json +++ b/TouchyTickets/Content/Localization/Localization.json @@ -39,6 +39,12 @@ "MapSize4Description": "Increases your park's buildable area even more. Existing attractions are not removed.", "MapSize5": "Biggestest Park", "MapSize5Description": "Increases your park's buildable area to the maximum. Existing attractions are not removed.", + "TapIncrease1": "Super Tap", + "TapIncrease1Description": "Increases the amount of tickets gained by tapping the ticket booth to 5", + "TapIncrease2": "Mega Tap", + "TapIncrease2Description": "Increases the amount of tickets gained by tapping the ticket booth to 10", + "TapIncrease3": "Hyper Tap", + "TapIncrease3Description": "Increases the amount of tickets gained by tapping the ticket booth to 50", "FoodCourtModifier": "Tasty Treats", "FoodCourtModifierDescription": "Doubles ticket sales for all attractions adjacent to food courts.", "FerrisWheelModifier": "Crowded Pods", diff --git a/TouchyTickets/Content/Textures/Ui.aseprite b/TouchyTickets/Content/Textures/Ui.aseprite index 61dfa30919a1728f8bdd346e249d3711131f9da5..3acdc6aa339b2f058296948e3374703fb7b371df 100644 GIT binary patch delta 1805 zcmV+o2lDvV5cm-R_>lpB0(c0qf`1t0(b00031{{jF200000003_QKLB`~ z?VV3(9z__&qX#cNSu2%R4W>3Vwn_7cB=kR_Ayi{)(N-)%6$OP{ym{$GPaY}-wTKik zRIs$vgR~X#WKqyUFDfym*h1+g2;!{=y^K7o&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A8t$Tn|l1L-{JrL{s7`jc?i&R z&YbMKHuIXO`i{k4Yaw*t%jfR5j~eY|4{+wf^XAZ>VV1(wWT-tpTL5bs!` zHf#k3(ns8_!11>3CbO-Vt-nBe^Bn@XB})5~9x^Zl0MbTG2M{+!PZYfIjuZI6m8G__ z(x|PhWZyn8LVx+L$GZc6!S3CIUc28E3fbp+ps|rX06?1X491#ClMG2J$9-k@w0YNmVy+`p zQDI0@<5yn=yvjhjh?xVB1_Isc2nG}Qk{SF9>grTGe}BGRx1g?0o953qoSneBh0~0a zovHm;=(>f|j7K-_8P`)=)>*F1)VeazyIvBlBACIcDuZ3)hfFaumbtlv%hKNWqI~Vw(j0Oy}b3y zgx4^;a(`UHjAHBVrhp{Po?2!|($>9)1EKL_&Aau{69H$vBsq^II(Pf&({al{Igt4@fEDCkx_kO0nRoZ+`hOa||ITi> z>wn$HfRQ588T_@CmBxGh&z-^V>-0Hlq~ zmaZ<>Z2$E!jhvl9YDJlXtCO~balmD9jJT%edFkn zBU*IuVBl{nS87LfwQuk{b@%o~J$IMgsu~&se%BPt&GP+c+3?`~Ml#R+j=4o55r4h7 z_AR}*_AR^4D!V%dV7O&UW)N9ReirMl?==sQZ16w+^wR-J34`9;18`PTf0ifd20dmU zxj~Ym%8yCf`%bqsV}{|}3*f${?w-D=G(Vo+E^|^cFQ-JkT}M5io9)bUac+t4xn5lR zmL`lIqa&wI>X}zxmZYfi^NW`xb$?C3(%~xJwjT{(BY9>ueD)<4j@eCaS82}h={|9XmgBSAu1rq=O002ovPDHLkV1h}R BFAD$w diff --git a/TouchyTickets/Ui.cs b/TouchyTickets/Ui.cs index 3721709..6f03f42 100644 --- a/TouchyTickets/Ui.cs +++ b/TouchyTickets/Ui.cs @@ -89,11 +89,18 @@ namespace TouchyTickets { }); storeGroup.AddChild(new Image(Anchor.TopLeft, Vector2.One, Texture[0, 0, 2, 3]) { OnPressed = e => { + var rate = 1; + if (Upgrade.TapIncrease[2].IsActive()) { + rate = 50; + } else if (Upgrade.TapIncrease[1].IsActive()) { + rate = 10; + } else if (Upgrade.TapIncrease[0].IsActive()) { + rate = 5; + } #if DEBUG - GameImpl.Instance.Tickets += 500000; - #else - GameImpl.Instance.Tickets++; + rate = 500000; #endif + GameImpl.Instance.Tickets += rate; }, CanBeSelected = true, CanBeMoused = true diff --git a/TouchyTickets/Upgrade.cs b/TouchyTickets/Upgrade.cs index 15e850c..e69bee3 100644 --- a/TouchyTickets/Upgrade.cs +++ b/TouchyTickets/Upgrade.cs @@ -9,6 +9,7 @@ namespace TouchyTickets { public static readonly Dictionary Upgrades = new Dictionary(); public static readonly Upgrade[] MapSize = RegisterTiers("MapSize", 5, 1, 1, Ui.Texture[0, 3]); + public static readonly Upgrade[] TapIncrease = RegisterTiers("TapIncrease", 3, 1, 0.5F, Ui.Texture[6, 3]); public static readonly Upgrade FerrisWheelModifier = Register(new Upgrade("FerrisWheelModifier", 1, Ui.Texture[2, 3])); public static readonly Upgrade FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 2, Ui.Texture[1, 3])); public static readonly Upgrade RollerCoasterModifier = Register(new Upgrade("RollerCoasterModifier", 2, Ui.Texture[3, 3]));