From ecee91bc559e1c0d716a3032e371218812df61e7 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Fri, 24 Jun 2016 16:44:42 -0400 Subject: Loads of changes... Custom shifter options using Lua, and other stuff. --- source/WindowsFormsApplication1/Shiftorium.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/WindowsFormsApplication1/Shiftorium.cs') diff --git a/source/WindowsFormsApplication1/Shiftorium.cs b/source/WindowsFormsApplication1/Shiftorium.cs index 9c281e9..ce9dbfc 100644 --- a/source/WindowsFormsApplication1/Shiftorium.cs +++ b/source/WindowsFormsApplication1/Shiftorium.cs @@ -77,7 +77,7 @@ namespace Shiftorium btnhack.Hide(); } } - catch(Exception ex) + catch { lbcategory.Text = "No upgrades!"; } @@ -132,12 +132,12 @@ namespace Shiftorium lbupgradename.Text = upgrade.Name.Replace($" - {upgrade.Cost} CP", ""); lbudescription.Text = upgrade.Description; btnbuy.Show(); - lbprice.Text = upgrade.Cost.ToString() + " CP"; + lbprice.Text = (upgrade.Cost / API.CurrentSave.PriceDivider).ToString() + " CP"; picpreview.Image = upgrade.Preview; selectedUpgrade = upgrade; } } - } catch(Exception ex) + } catch { //do nothing. } -- cgit v1.2.3