diff options
| author | Michael <[email protected]> | 2017-05-12 20:32:28 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-12 20:32:28 -0400 |
| commit | c18c0fbc325b1c6a0864f88c6e2f4d2889d62e18 (patch) | |
| tree | 1688b7c14f37fc0942e3b2c71a133aed3b9eee0e /ShiftOS_TheReturn/Commands.cs | |
| parent | bded9d1250575e6b9824be9048ac7ac8669a303b (diff) | |
| download | shiftos_thereturn-c18c0fbc325b1c6a0864f88c6e2f4d2889d62e18.tar.gz shiftos_thereturn-c18c0fbc325b1c6a0864f88c6e2f4d2889d62e18.tar.bz2 shiftos_thereturn-c18c0fbc325b1c6a0864f88c6e2f4d2889d62e18.zip | |
dithering revamp
Diffstat (limited to 'ShiftOS_TheReturn/Commands.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Commands.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs index d622bb9..5b7674a 100644 --- a/ShiftOS_TheReturn/Commands.cs +++ b/ShiftOS_TheReturn/Commands.cs @@ -233,6 +233,23 @@ namespace ShiftOS.Engine [Namespace("dev")] public static class ShiftOSDevCommands { + [Command("buy")] + public static bool UnlockUpgrade(Dictionary<string, object> args) + { + string upg = args["id"].ToString(); + try + { + SaveSystem.CurrentSave.Upgrades[upg] = true; + Shiftorium.InvokeUpgradeInstalled(); + SaveSystem.SaveGame(); + } + catch + { + Console.WriteLine("Upgrade not found."); + } + return true; + } + [Command("rock", description = "A little surprise for unstable builds...")] public static bool ThrowASandwichingRock() { |
