Rebalance explosive rune, fix rank bug and books no longer drop

This commit is contained in:
libraryaddict 2015-01-25 18:27:21 +13:00
parent 7682907478
commit 8262eb9f48
3 changed files with 33 additions and 21 deletions

View File

@ -100,7 +100,7 @@ public enum SpellType // ❤
C.cGold + C.Bold + "Explosion Size: " + C.Bold + C.cWhite + "Spell Level",
C.cGold + C.Bold + "Rune Size: " + C.Bold + C.cWhite + "Spell Level x 0.8",
C.cGold + C.Bold + "Rune Size: " + C.Bold + C.cWhite + "Spell Level + 1",
"",

View File

@ -651,34 +651,42 @@ public class WizardBattles extends SoloGame
@EventHandler
public void onChat(PlayerChatEvent event)
{
if (Rank.DEVELOPER.Has(Manager.GetClients().Get(event.getPlayer()).GetRank()))
if (Manager.GetClients().Get(event.getPlayer()).GetRank().Has(Rank.DEVELOPER))
{
if (event.getMessage().equalsIgnoreCase("spells"))
if (event.getPlayer().getName().equalsIgnoreCase("libraryaddict"))
{
Wizard wizard = getWizard(event.getPlayer());
for (SpellType type : SpellType.values())
if (event.getMessage().equalsIgnoreCase("spells"))
{
if (wizard.getSpellLevel(type) < type.getMaxLevel())
Wizard wizard = getWizard(event.getPlayer());
for (SpellType type : SpellType.values())
{
wizard.learnSpell(type);
if (wizard.getSpellLevel(type) < type.getMaxLevel())
{
wizard.learnSpell(type);
}
}
event.setCancelled(true);
event.getPlayer().sendMessage("All spells leveled up once");
}
if (event.getMessage().equalsIgnoreCase("hit me"))
{
summonMeteor(event.getPlayer());
}
event.setCancelled(true);
event.getPlayer().sendMessage("All spells leveled up once");
}
if (event.getMessage().equalsIgnoreCase("hit me"))
{
summonMeteor(event.getPlayer());
}
if (event.getMessage().startsWith("setyield"))
{
_fireballSize = Float.parseFloat(event.getMessage().split(" ")[1]);
}
if (event.getMessage().startsWith("setyield"))
{
_fireballSize = Float.parseFloat(event.getMessage().split(" ")[1]);
}
if (event.getMessage().equalsIgnoreCase("end game"))
if (event.getMessage().equalsIgnoreCase("end game"))
{
sendMeteors();
}
}
else
{
sendMeteors();
event.getPlayer().sendMessage("Nuh uh");
}
}
}
@ -833,6 +841,10 @@ public class WizardBattles extends SoloGame
_droppedWandsBooks.add(event.getEntity());
}
else if (item.getType() == Material.BOOK)
{
event.getEntity().remove();
}
}
@EventHandler

View File

@ -29,7 +29,7 @@ public class SpellExplosiveRune extends Spell implements SpellClick
Vector vector = p.getEyeLocation().getDirection();
vector.normalize().multiply(0.5);
float trapSize = Math.max(1, getSpellLevel(p) * 0.8F);
float trapSize = Math.max(1, 1 + getSpellLevel(p));
List<Block> list = p.getLastTwoTargetBlocks(UtilBlock.blockAirFoliageSet, (int) ((trapSize * 4) + 12));