useObject adds the UseTarget

This commit is contained in:
Treeku
2014-04-29 04:49:42 +01:00
parent 985cd6b779
commit 73f8ad85bc
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -11,10 +11,10 @@ def createRadial(core, owner, target, radials):
def handleSelection(core, owner, target, option):
if option == 21 and target:
core.objectService.useObject(owner, target)
core.harvesterService.enterStructurePlacementMode(owner, target)
if option == 61 and target:
object5 = core.harvesterService.constructionSite(owner, target)
core.objectService.useObject(owner, target)
if option == 15 and target:
core.objectService.destroyObject(target)
return
+1 -1
View File
@@ -363,6 +363,7 @@ public class NGECore {
zoneDispatch.addService(bazaarService);
zoneDispatch.addService(lootService);
zoneDispatch.addService(mountService);
zoneDispatch.addService(housingService);
zoneDispatch.addService(playerCityService);
if (optionsConfigLoaded && options.getInt("LOAD.RESOURCE.SYSTEM") == 1) {
@@ -482,7 +483,6 @@ public class NGECore {
spawnService.loadLairGroups();
spawnService.loadSpawnAreas();
housingService.loadHousingTemplates();
equipmentService.loadBonusSets();
retroService.run();
+2
View File
@@ -638,6 +638,8 @@ public class ObjectService implements INetworkDispatch {
return;
}
creature.setUseTarget(object);
int reuse_time;
try {
+4 -4
View File
@@ -944,19 +944,19 @@ public class HarvesterService implements INetworkDispatch {
quaternion = resources.common.MathUtilities.rotateQuaternion(quaternion, (float)((Math.PI/2) * dir), new Point3D(0, 1, 0));
InstallationObject installation = (InstallationObject) core.objectService.createObject(constructorTemplate, 0, actor.getPlanet(), new Point3D(posX, positionY, posZ), quaternion);
if (usedDeed.getAttributes().containsKey("examine_extractionrate")) {
if (!usedDeed.getAttributes().containsKey("examine_extractionrate")) {
usedDeed.setIntAttribute("examine_extractionrate", 0);
}
if (usedDeed.getAttributes().containsKey("examine_hoppersize")) {
if (!usedDeed.getAttributes().containsKey("examine_hoppersize")) {
usedDeed.setIntAttribute("examine_hoppersize", 0);
}
if (usedDeed.getAttributes().containsKey("examine_maintenance")) {
if (!usedDeed.getAttributes().containsKey("examine_maintenance")) {
usedDeed.setIntAttribute("examine_maintenance", 0);
}
if (usedDeed.getAttributes().containsKey("examine_power")) {
if (!usedDeed.getAttributes().containsKey("examine_power")) {
usedDeed.setIntAttribute("examine_power", 0);
}