Code format for space before comments.

This commit is contained in:
MobiusDevelopment
2019-11-13 16:49:02 +00:00
parent 0997c81251
commit 25678c3f9c
126 changed files with 254 additions and 254 deletions

View File

@@ -232,12 +232,12 @@ public class MapRegionTable
public int getMapRegionX(int posX)
{
return (posX >> 15) + 4;// + centerTileX;
return (posX >> 15) + 4; // + centerTileX;
}
public int getMapRegionY(int posY)
{
return (posY >> 15) + 10;// + centerTileX;
return (posY >> 15) + 10; // + centerTileX;
}
public int getAreaCastle(Creature creature)
@@ -250,7 +250,7 @@ public class MapRegionTable
case 0:
{
castle = 1;
break;// Talking Island Village
break; // Talking Island Village
}
case 1:
{
@@ -446,7 +446,7 @@ public class MapRegionTable
case 16:
{
nearestTown = "Town of Shuttgart";
break; // //TODO@ (Check mapregion table)[Luno]
break; // TODO: (Check mapregion table)[Luno]
}
case 18:
{

View File

@@ -40,7 +40,7 @@ public class CustomWorldHandler
// Rebirth's skills must be actived only on main class
if (!player.isSubClassActive())
{
Rebirth.getInstance().grantRebirthSkills(player);// Rebirth Caller - if player has any skills, they will be granted them.
Rebirth.getInstance().grantRebirthSkills(player); // Rebirth Caller - if player has any skills, they will be granted them.
}
}

View File

@@ -1390,7 +1390,7 @@ public class Clan
public class RankPrivs
{
private final int _rankId;
private final int _party;//
private final int _party; //
private int _rankPrivs;
public RankPrivs(int rank, int party, int privs)

View File

@@ -93,7 +93,7 @@ public class Rebirth
// Returns the skill based on next Birth and if isMage.
Skill skill = getRebirthSkill((currBirth + 1), isMage);
String icon = "" + skill.getId();// Returns the skill's id.
String icon = "" + skill.getId(); // Returns the skill's id.
// Incase the skill is only 3 digits.
if (icon.length() < 4)

View File

@@ -1182,14 +1182,14 @@ public class CTF implements EventTask
finishEvent();
LOGGER.info(_eventName + ": waiting... delay for final messages ");
waiter(60000);// just a give a delay delay for final messages
waiter(60000); // just a give a delay delay for final messages
sendFinalMessages();
if (!_started && !_aborted)
{ // if is not already started and it's not aborted
LOGGER.info(_eventName + ": waiting.....delay for restart event " + _intervalBetweenMatches + " minutes.");
waiter(60000);// just a give a delay to next restart
waiter(60000); // just a give a delay to next restart
try
{
@@ -2140,7 +2140,7 @@ public class CTF implements EventTask
{
if (_teams.size() >= 2)
{
player.setTeam(0);// clear aura :P
player.setTeam(0); // clear aura :P
}
}
player.broadcastUserInfo();

View File

@@ -2038,7 +2038,7 @@ public class TvT implements EventTask
{
if (_teams.size() >= 2)
{
player.setTeam(0);// clear aura :P
player.setTeam(0); // clear aura :P
}
}
player.broadcastUserInfo();

View File

@@ -551,7 +551,7 @@ public class BanditStrongholdSiege extends ClanHallSiege
final Calendar siegeStart = Calendar.getInstance();
siegeStart.setTimeInMillis(getSiegeDate().getTimeInMillis());
final long registerTimeRemaining = siegeStart.getTimeInMillis() - System.currentTimeMillis();
siegeStart.add(Calendar.MINUTE, 60);// ////////////////////HOUR
siegeStart.add(Calendar.MINUTE, 60); // ////////////////////HOUR
final long siegeTimeRemaining = siegeStart.getTimeInMillis() - System.currentTimeMillis();
long remaining = registerTimeRemaining;
if (registerTimeRemaining <= 0)

View File

@@ -578,7 +578,7 @@ public class GamePacketHandler implements IPacketHandler<GameClient>, IClientFac
}
case 0x6b: // send when talking to trainer npc, to show list of available skills
{
msg = new RequestAquireSkillInfo();// --> [s] 0xa4;
msg = new RequestAquireSkillInfo(); // --> [s] 0xa4;
break;
}
case 0x6c: // send when a skill to be learned is selected

View File

@@ -120,10 +120,10 @@ public class CharacterCreate extends GameClientPacket
final int objectId = IdFactory.getInstance().getNextId();
newChar = PlayerInstance.create(objectId, template, getClient().getAccountName(), _name, _hairStyle, _hairColor, _face, _sex != 0);
newChar.setCurrentHp(newChar.getMaxHp());// L2Off like
newChar.setCurrentHp(newChar.getMaxHp()); // L2Off like
// newChar.setCurrentCp(template.baseCpMax);
newChar.setCurrentCp(0); // L2Off like
newChar.setCurrentMp(newChar.getMaxMp());// L2Off like
newChar.setCurrentMp(newChar.getMaxMp()); // L2Off like
// newChar.setMaxLoad(template.baseLoad);
// send acknowledgement

View File

@@ -92,13 +92,13 @@ public class RequestBlock extends GameClientPacket
}
case ALLBLOCK:
{
player.sendPacket(SystemMessageId.MESSAGE_REFUSAL_MODE);// Update by rocknow
player.sendPacket(SystemMessageId.MESSAGE_REFUSAL_MODE); // Update by rocknow
BlockList.setBlockAll(player, true);
break;
}
case ALLUNBLOCK:
{
player.sendPacket(SystemMessageId.MESSAGE_ACCEPTANCE_MODE);// Update by rocknow
player.sendPacket(SystemMessageId.MESSAGE_ACCEPTANCE_MODE); // Update by rocknow
BlockList.setBlockAll(player, false);
break;
}

View File

@@ -41,7 +41,7 @@ public class RequestGetItemFromPet extends GameClientPacket
{
_objectId = readD();
_amount = readD();
_unknown = readD();// = 0 for most trades
_unknown = readD(); // = 0 for most trades
}
@Override

View File

@@ -201,7 +201,7 @@ public class RequestRestartPoint extends GameClientPacket
{
if ((player.getKarma() > 0) && Config.ALT_KARMA_TELEPORT_TO_FLORAN)
{
loc = new Location(17836, 170178, -3507);// Floran Village
loc = new Location(17836, 170178, -3507); // Floran Village
break;
}
loc = MapRegionTable.getInstance().getTeleToLocation(player, MapRegionTable.TeleportWhereType.Town);

View File

@@ -48,8 +48,8 @@ public class SetPrivateStoreListBuy extends GameClientPacket
final int itemId = readD();
_items[(x * 4) + 0] = itemId;
_items[((x * 4) + 3)] = readH();
// readH();//it's the enchant value, but the interlude client has a bug, so it dnt send back the correct enchant value
readH();// TODO analyse this
// readH(); // it's the enchant value, but the interlude client has a bug, so it dnt send back the correct enchant value
readH(); // TODO analyse this
final long cnt = readD();
if ((cnt > Integer.MAX_VALUE) || (cnt < 0))

View File

@@ -102,7 +102,7 @@ public class CustomNpcInfo extends GameServerPacket
writeD((int) _activeChar.getStatus().getCurrentCp());
writeC(_activeChar.getCustomNpcInstance().getEnchantWeapon());
writeC(0x00);
writeD(0);// clan crest
writeD(0); // clan crest
writeC(_activeChar.getCustomNpcInstance().isNoble() ? 1 : 0);
writeC(_activeChar.getCustomNpcInstance().isHero() ? 1 : 0);
writeC(0);

View File

@@ -176,7 +176,7 @@ public class GMViewCharacterInfo extends GameServerPacket
writeD(_runSpd);
writeD(_walkSpd);
writeF(moveMultiplier);
writeF(_player.getAttackSpeedMultiplier()); // 2.9);//
writeF(_player.getAttackSpeedMultiplier()); // 2.9); //
writeF(_player.getTemplate().collisionRadius); // scale
writeF(_player.getTemplate().collisionHeight); // y offset ??!? fem dwarf 4033
writeD(_player.getAppearance().getHairStyle());

View File

@@ -208,7 +208,7 @@ public class NpcInfo extends GameServerPacket
if (_creature instanceof Summon)
{
writeD(0x01);// Title color 0=client default
writeD(0x01); // Title color 0=client default
writeD(((Summon) _creature).getPvpFlag());
writeD(((Summon) _creature).getKarma());
}

View File

@@ -53,7 +53,7 @@ public class PartySmallWindowAdd extends GameServerPacket
writeD(_member.getMaxMp());
writeD(_member.getLevel());
writeD(_member.getClassId().getId());
writeD(0);// writeD(0x01); ??
writeD(0); // writeD(0x01); ??
writeD(0);
}
}

View File

@@ -62,7 +62,7 @@ public class PartySmallWindowAll extends GameServerPacket
writeD(member.getMaxMp());
writeD(member.getLevel());
writeD(member.getClassId().getId());
writeD(0);// writeD(0x01); ??
writeD(0); // writeD(0x01); ??
writeD(member.getRace().ordinal());
}
}

