Fixed loads of warnings

This commit is contained in:
Treeku
2014-05-14 15:51:25 +01:00
parent 3f571c48aa
commit 865db149ad
36 changed files with 46 additions and 107 deletions
+2 -5
View File
@@ -289,7 +289,6 @@ public class Forager {
break;
}
wormie.setCustomName(name);
wormie.setCustomName2(name);
wormie.setLevel(forager.getLevel());
wormie.setOptions(Options.AGGRESSIVE, true);
wormie.setOptions(Options.ATTACKABLE, true);
@@ -342,7 +341,6 @@ public class Forager {
goon.addObserver(forager);
goon.setCustomName(name);
goon.setCustomName2(name);
goon.setLevel(forager.getLevel());
goon.setOptions(Options.AGGRESSIVE, true);
goon.setOptions(Options.ATTACKABLE, true);
@@ -418,7 +416,6 @@ public class Forager {
guard.addObserver(owner); // ToDo: add any players in aggro range!!!
guard.setCustomName(name);
guard.setCustomName2(name);
guard.setLevel(owner.getLevel());
guard.setOptions(Options.AGGRESSIVE, true);
guard.setOptions(Options.ATTACKABLE, true);
@@ -434,8 +431,8 @@ public class Forager {
public CreatureObject spawnBoss(Point3D exactTreasureLocation, CreatureObject owner, TangibleObject map, short spawnLevel){
Point3D treasureLocation = resources.common.SpawnPoint.getRandomPosition(exactTreasureLocation, 1, 10, owner.getPlanetId());
return new CreatureObject();
//Point3D treasureLocation = resources.common.SpawnPoint.getRandomPosition(exactTreasureLocation, 1, 10, owner.getPlanetId());
return new CreatureObject(); // FIXME on paper this looks bad
}
@SuppressWarnings("unchecked")