Fix resource gen giving incorrect item amounts

This commit is contained in:
Sam 2018-07-20 16:12:41 +01:00 committed by Alexander Meech
parent 77fee0f567
commit cff9b1749b
2 changed files with 3 additions and 5 deletions

View File

@ -24,8 +24,8 @@ import mineplex.core.updater.event.UpdateEvent;
import nautilus.game.arcade.game.GameTeam; import nautilus.game.arcade.game.GameTeam;
import nautilus.game.arcade.game.games.cakewars.CakeModule; import nautilus.game.arcade.game.games.cakewars.CakeModule;
import nautilus.game.arcade.game.games.cakewars.CakeWars; import nautilus.game.arcade.game.games.cakewars.CakeWars;
import nautilus.game.arcade.game.games.cakewars.shop.CakeResource;
import nautilus.game.arcade.game.games.cakewars.shop.CakeNetherItem; import nautilus.game.arcade.game.games.cakewars.shop.CakeNetherItem;
import nautilus.game.arcade.game.games.cakewars.shop.CakeResource;
import nautilus.game.arcade.game.games.cakewars.team.CakeTeam; import nautilus.game.arcade.game.games.cakewars.team.CakeTeam;
public class CakeSpawnerModule extends CakeModule public class CakeSpawnerModule extends CakeModule
@ -146,8 +146,6 @@ public class CakeSpawnerModule extends CakeModule
CakeTeam cakeTeam = _game.getCakeTeamModule().getCakeTeam(team); CakeTeam cakeTeam = _game.getCakeTeamModule().getCakeTeam(team);
amount += cakeTeam.getUpgrades().get(CakeNetherItem.RESOURCE);
ItemStack itemStack = resource.getItemStack().clone(); ItemStack itemStack = resource.getItemStack().clone();
itemStack.setAmount(amount); itemStack.setAmount(amount);
Location location = cakeTeam.getGenerator(); Location location = cakeTeam.getGenerator();

View File

@ -188,8 +188,8 @@ public class OPCakeWars extends CakeWars
return -1; return -1;
} }
// 1.5 seems like a low number to increase by, but all upgrades, including Resource Generator are maxed out by default. // 2 seems like a low number to increase by, but all upgrades, including Resource Generator are maxed out by default.
return (int) (current * 1.5); return current * 2;
} }
@Override @Override