mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-05 22:07:25 +00:00
fix telegnome action (#3325)
* very slight cleanup * fix telegnomes being trapped --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -177,18 +177,16 @@ namespace Content.Server.Abilities.Psionics
|
||||
//To unnatch the minds, do it like this.
|
||||
//Have to unnattach the minds before we reattach them via transfer. Still feels weird, but seems to work well.
|
||||
_mindSystem.TransferTo(performerMindId, null);
|
||||
_mindSystem.TransferTo(targetMindId, null);
|
||||
// Do the transfer.
|
||||
if (targetMind != null)
|
||||
_mindSystem.TransferTo(targetMindId, performer, ghostCheckOverride: true, false, targetMind);
|
||||
if (performerMind != null)
|
||||
_mindSystem.TransferTo(performerMindId, target, ghostCheckOverride: true, false, performerMind);
|
||||
|
||||
if (targetMind != null)
|
||||
_mindSystem.TransferTo(targetMindId, performer, ghostCheckOverride: true, false, targetMind);
|
||||
|
||||
if (end)
|
||||
{
|
||||
var performerMindPowerComp = EntityManager.GetComponent<MindSwappedComponent>(performer);
|
||||
var targetMindPowerComp = EntityManager.GetComponent<MindSwappedComponent>(target);
|
||||
var performerMindPowerComp = Comp<MindSwappedComponent>(performer);
|
||||
var targetMindPowerComp = Comp<MindSwappedComponent>(target);
|
||||
_actions.RemoveAction(performer, performerMindPowerComp.MindSwapReturnActionEntity);
|
||||
_actions.RemoveAction(target, targetMindPowerComp.MindSwapReturnActionEntity);
|
||||
|
||||
|
||||
@@ -9,9 +9,10 @@ namespace Content.Shared.Eye
|
||||
None = 0,
|
||||
Normal = 1 << 0,
|
||||
Ghost = 1 << 1,
|
||||
Subfloor = 1 << 2,
|
||||
Subfloor = 1 << 3, // DeltaV - 4 is occupied by PsionicInvisibility and changing that massively fucks up stuff
|
||||
// Begin DeltaV Additions
|
||||
PsionicInvisibility = 1 << 3,
|
||||
PsionicInvisibility = 1 << 2,
|
||||
TelegnosticProjection = PsionicInvisibility | Normal
|
||||
// End DeltaV Additions
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user