View File

@@ -31,7 +31,7 @@ public class PetDelete extends GameServerPacket
protected final void writeImpl()
{
writeC(0xb6);
writeD(_petId);// dont really know what these two are since i never needed them
writeD(_petObjId);// objectId
writeD(_petId); // dont really know what these two are since i never needed them
writeD(_petObjId); // objectId
}
}

View File

@@ -124,34 +124,34 @@ public class PetInfo extends GameServerPacket
writeD(_summon.getOwner() != null ? _summon.getOwner().getKarma() : 0); // karma
writeD(_curFed); // how fed it is
writeD(_maxFed); // max fed it can be
writeD((int) _summon.getCurrentHp());// current hp
writeD(_maxHp);// max hp
writeD((int) _summon.getCurrentMp());// current mp
writeD(_maxMp);// max mp
writeD((int) _summon.getCurrentHp()); // current hp
writeD(_maxHp); // max hp
writeD((int) _summon.getCurrentMp()); // current mp
writeD(_maxMp); // max mp
writeD(_summon.getStat().getSp()); // sp
writeD(_summon.getLevel());// lvl
writeD(_summon.getLevel()); // lvl
writeQ(_summon.getStat().getExp());
writeQ(_summon.getExpForThisLevel());// 0% absolute value
writeQ(_summon.getExpForNextLevel());// 100% absoulte value
writeD(_summon instanceof PetInstance ? _summon.getInventory().getTotalWeight() : 0);// weight
writeD(_summon.getMaxLoad());// max weight it can carry
writeD(_summon.getPAtk(null));// patk
writeD(_summon.getPDef(null));// pdef
writeD(_summon.getMAtk(null, null));// matk
writeD(_summon.getMDef(null, null));// mdef
writeD(_summon.getAccuracy());// accuracy
writeD(_summon.getEvasionRate(null));// evasion
writeD(_summon.getCriticalHit(null, null));// critical
writeD(_runSpd);// speed
writeD(_summon.getPAtkSpd());// atkspeed
writeD(_summon.getMAtkSpd());// casting speed
writeQ(_summon.getExpForThisLevel()); // 0% absolute value
writeQ(_summon.getExpForNextLevel()); // 100% absoulte value
writeD(_summon instanceof PetInstance ? _summon.getInventory().getTotalWeight() : 0); // weight
writeD(_summon.getMaxLoad()); // max weight it can carry
writeD(_summon.getPAtk(null)); // patk
writeD(_summon.getPDef(null)); // pdef
writeD(_summon.getMAtk(null, null)); // matk
writeD(_summon.getMDef(null, null)); // mdef
writeD(_summon.getAccuracy()); // accuracy
writeD(_summon.getEvasionRate(null)); // evasion
writeD(_summon.getCriticalHit(null, null)); // critical
writeD(_runSpd); // speed
writeD(_summon.getPAtkSpd()); // atkspeed
writeD(_summon.getMAtkSpd()); // casting speed
writeD(0);// c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
writeD(0); // c2 abnormal visual effect... bleed=1; poison=2; poison & bleed=3; flame=4;
final int npcId = _summon.getTemplate().npcId;
if ((npcId >= 12526) && (npcId <= 12528))
{
writeH(1);// c2 ride button
writeH(1); // c2 ride button
}
else
{

View File

@@ -68,7 +68,7 @@ public class PetStatusUpdate extends GameServerPacket
writeD(_maxMp);
writeD(_summon.getLevel());
writeQ(_summon.getStat().getExp());
writeQ(_summon.getExpForThisLevel());// 0% absolute value
writeQ(_summon.getExpForNextLevel());// 100% absolute value
writeQ(_summon.getExpForThisLevel()); // 0% absolute value
writeQ(_summon.getExpForNextLevel()); // 100% absolute value
}
}

