Adjustments for max enchant.

Contributed by rocknowx.
This commit is contained in:
MobiusDev
2015-08-24 13:41:33 +00:00
parent 259f4e8644
commit 610dee6a01
4 changed files with 8 additions and 8 deletions

View File

@@ -11,7 +11,7 @@
<font color="LEVEL">Enchant Enhancement:</font><br> <font color="LEVEL">Enchant Enhancement:</font><br>
<table width=250> <table width=250>
<tr> <tr>
<td>Enchant Value 0-65535:</td> <td>Enchant Value 0-127:</td>
<td><edit var="qbox" width=75 height=12></td> <td><edit var="qbox" width=75 height=12></td>
</tr> </tr>
</table> </table>

View File

@@ -138,9 +138,9 @@ public class AdminEnchant implements IAdminCommandHandler
int ench = Integer.parseInt(command.substring(12)); int ench = Integer.parseInt(command.substring(12));
// check value // check value
if ((ench < 0) || (ench > 65535)) if ((ench < 0) || (ench > 127))
{ {
activeChar.sendMessage("You must set the enchant level to be between 0-65535."); activeChar.sendMessage("You must set the enchant level to be between 0-127.");
} }
else else
{ {

View File

@@ -175,9 +175,9 @@ public class PlayerHandler implements ITelnetHandler
itemType = 0; itemType = 0;
} }
if (enchant > 65535) if (enchant > 127)
{ {
enchant = 65535; enchant = 127;
} }
else if (enchant < 0) else if (enchant < 0)
{ {

View File

@@ -84,9 +84,9 @@ public abstract class AbstractEnchantItem
} }
_grade = set.getEnum("targetGrade", CrystalType.class, CrystalType.NONE); _grade = set.getEnum("targetGrade", CrystalType.class, CrystalType.NONE);
_minEnchantLevel = set.getInt("minEnchant", 0); _minEnchantLevel = set.getInt("minEnchant", 0);
_maxEnchantLevel = set.getInt("maxEnchant", 65535); _maxEnchantLevel = set.getInt("maxEnchant", 127);
_maxEnchantLevelFighter = set.getInt("maxEnchantFighter", 65535); _maxEnchantLevelFighter = set.getInt("maxEnchantFighter", 127);
_maxEnchantLevelMagic = set.getInt("maxEnchantMagic", 65535); _maxEnchantLevelMagic = set.getInt("maxEnchantMagic", 127);
_bonusRate = set.getDouble("bonusRate", 0); _bonusRate = set.getDouble("bonusRate", 0);
} }