- fix: Fix broken ling transform. (#145)

This commit is contained in:
Aviu00
2024-02-29 19:38:10 +09:00
committed by GitHub
parent be32d673cb
commit df2f919a33
5 changed files with 31 additions and 4 deletions

View File

@@ -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)

View File

@@ -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);
}
}

View File

@@ -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

View File

@@ -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:

View File

@@ -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