View File

@@ -73,7 +73,7 @@ public class PrivateStoreListBuy extends GameServerPacket
writeD(item.getItem().getBodyPart());
writeH(item.getItem().getType2());
writeD(item.getPrice());// buyers price
writeD(item.getPrice()); // buyers price
writeD(item.getCount()); // maximum possible tradecount
}

View File

@@ -80,8 +80,8 @@ public class PrivateStoreManageListBuy extends GameServerPacket
writeH(0x00);
writeD(item.getItem().getBodyPart());
writeH(item.getItem().getType2());
writeD(item.getPrice());// your price
writeD(item.getItem().getReferencePrice());// fixed store price
writeD(item.getPrice()); // your price
writeD(item.getItem().getReferencePrice()); // fixed store price
}
}
}

View File

@@ -76,7 +76,7 @@ public class PrivateStoreManageListSell extends GameServerPacket
writeD(item.getItem().getItemId());
writeD(item.getCount());
writeH(0);
writeH(item.getEnchant());// enchant lvl
writeH(item.getEnchant()); // enchant lvl
writeH(0);
writeD(item.getItem().getBodyPart());
writeD(item.getPrice()); // store price
@@ -91,10 +91,10 @@ public class PrivateStoreManageListSell extends GameServerPacket
writeD(item.getItem().getItemId());
writeD(item.getCount());
writeH(0);
writeH(item.getEnchant());// enchant lvl
writeH(item.getEnchant()); // enchant lvl
writeH(0x00);
writeD(item.getItem().getBodyPart());
writeD(item.getPrice());// your price
writeD(item.getPrice()); // your price
writeD(item.getItem().getReferencePrice()); // store price
}
}

