- fix: Fix broken ling transform. (#145)
This commit is contained in:
@@ -687,7 +687,7 @@ public sealed partial class ChangelingSystem
|
|||||||
EntityManager.AddComponent(polymorphEntity.Value, toAdd);
|
EntityManager.AddComponent(polymorphEntity.Value, toAdd);
|
||||||
|
|
||||||
_implantSystem.TransferImplants(uid, polymorphEntity.Value);
|
_implantSystem.TransferImplants(uid, polymorphEntity.Value);
|
||||||
_actionContainerSystem.TransferAllActionsFiltered(uid, polymorphEntity.Value);
|
_actionContainerSystem.TransferAllActionsFiltered(uid, polymorphEntity.Value, polymorphEntity.Value);
|
||||||
_action.GrantContainedActions(polymorphEntity.Value, polymorphEntity.Value);
|
_action.GrantContainedActions(polymorphEntity.Value, polymorphEntity.Value);
|
||||||
|
|
||||||
RemoveLesserFormActions(polymorphEntity.Value);
|
RemoveLesserFormActions(polymorphEntity.Value);
|
||||||
@@ -851,7 +851,7 @@ public sealed partial class ChangelingSystem
|
|||||||
EntityManager.AddComponent(reverted.Value, toAdd);
|
EntityManager.AddComponent(reverted.Value, toAdd);
|
||||||
|
|
||||||
_implantSystem.TransferImplants(uid, reverted.Value);
|
_implantSystem.TransferImplants(uid, reverted.Value);
|
||||||
_actionContainerSystem.TransferAllActionsFiltered(uid, reverted.Value);
|
_actionContainerSystem.TransferAllActionsFiltered(uid, reverted.Value, reverted.Value);
|
||||||
_action.GrantContainedActions(reverted.Value, reverted.Value);
|
_action.GrantContainedActions(reverted.Value, reverted.Value);
|
||||||
|
|
||||||
if (component.IsLesserForm)
|
if (component.IsLesserForm)
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ public sealed class ActionContainerSystem : EntitySystem
|
|||||||
public void TransferAllActionsFiltered(
|
public void TransferAllActionsFiltered(
|
||||||
EntityUid from,
|
EntityUid from,
|
||||||
EntityUid to,
|
EntityUid to,
|
||||||
|
EntityUid newAttached,
|
||||||
ActionsContainerComponent? oldContainer = null,
|
ActionsContainerComponent? oldContainer = null,
|
||||||
ActionsContainerComponent? newContainer = null)
|
ActionsContainerComponent? newContainer = null)
|
||||||
{
|
{
|
||||||
@@ -189,7 +190,7 @@ public sealed class ActionContainerSystem : EntitySystem
|
|||||||
if (actions.Select(act => MetaData(act).EntityPrototype?.ID).Any(ext => toAdd == ext))
|
if (actions.Select(act => MetaData(act).EntityPrototype?.ID).Any(ext => toAdd == ext))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
TransferAction(action, to, container: newContainer);
|
TransferActionWithNewAttached(action, to, newAttached, container: newContainer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -201,11 +201,11 @@
|
|||||||
type: HumanoidMarkingModifierBoundUserInterface
|
type: HumanoidMarkingModifierBoundUserInterface
|
||||||
- key: enum.StrippingUiKey.Key
|
- key: enum.StrippingUiKey.Key
|
||||||
type: StrippableBoundUserInterface
|
type: StrippableBoundUserInterface
|
||||||
|
# WD-EDIT
|
||||||
- key: enum.ListViewSelectorUiKeyChangeling.Key
|
- key: enum.ListViewSelectorUiKeyChangeling.Key
|
||||||
type: ListViewSelectorBui
|
type: ListViewSelectorBui
|
||||||
- key: enum.TransformStingSelectorUiKey.Key
|
- key: enum.TransformStingSelectorUiKey.Key
|
||||||
type: TransformStingSelectorBui
|
type: TransformStingSelectorBui
|
||||||
# WD-EDIT
|
|
||||||
- key: enum.NameSelectorUIKey.Key
|
- key: enum.NameSelectorUIKey.Key
|
||||||
type: NameSelectorBUI
|
type: NameSelectorBUI
|
||||||
- key: enum.RuneTeleporterUiKey.Key
|
- key: enum.RuneTeleporterUiKey.Key
|
||||||
|
|||||||
@@ -263,6 +263,28 @@
|
|||||||
allowRepeatedMorphs: true
|
allowRepeatedMorphs: true
|
||||||
inventory: Transfer
|
inventory: Transfer
|
||||||
|
|
||||||
|
- type: polymorph
|
||||||
|
id: MobHarpy
|
||||||
|
configuration:
|
||||||
|
entity: MobHarpy
|
||||||
|
forced: true
|
||||||
|
revertOnCrit: false
|
||||||
|
revertOnDeath: false
|
||||||
|
transferDamage: true
|
||||||
|
allowRepeatedMorphs: true
|
||||||
|
inventory: Transfer
|
||||||
|
|
||||||
|
- type: polymorph
|
||||||
|
id: MobSkrell
|
||||||
|
configuration:
|
||||||
|
entity: MobSkrell
|
||||||
|
forced: true
|
||||||
|
revertOnCrit: false
|
||||||
|
revertOnDeath: false
|
||||||
|
transferDamage: true
|
||||||
|
allowRepeatedMorphs: true
|
||||||
|
inventory: Transfer
|
||||||
|
|
||||||
- type: polymorph
|
- type: polymorph
|
||||||
id: ArtifactLuminous
|
id: ArtifactLuminous
|
||||||
configuration:
|
configuration:
|
||||||
|
|||||||
@@ -31,6 +31,10 @@
|
|||||||
- key: enum.StrippingUiKey.Key
|
- key: enum.StrippingUiKey.Key
|
||||||
type: StrippableBoundUserInterface
|
type: StrippableBoundUserInterface
|
||||||
# WD-EDIT
|
# WD-EDIT
|
||||||
|
- key: enum.ListViewSelectorUiKeyChangeling.Key
|
||||||
|
type: ListViewSelectorBui
|
||||||
|
- key: enum.TransformStingSelectorUiKey.Key
|
||||||
|
type: TransformStingSelectorBui
|
||||||
- key: enum.NameSelectorUIKey.Key
|
- key: enum.NameSelectorUIKey.Key
|
||||||
type: NameSelectorBUI
|
type: NameSelectorBUI
|
||||||
- key: enum.RuneTeleporterUiKey.Key
|
- key: enum.RuneTeleporterUiKey.Key
|
||||||
|
|||||||
Reference in New Issue
Block a user