From 1fcbee8dab0524cb2b1aecd5bb2521acdfe6b541 Mon Sep 17 00:00:00 2001 From: TheUltimateHacker Date: Mon, 18 May 2015 15:46:07 -0400 Subject: New Shiftorium Upgrades, Better Save System. I've added some new Shiftorium upgrades, as well as some save engine fixes. If you add to the engine, and try to load, say a Boolean value from a line containing a blank String value, it'll detect that and tell you it'll rewrite that line. It preserves what it has already loaded. I've also added some new terminal commands, and some Shiftorium bugfixes. --- shiftos_next/shiftorium_api.vb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shiftos_next/shiftorium_api.vb') diff --git a/shiftos_next/shiftorium_api.vb b/shiftos_next/shiftorium_api.vb index 3920e0d..39960e4 100644 --- a/shiftos_next/shiftorium_api.vb +++ b/shiftos_next/shiftorium_api.vb @@ -1,6 +1,7 @@ Module shiftorium_api 'API for Shiftorium Applications. + Public listboxtoaddto As ListBox Public codepoints As Integer Public Sub DeductCP(ammount As Integer) @@ -12,4 +13,9 @@ codepoints += ammount savegame() End Sub + + Public Sub AddItem(name As String, CP As Integer) + listboxtoaddto.Items.Add(name & " - " & CP & " CP") + End Sub + End Module -- cgit v1.2.3