View File

@@ -53,7 +53,7 @@ public class RecipeBookItemList extends GameServerPacket
}
else
{
writeD(_recipes.length);// number of items in recipe book
writeD(_recipes.length); // number of items in recipe book
for (int i = 0; i < _recipes.length; i++)
{

View File

@@ -73,7 +73,7 @@ public class RecipeShopManageList extends GameServerPacket
}
else
{
writeD(_recipes.length);// number of items in recipe book
writeD(_recipes.length); // number of items in recipe book
for (int i = 0; i < _recipes.length; i++)
{

View File

@@ -35,6 +35,6 @@ public class RecipeShopMsg extends GameServerPacket
{
writeC(0xdb);
writeD(_player.getObjectId());
writeS(_player.getCreateList().getStoreName());// _activeChar.getTradeList().getSellStoreName());
writeS(_player.getCreateList().getStoreName()); // _activeChar.getTradeList().getSellStoreName());
}
}

View File

@@ -44,9 +44,9 @@ public class RecipeShopSellList extends GameServerPacket
// dddd d(ddd)
writeC(0xd9);
writeD(_manufacturer.getObjectId());
writeD((int) _manufacturer.getCurrentMp());// Creator's MP
writeD(_manufacturer.getMaxMp());// Creator's MP
writeD(_buyer.getAdena());// Buyer Adena
writeD((int) _manufacturer.getCurrentMp()); // Creator's MP
writeD(_manufacturer.getMaxMp()); // Creator's MP
writeD(_buyer.getAdena()); // Buyer Adena
final int count = createList.size();
writeD(count);

View File

@@ -31,7 +31,7 @@ public class SetupGauge extends GameServerPacket
public SetupGauge(int dat1, int time)
{
_dat1 = dat1;// color 0-blue 1-red 2-cyan 3-
_dat1 = dat1; // color 0-blue 1-red 2-cyan 3-
_time = time;
}

View File

@@ -77,6 +77,6 @@ public class ShortCutRegister extends GameServerPacket
}
}
writeD(1);// ??
writeD(1); // ??
}
}

View File

@@ -25,7 +25,7 @@ public class VehicleDeparture extends GameServerPacket
{
private final BoatInstance _boat;
private final int _speed1;
private final int _speed2;// rotation
private final int _speed2; // rotation
private final int _x;
private final int _y;
private final int _z;

View File

@@ -303,7 +303,7 @@ public class GameStatusThread extends Thread
final DecimalFormat df = new DecimalFormat(" (0.0000'%')");
final DecimalFormat df2 = new DecimalFormat(" # 'KB'");
_print.println("+----");// ...
_print.println("+----"); // ...
_print.println("| Allowed Memory:" + df2.format(max));
_print.println("| |= Allocated Memory:" + df2.format(allocated) + df.format((allocated / max) * 100));
_print.println("| |= Non-Allocated Memory:" + df2.format(nonAllocated) + df.format((nonAllocated / max) * 100));