|
@@ -98,7 +98,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return name that's going to be set to the player while is transformed with current transformation.
|
|
|
+ * @return name that's going to be set to the player while is transformed with current transformation
|
|
|
*/
|
|
|
public String getName()
|
|
|
{
|
|
@@ -106,7 +106,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return title that's going to be set to the player while is transformed with current transformation.
|
|
|
+ * @return title that's going to be set to the player while is transformed with current transformation
|
|
|
*/
|
|
|
public String getTitle()
|
|
|
{
|
|
@@ -131,7 +131,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if transform type is mode change, {@code false} otherwise.
|
|
|
+ * @return {@code true} if transform type is mode change, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean isStance()
|
|
|
{
|
|
@@ -139,7 +139,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if transform type is combat, {@code false} otherwise.
|
|
|
+ * @return {@code true} if transform type is combat, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean isCombat()
|
|
|
{
|
|
@@ -147,7 +147,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if transform type is non combat, {@code false} otherwise.
|
|
|
+ * @return {@code true} if transform type is non combat, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean isNonCombat()
|
|
|
{
|
|
@@ -155,7 +155,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if transform type is flying, {@code false} otherwise.
|
|
|
+ * @return {@code true} if transform type is flying, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean isFlying()
|
|
|
{
|
|
@@ -163,7 +163,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if transform type is cursed, {@code false} otherwise.
|
|
|
+ * @return {@code true} if transform type is cursed, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean isCursed()
|
|
|
{
|
|
@@ -171,7 +171,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if transform type is raiding, {@code false} otherwise.
|
|
|
+ * @return {@code true} if transform type is raiding, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean isRiding()
|
|
|
{
|
|
@@ -179,7 +179,7 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if transform type is pure stat, {@code false} otherwise.
|
|
|
+ * @return {@code true} if transform type is pure stat, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean isPureStats()
|
|
|
{
|
|
@@ -225,31 +225,25 @@ public final class Transform implements IIdentifiable
|
|
|
}
|
|
|
|
|
|
// Add common skills.
|
|
|
- if (!template.getSkills().isEmpty())
|
|
|
+ for (SkillHolder holder : template.getSkills())
|
|
|
{
|
|
|
- for (SkillHolder holder : template.getSkills())
|
|
|
+ if (player.getSkillLevel(holder.getSkillId()) < holder.getSkillLvl())
|
|
|
{
|
|
|
- if (player.getSkillLevel(holder.getSkillId()) < holder.getSkillLvl())
|
|
|
- {
|
|
|
- player.addSkill(holder.getSkill(), false);
|
|
|
- }
|
|
|
- player.addTransformSkill(holder.getSkillId());
|
|
|
+ player.addSkill(holder.getSkill(), false);
|
|
|
}
|
|
|
+ player.addTransformSkill(holder.getSkillId());
|
|
|
}
|
|
|
|
|
|
// Add skills depending on level.
|
|
|
- if (!template.getAdditionalSkills().isEmpty())
|
|
|
+ for (AdditionalSkillHolder holder : template.getAdditionalSkills())
|
|
|
{
|
|
|
- for (AdditionalSkillHolder holder : template.getAdditionalSkills())
|
|
|
+ if (player.getLevel() >= holder.getMinLevel())
|
|
|
{
|
|
|
- if (player.getLevel() >= holder.getMinLevel())
|
|
|
+ if (player.getSkillLevel(holder.getSkillId()) < holder.getSkillLvl())
|
|
|
{
|
|
|
- if (player.getSkillLevel(holder.getSkillId()) < holder.getSkillLvl())
|
|
|
- {
|
|
|
- player.addSkill(holder.getSkill(), false);
|
|
|
- }
|
|
|
- player.addTransformSkill(holder.getSkillId());
|
|
|
+ player.addSkill(holder.getSkill(), false);
|
|
|
}
|
|
|
+ player.addTransformSkill(holder.getSkillId());
|
|
|
}
|
|
|
}
|
|
|
|