Kit mage will now start with two spells

This commit is contained in:
libraryaddict 2015-01-28 03:01:44 +13:00
parent 1da873ab8f
commit 2dfdde4457
2 changed files with 14 additions and 12 deletions

View File

@ -40,7 +40,6 @@ import nautilus.game.arcade.game.games.wizards.kit.KitMage;
import nautilus.game.arcade.game.games.wizards.kit.KitMystic;
import nautilus.game.arcade.game.games.wizards.kit.KitSorcerer;
import nautilus.game.arcade.game.games.wizards.kit.KitWitchDoctor;
import nautilus.game.arcade.game.games.wizards.kit.KitMage;
import nautilus.game.arcade.game.games.wizards.spellinterfaces.SpellClick;
import nautilus.game.arcade.game.games.wizards.spellinterfaces.SpellClickBlock;
import nautilus.game.arcade.game.games.wizards.spellinterfaces.SpellClickEntity;
@ -136,8 +135,8 @@ public class Wizards extends SoloGame
new KitMystic(manager),
new KitWitchDoctor(manager),
// new KitWarlock(manager)
// new KitWarlock(manager)
});
_wizard = new WizardSpellMenu("Wizard Spell Menu", getArcadeManager().GetPlugin(), this);
@ -1032,18 +1031,21 @@ public class Wizards extends SoloGame
if (kit instanceof KitMage)
{
for (int i = 0; i < 100; i++)
for (int a = 0; a < 2; a++)
{
SpellType spell = SpellType.values()[UtilMath.r(SpellType.values().length)];
if (wizard.getSpellLevel(spell) < spell.getMaxLevel())
for (int i = 0; i < 100; i++)
{
onSpellLearn(player, spell);
SpellType spell = SpellType.values()[UtilMath.r(SpellType.values().length)];
UtilTextMiddle.display("", spell.getElement().getColor() + spell.getSpellName() + " leveled to "
+ spell.getElement().getColor() + wizard.getSpellLevel(spell), 5, 40, 5, player);
if (wizard.getSpellLevel(spell) < spell.getMaxLevel())
{
onSpellLearn(player, spell);
break;
addMiddleText(player, spell.getElement().getColor() + spell.getSpellName() + " leveled to "
+ spell.getElement().getColor() + wizard.getSpellLevel(spell));
break;
}
}
}
}

View File

@ -19,7 +19,7 @@ public class KitMage extends Kit
{
super(manager, "Mage", KitAvailability.Free, new String[]
{
"Start with an extra spell"
"Start with two extra spells"
}, new Perk[0], EntityType.WITCH, new ItemStack(Material.BLAZE_ROD));
}