mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-16 08:55:18 +00:00
boomers are no longer owned if the trigger is dropped (how long has this been not working?)
This commit is contained in:
parent
445176006f
commit
82222d7c0b
1 changed files with 8 additions and 8 deletions
|
|
@ -69,7 +69,7 @@ trait DeployableBehavior {
|
||||||
if DeployableObject.OwnerGuid.nonEmpty =>
|
if DeployableObject.OwnerGuid.nonEmpty =>
|
||||||
val obj = DeployableObject
|
val obj = DeployableObject
|
||||||
if (constructed.contains(true)) {
|
if (constructed.contains(true)) {
|
||||||
loseOwnership(obj, obj.Faction)
|
loseOwnership(obj, PlanetSideEmpire.NEUTRAL)
|
||||||
} else {
|
} else {
|
||||||
obj.OwnerGuid = None
|
obj.OwnerGuid = None
|
||||||
}
|
}
|
||||||
|
|
@ -103,9 +103,9 @@ trait DeployableBehavior {
|
||||||
* may also affect deployable operation
|
* may also affect deployable operation
|
||||||
*/
|
*/
|
||||||
def loseOwnership(obj: Deployable, toFaction: PlanetSideEmpire.Value): Unit = {
|
def loseOwnership(obj: Deployable, toFaction: PlanetSideEmpire.Value): Unit = {
|
||||||
DeployableBehavior.changeOwership(
|
DeployableBehavior.changeOwnership(
|
||||||
obj,
|
obj,
|
||||||
obj.Faction,
|
toFaction,
|
||||||
DeployableInfo(obj.GUID, Deployable.Icon.apply(obj.Definition.Item), obj.Position, Service.defaultPlayerGUID)
|
DeployableInfo(obj.GUID, Deployable.Icon.apply(obj.Definition.Item), obj.Position, Service.defaultPlayerGUID)
|
||||||
)
|
)
|
||||||
startOwnerlessDecay()
|
startOwnerlessDecay()
|
||||||
|
|
@ -140,7 +140,7 @@ trait DeployableBehavior {
|
||||||
val obj = DeployableObject
|
val obj = DeployableObject
|
||||||
obj.AssignOwnership(player)
|
obj.AssignOwnership(player)
|
||||||
decay.cancel()
|
decay.cancel()
|
||||||
DeployableBehavior.changeOwership(
|
DeployableBehavior.changeOwnership(
|
||||||
obj,
|
obj,
|
||||||
toFaction,
|
toFaction,
|
||||||
DeployableInfo(obj.GUID, Deployable.Icon.apply(obj.Definition.Item), obj.Position, obj.OwnerGuid.get)
|
DeployableInfo(obj.GUID, Deployable.Icon.apply(obj.Definition.Item), obj.Position, obj.OwnerGuid.get)
|
||||||
|
|
@ -290,12 +290,12 @@ object DeployableBehavior {
|
||||||
* @param toFaction na
|
* @param toFaction na
|
||||||
* @param info na
|
* @param info na
|
||||||
*/
|
*/
|
||||||
def changeOwership(obj: Deployable, toFaction: PlanetSideEmpire.Value, info: DeployableInfo): Unit = {
|
def changeOwnership(obj: Deployable, toFaction: PlanetSideEmpire.Value, info: DeployableInfo): Unit = {
|
||||||
val guid = obj.GUID
|
|
||||||
val zone = obj.Zone
|
|
||||||
val localEvents = zone.LocalEvents
|
|
||||||
val originalFaction = obj.Faction
|
val originalFaction = obj.Faction
|
||||||
if (originalFaction != toFaction) {
|
if (originalFaction != toFaction) {
|
||||||
|
val guid = obj.GUID
|
||||||
|
val zone = obj.Zone
|
||||||
|
val localEvents = zone.LocalEvents
|
||||||
obj.Faction = toFaction
|
obj.Faction = toFaction
|
||||||
//visual tells in regards to ownership by faction
|
//visual tells in regards to ownership by faction
|
||||||
zone.AvatarEvents ! AvatarServiceMessage(
|
zone.AvatarEvents ! AvatarServiceMessage(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue