= Data Structures formatting update

This commit is contained in:
Matthew Cech
2019-06-19 21:32:42 -07:00
parent 78efa4ad8f
commit ba843ca645
22 changed files with 60 additions and 60 deletions
+2 -2
View File
@@ -15,13 +15,13 @@ public class CommandBeansShow extends Command
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
if(input.mentions == null)
res.send(String.format(LocStrings.stub("BeansShowDisplay"), user.GetBeans()));
res.send(String.format(LocStrings.stub("BeansShowDisplay"), user.getBeans()));
else
{
String mentionedBeans = "";
for(KittyUser mentioned:input.mentions)
{
mentionedBeans += mentioned.name + " has " + mentioned.GetBeans() + " ";
mentionedBeans += mentioned.name + " has " + mentioned.getBeans() + " ";
}
res.send(String.format(LocStrings.stub("BeansShowMentioned"), mentionedBeans));
}
+5 -5
View File
@@ -34,13 +34,13 @@ public class CommandBetBeans extends Command
return;
}
if(user.GetBeans() < bet)
if(user.getBeans() < bet)
{
res.send(LocStrings.stub("BetBeansNotEnough"));
return;
}
user.ChangeBeans(-bet);
user.changeBeans(-bet);
int [] slots = getSlots();
call += slotString(slots);
slots = sort(slots);
@@ -52,12 +52,12 @@ public class CommandBetBeans extends Command
if(win == 0)
{
res.send(LocStrings.stub("BetBeansLose"));
guild.beans.Add(bet);
guild.beans.add(bet);
return;
}
user.ChangeBeans(bet*win);
guild.beans.Subtract(bet*win);
user.changeBeans(bet*win);
guild.beans.subtract(bet*win);
res.send(String.format(LocStrings.stub("BetBeansWin"), "" + (bet*win)));
}
+1 -1
View File
@@ -20,6 +20,6 @@ public class CommandBetHistory extends Command
@Override
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
res.send(String.format(LocStrings.stub("BetHistoryOutput"), guild.beans.Get()));
res.send(String.format(LocStrings.stub("BetHistoryOutput"), guild.beans.get()));
}
}
+1 -1
View File
@@ -49,7 +49,7 @@ public class CommandGiveBeans extends Command
// Go through all the mentions and make sure every user is given beans!
for(int i = 0; i < input.mentions.length; i++)
{
input.mentions[i].ChangeBeans(beans);
input.mentions[i].changeBeans(beans);
res.send(String.format(LocStrings.stub("GiveBeansSuccess"), input.mentions[i].name, "" + beans));
}
}
+3 -3
View File
@@ -16,11 +16,11 @@ public class CommandRole extends Command
{
if(input.args.isEmpty())
{
res.send(LocStrings.stub("RoleStandardResponse") + " " + user.GetRole().name() + "!");
res.send(LocStrings.stub("RoleStandardResponse") + " " + user.getRole().name() + "!");
return;
}
if(user.GetRole().getValue() < KittyRole.Admin.getValue())
if(user.getRole().getValue() < KittyRole.Admin.getValue())
{
res.send(String.format(LocStrings.stub("RoleError"), KittyRole.Admin.toString()));
return;
@@ -52,7 +52,7 @@ public class CommandRole extends Command
String users = "";
for(int i = 0; i < input.mentions.length; i++)
{
input.mentions[i].ChangeRole(newRole);
input.mentions[i].changeRole(newRole);
users += input.mentions[i].name + " ";
}
+4 -4
View File
@@ -36,7 +36,7 @@ public class CommandTradeBeans extends Command
return;
}
if(user.GetBeans() < beans)
if(user.getBeans() < beans)
{
res.send(LocStrings.stub("TradeBeansNotEnoughError"));
return;
@@ -45,12 +45,12 @@ public class CommandTradeBeans extends Command
if(beans < 0)
{
res.send(String.format(LocStrings.stub("TradeBeansStealingBeans"), user.name));
user.ChangeBeans(-10);
user.changeBeans(-10);
return;
}
input.mentions[0].ChangeBeans(beans);
user.ChangeBeans(-beans);
input.mentions[0].changeBeans(beans);
user.changeBeans(-beans);
res.send(String.format(LocStrings.stub("TradeBeansSuccess"), user.name, input.mentions[0].name, beans));
}
}