Various typo fixes.

This commit is contained in:
MobiusDevelopment
2020-09-23 05:39:39 +00:00
parent 15808c4955
commit e7fb24cc62
130 changed files with 1032 additions and 1032 deletions

View File

@@ -105,19 +105,19 @@ public class ItemAuctionInstance
{
final NamedNodeMap naa = na.getAttributes();
final int auctionItemId = Integer.parseInt(naa.getNamedItem("auctionItemId").getNodeValue());
final int auctionLenght = Integer.parseInt(naa.getNamedItem("auctionLenght").getNodeValue());
final int auctionLength = Integer.parseInt(naa.getNamedItem("auctionLength").getNodeValue());
final long auctionInitBid = Integer.parseInt(naa.getNamedItem("auctionInitBid").getNodeValue());
final int itemId = Integer.parseInt(naa.getNamedItem("itemId").getNodeValue());
final int itemCount = Integer.parseInt(naa.getNamedItem("itemCount").getNodeValue());
if (auctionLenght < 1)
if (auctionLength < 1)
{
throw new IllegalArgumentException("auctionLenght < 1 for instanceId: " + _instanceId + ", itemId " + itemId);
throw new IllegalArgumentException("auctionLength < 1 for instanceId: " + _instanceId + ", itemId " + itemId);
}
final StatSet itemExtra = new StatSet();
final AuctionItem item = new AuctionItem(auctionItemId, auctionLenght, auctionInitBid, itemId, itemCount, itemExtra);
final AuctionItem item = new AuctionItem(auctionItemId, auctionLength, auctionInitBid, itemId, itemCount, itemExtra);
if (!item.checkItemExists())
{

View File

@@ -101,10 +101,10 @@ public class ZoneNPoly extends ZoneForm
final int nextIndex = (i + 1) == _p.xpoints.length ? 0 : i + 1;
final int vx = _p.xpoints[nextIndex] - _p.xpoints[i];
final int vy = _p.ypoints[nextIndex] - _p.ypoints[i];
final float lenght = (float) Math.sqrt((vx * vx) + (vy * vy)) / STEP;
for (int o = 1; o <= lenght; o++)
final float length = (float) Math.sqrt((vx * vx) + (vy * vy)) / STEP;
for (int o = 1; o <= length; o++)
{
dropDebugItem(Inventory.ADENA_ID, 1, (int) (_p.xpoints[i] + ((o / lenght) * vx)), (int) (_p.ypoints[i] + ((o / lenght) * vy)), z);
dropDebugItem(Inventory.ADENA_ID, 1, (int) (_p.xpoints[i] + ((o / length) * vx)), (int) (_p.ypoints[i] + ((o / length) * vy)), z);
}
}
}

View File

@@ -58,7 +58,7 @@ public class ResidenceHallTeleportZone extends ResidenceTeleportZone
return _id;
}
public synchronized void checkTeleporTask()
public synchronized void checkTeleportTask()
{
if ((_teleTask == null) || _teleTask.isDone())
{

View File

@@ -30,7 +30,7 @@ import org.l2jmobius.gameserver.network.SystemMessageId;
public class RequestMakeMacro implements IClientIncomingPacket
{
private Macro _macro;
private int _commandsLenght = 0;
private int _commandsLength = 0;
private static final int MAX_MACRO_LENGTH = 12;
@@ -56,7 +56,7 @@ public class RequestMakeMacro implements IClientIncomingPacket
final int d1 = packet.readD(); // skill or page number for shortcuts
final int d2 = packet.readC();
final String command = packet.readS();
_commandsLenght += command.length();
_commandsLength += command.length();
commands.add(new MacroCmd(entry, MacroType.values()[(type < 1) || (type > 6) ? 0 : type], d1, d2, command));
}
_macro = new Macro(_id, icon, _name, _desc, _acronym, commands);
@@ -71,7 +71,7 @@ public class RequestMakeMacro implements IClientIncomingPacket
{
return;
}
if (_commandsLenght > 255)
if (_commandsLength > 255)
{
// Invalid macro. Refer to the Help file for instructions.
player.sendPacket(SystemMessageId.INVALID_MACRO_REFER_TO_THE_HELP_FILE_FOR_INSTRUCTIONS);