Code:
/**
* Method for removing webs when they are slashed
* @param x Object x
* @param y Object y
*/
public void removeWeb(int x, int y) {
//1st web
if (x == 3092 && y == 3957) {
if(Server.getGlobalObjects().exists(733, x, y))
Server.getGlobalObjects().add(new GlobalObject(734, x, y, 0, 2, 0,
50, 733));
else
return;
}
//2nd web
if (x == 3095 && y == 3957) {
if(Server.getGlobalObjects().exists(733, x, y))
Server.getGlobalObjects().add(new GlobalObject(734, x, y, 0, 0, 0,
50, 733));
else
return;
}
//3rd web
if (x == 3106 && y == 3958) {
if(Server.getGlobalObjects().exists(733, x, y))
Server.getGlobalObjects().add(new GlobalObject(734, x, y, 0, 3, 10,
50, 733));
else
return;
}
//4th web
if (x == 3105 && y == 3958) {
if(Server.getGlobalObjects().exists(733, x, y))
Server.getGlobalObjects().add(new GlobalObject(734, x, y, 0, 3, 10,
50, 733));
else
return;
}
//5th web
if (x == 3158 && y == 3951) {
if(Server.getGlobalObjects().exists(733, x, y))
Server.getGlobalObjects().add(new GlobalObject(734, x, y, 0, 1, 10,
50, 733));
else
return;
}
}