mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-11 21:45:43 -04:00
useObject adds the UseTarget
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -638,6 +638,8 @@ public class ObjectService implements INetworkDispatch {
|
||||
return;
|
||||
}
|
||||
|
||||
creature.setUseTarget(object);
|
||||
|
||||
int reuse_time;
|
||||
|
||||
try {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user