@ -92,7 +92,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -92,7 +92,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
PlaceAssetMsg.sendPlaceAssetError(origin,1,"A Serious error has occurred. Please post details for to ensure transaction integrity");
closePlaceAssetWindow(origin);
returntrue;
@ -115,7 +115,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -115,7 +115,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
+" null blueprint UUID: "+buildingList.getBlueprintUUID()+" on deed use");
+" null blueprint UUID: "+buildingList.getBlueprintUUID()+" on deed use");
PlaceAssetMsg.sendPlaceAssetError(origin,1,"A Serious error has occurred. Please post details for to ensure transaction integrity");
closePlaceAssetWindow(origin);
returntrue;
@ -130,66 +130,66 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -130,66 +130,66 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -230,7 +230,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -230,7 +230,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -349,7 +348,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -349,7 +348,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -363,18 +362,18 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -363,18 +362,18 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
if((serverCity!=null)&&
(serverCity.getBane()!=null)){
(serverCity.getBane()!=null)){
// Set the server zone to the city zone in order to account for being inside
PlaceAssetMsg.sendPlaceAssetError(origin,54,"");// Must belong to attacker or defender
returnfalse;
}
}
// cant place siege equipment off city zone.
@ -382,22 +381,22 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -382,22 +381,22 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -421,15 +420,15 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -421,15 +420,15 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -437,10 +436,10 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -437,10 +436,10 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -452,9 +451,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -452,9 +451,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
// passes validation: can assign auto-protection to war asset
@ -507,8 +506,8 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -507,8 +506,8 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -527,18 +526,18 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -527,18 +526,18 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
for(AbstractGameObjectgameObject:cityObjects){
switch(gameObject.getObjectType()){
caseBuilding:
treeObject=(Building)gameObject;
treeObject.runAfterLoad();
break;
caseCity:
cityObject=(City)gameObject;
break;
caseZone:
cityZone=(Zone)gameObject;
break;
default:
// log some error here? *** Refactor
caseBuilding:
treeObject=(Building)gameObject;
treeObject.runAfterLoad();
break;
caseCity:
cityObject=(City)gameObject;
break;
caseZone:
cityZone=(Zone)gameObject;
break;
default:
// log some error here? *** Refactor
}
}
@ -813,10 +812,10 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -813,10 +812,10 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
// Method checks validation conditions arising when placing
@ -956,7 +955,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -956,7 +955,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
// Method validates the location we have selected for our new city
@ -995,7 +994,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -995,7 +994,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
if(
(realmType.equals(RealmType.MAELSTROM))||
(realmType.equals(RealmType.OBLIVION))){
(realmType.equals(RealmType.OBLIVION))){
PlaceAssetMsg.sendPlaceAssetError(origin,57,playerCharacter.getName());// No building may be placed within this territory
returnfalse;
}
@ -1121,20 +1120,20 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1121,20 +1120,20 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
PlaceAssetMsg.sendPlaceAssetError(player.getClientConnection(),1,"A Serious error has occurred. Please post details for to ensure transaction integrity");
PlaceAssetMsg.sendPlaceAssetError(player.getClientConnection(),1,"A Serious error has occurred. Please post details for to ensure transaction integrity");
break;
}
}
@ -1249,6 +1248,85 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1249,6 +1248,85 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -1259,7 +1337,14 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1259,7 +1337,14 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
PlaceAssetMsg.sendPlaceAssetError(origin,10,"");// You must be a guild leader
returnfalse;
}
@ -1282,7 +1367,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1282,7 +1367,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
if(
(currentRealm.equals(RealmType.MAELSTROM))||
(currentRealm.equals(RealmType.OBLIVION))){
(currentRealm.equals(RealmType.OBLIVION))){
PlaceAssetMsg.sendPlaceAssetError(origin,57,player.getName());// No building may be placed within this territory
returnfalse;
}
@ -1373,8 +1458,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1373,8 +1458,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
PlaceAssetMsg.sendPlaceAssetError(origin,9,"");//You must be a guild member to place this asset