- 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);
|
||||
|
||||
_implantSystem.TransferImplants(uid, polymorphEntity.Value);
|
||||
_actionContainerSystem.TransferAllActionsFiltered(uid, polymorphEntity.Value);
|
||||
_actionContainerSystem.TransferAllActionsFiltered(uid, polymorphEntity.Value, polymorphEntity.Value);
|
||||
_action.GrantContainedActions(polymorphEntity.Value, polymorphEntity.Value);
|
||||
|
||||
RemoveLesserFormActions(polymorphEntity.Value);
|
||||
@@ -851,7 +851,7 @@ public sealed partial class ChangelingSystem
|
||||
EntityManager.AddComponent(reverted.Value, toAdd);
|
||||
|
||||
_implantSystem.TransferImplants(uid, reverted.Value);
|
||||
_actionContainerSystem.TransferAllActionsFiltered(uid, reverted.Value);
|
||||
_actionContainerSystem.TransferAllActionsFiltered(uid, reverted.Value, reverted.Value);
|
||||
_action.GrantContainedActions(reverted.Value, reverted.Value);
|
||||
|
||||
if (component.IsLesserForm)
|
||||
|
||||
@@ -174,6 +174,7 @@ public sealed class ActionContainerSystem : EntitySystem
|
||||
public void TransferAllActionsFiltered(
|
||||
EntityUid from,
|
||||
EntityUid to,
|
||||
EntityUid newAttached,
|
||||
ActionsContainerComponent? oldContainer = 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))
|
||||
continue;
|
||||
|
||||
TransferAction(action, to, container: newContainer);
|
||||
TransferActionWithNewAttached(action, to, newAttached, container: newContainer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -201,11 +201,11 @@
|
||||
type: HumanoidMarkingModifierBoundUserInterface
|
||||
- key: enum.StrippingUiKey.Key
|
||||
type: StrippableBoundUserInterface
|
||||
# WD-EDIT
|
||||
- key: enum.ListViewSelectorUiKeyChangeling.Key
|
||||
type: ListViewSelectorBui
|
||||
- key: enum.TransformStingSelectorUiKey.Key
|
||||
type: TransformStingSelectorBui
|
||||
# WD-EDIT
|
||||
- key: enum.NameSelectorUIKey.Key
|
||||
type: NameSelectorBUI
|
||||
- key: enum.RuneTeleporterUiKey.Key
|
||||
|
||||
@@ -263,6 +263,28 @@
|
||||
allowRepeatedMorphs: true
|
||||
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
|
||||
id: ArtifactLuminous
|
||||
configuration:
|
||||
|
||||
@@ -31,6 +31,10 @@
|
||||
- key: enum.StrippingUiKey.Key
|
||||
type: StrippableBoundUserInterface
|
||||
# WD-EDIT
|
||||
- key: enum.ListViewSelectorUiKeyChangeling.Key
|
||||
type: ListViewSelectorBui
|
||||
- key: enum.TransformStingSelectorUiKey.Key
|
||||
type: TransformStingSelectorBui
|
||||
- key: enum.NameSelectorUIKey.Key
|
||||
type: NameSelectorBUI
|
||||
- key: enum.RuneTeleporterUiKey.Key
|
||||
|
||||
Reference in New Issue
Block a user