Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 • committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -66,23 +66,14 @@ namespace Server.Gumps
case 3:
case 4:
{
int offer = 0;
switch (info.ButtonID)
var offer = info.ButtonID switch
{
case 1:
offer = m_Offer - 100;
break;
case 2:
offer = 0;
break;
case 3:
offer = m_Offer + 100;
break;
case 4:
offer = m_From.TotalGold;
break;
}
1 => (m_Offer - 100),
2 => 0,
3 => (m_Offer + 100),
4 => m_From.TotalGold,
_ => 0
};
m_From.SendGump(new TithingGump(m_From, offer));
break;