Explorar o código

BETA: Minor format and cleanup.

Zoey76 %!s(int64=12) %!d(string=hai) anos
pai
achega
e23708de86

+ 5 - 5
L2J_DataPack_BETA/dist/game/data/scripts/handlers/actionhandlers/L2NpcActionShift.java

@@ -132,17 +132,17 @@ public class L2NpcActionShift implements IActionHandler
 				html.replace("%spawn%", ((L2Npc) target).getSpawn().getLocx() + " " + ((L2Npc) target).getSpawn().getLocy() + " " + ((L2Npc) target).getSpawn().getLocz());
 				html.replace("%loc2d%", String.valueOf((int) Math.sqrt(((L2Character) target).getPlanDistanceSq(((L2Npc) target).getSpawn().getLocx(), ((L2Npc) target).getSpawn().getLocy()))));
 				html.replace("%loc3d%", String.valueOf((int) Math.sqrt(((L2Character) target).getDistanceSq(((L2Npc) target).getSpawn().getLocx(), ((L2Npc) target).getSpawn().getLocy(), ((L2Npc) target).getSpawn().getLocz()))));
-				if (((L2Npc)target).getSpawn().getRespawnMinDelay() == 0)
+				if (((L2Npc) target).getSpawn().getRespawnMinDelay() == 0)
 				{
-					html.replace("%resp%",  "None");
+					html.replace("%resp%", "None");
 				}
-				else if (((L2Npc)target).getSpawn().hasRespawnRandom())
+				else if (((L2Npc) target).getSpawn().hasRespawnRandom())
 				{
-					html.replace("%resp%",  String.valueOf(((L2Npc)target).getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf(((L2Npc)target).getSpawn().getRespawnMaxDelay() / 1000 + " sec"));
+					html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf((((L2Npc) target).getSpawn().getRespawnMaxDelay() / 1000) + " sec"));
 				}
 				else
 				{
-					html.replace("%resp%",  String.valueOf(((L2Npc)target).getSpawn().getRespawnMinDelay() / 1000) + " sec");
+					html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + " sec");
 				}
 			}
 			else

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminTeleport.java

@@ -548,7 +548,7 @@ public class AdminTeleport implements IAdminCommandHandler
 				_log.warning("ERROR: NPC " + target.getObjectId() + " has a 'null' spawn.");
 				return;
 			}
-			int respawnTime = (int) (spawn.getRespawnDelay() / 1000);
+			int respawnTime = spawn.getRespawnDelay() / 1000;
 			
 			target.deleteMe();
 			spawn.stopRespawn();

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/scripts/hellbound/AnomicFoundry/AnomicFoundry.java

@@ -257,7 +257,7 @@ public class AnomicFoundry extends Quest
 				npc.setIsNoRndWalk(true);
 			}
 		}
-
+		
 		else
 		{
 			if ((getSpawnGroup(npc) >= 0) && (getSpawnGroup(npc) <= 2))
@@ -279,7 +279,7 @@ public class AnomicFoundry extends Quest
 				npc.scheduleDespawn(100);
 			}
 		}
-
+		
 		return super.onSpawn(npc);
 	}
 	
@@ -298,7 +298,7 @@ public class AnomicFoundry extends Quest
 		}
 		return -1;
 	}
-
+	
 	private static void requestHelp(L2Npc requester, L2PcInstance agressor, int range)
 	{
 		for (L2Spawn npcSpawn : SpawnTable.getInstance().getSpawnTable())

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/scripts/instances/HellboundTown/HellboundTown.java

@@ -70,7 +70,7 @@ public class HellboundTown extends Quest
 		NpcStringId.GUARDS_ARE_COMING_RUN,
 		NpcStringId.NOW_I_CAN_ESCAPE_ON_MY_OWN
 	};
-
+	
 	private static final int TOMBSTONE = 32343;
 	private static final int KANAF = 32346;
 	private static final int KEYMASTER = 22361;
@@ -249,7 +249,7 @@ public class HellboundTown extends Quest
 			npc.setBusy(false);
 			npc.setBusyMessage("");
 		}
-
+		
 		return super.onSpawn(npc);
 	}
 	
@@ -465,7 +465,7 @@ public class HellboundTown extends Quest
 			}
 		}
 	}
-
+	
 	private class ExitInstance implements Runnable
 	{
 		private final L2Party _party;