Fix issue #0000023 where Jobs and Money were not giving Double job EXP /

money for every job.
This commit is contained in:
sigonasr2 2013-11-02 00:01:44 -07:00
parent 7e96105941
commit c0ce4e58d7
2 changed files with 7 additions and 0 deletions

View File

@ -3279,6 +3279,10 @@ public void payDay(int time)
public void gainMoneyExp(Player p,String job,double amount,double exp) { public void gainMoneyExp(Player p,String job,double amount,double exp) {
String[] jobs = getJobs(p); String[] jobs = getJobs(p);
int slot=-1; int slot=-1;
if (getConfig().getBoolean("halloween-enabled")) {
amount*=2;
exp*=2;
}
//Add to how much we've earned so far. //Add to how much we've earned so far.
for (int i=0;i<SPEED_CONTROL.size();i++) { for (int i=0;i<SPEED_CONTROL.size();i++) {
if (SPEED_CONTROL.get(i).p.getName().equalsIgnoreCase(p.getName())) { if (SPEED_CONTROL.get(i).p.getName().equalsIgnoreCase(p.getName())) {
@ -3313,6 +3317,9 @@ public void payDay(int time)
public void gainMoney(Player p,String job,double amount) { public void gainMoney(Player p,String job,double amount) {
String[] jobs = getJobs(p); String[] jobs = getJobs(p);
int slot=-1; int slot=-1;
if (getConfig().getBoolean("halloween-enabled")) {
amount*=2;
}
//Add to how much we've earned so far. //Add to how much we've earned so far.
for (int i=0;i<SPEED_CONTROL.size();i++) { for (int i=0;i<SPEED_CONTROL.size();i++) {
if (SPEED_CONTROL.get(i).p.getName().equalsIgnoreCase(p.getName())) { if (SPEED_CONTROL.get(i).p.getName().equalsIgnoreCase(p.getName())) {