Change sentence formatting in modifyMoney

This commit is contained in:
ulumulu1510 2015-03-03 21:35:37 +01:00 committed by Olof Larsson
parent d2b6035fd3
commit aa4645b036

View File

@ -236,6 +236,7 @@ public class Econ
if (delta == 0) return true;
String You = ep.describeTo(ep, true);
String you = ep.describeTo(ep, false);
boolean hasActionDesctription = (actionDescription != null && !actionDescription.isEmpty());
@ -247,11 +248,11 @@ public class Econ
{
if (delta > 0)
{
ep.msg("<h>%s<i> gained <h>%s<i> since did %s.", You, Money.format(delta), actionDescription);
ep.msg("<h>%s<i> gained <h>%s<i> since %s did %s.", You, Money.format(delta), you, actionDescription);
}
else
{
ep.msg("<h>%s<i> lost <h>%s<i> since did %s.", You, Money.format(-delta), actionDescription);
ep.msg("<h>%s<i> lost <h>%s<i> since %s did %s.", You, Money.format(-delta), you, actionDescription);
}
}
return true;
@ -262,7 +263,7 @@ public class Econ
{
if (delta > 0)
{
ep.msg("<h>%s<i> would have gained <h>%s<i> since did %s, but the deposit failed.", You, Money.format(delta), actionDescription);
ep.msg("<h>%s<i> would have gained <h>%s<i> since %s did %s, but the deposit failed.", You, Money.format(delta), you, actionDescription);
}
else
{