From 1ded8e7f032bf62246c8978ff7744723a9855312 Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:12:35 +0100 Subject: [PATCH] fix artifact debug assert (#33171) * fix artifact debug assert * do the same for EffectBigIron * 1 tab less --- .../Xenoarchaeology/structure_artifacts.yml | 113 +++++++++--------- .../XenoArch/Effects/utility_effects.yml | 7 -- 2 files changed, 59 insertions(+), 61 deletions(-) diff --git a/Resources/Prototypes/Entities/Objects/Specific/Xenoarchaeology/structure_artifacts.yml b/Resources/Prototypes/Entities/Objects/Specific/Xenoarchaeology/structure_artifacts.yml index 4c3dac1816..68947c0a71 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Xenoarchaeology/structure_artifacts.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Xenoarchaeology/structure_artifacts.yml @@ -5,60 +5,65 @@ description: A strange alien device. abstract: true components: - - type: Sprite - drawdepth: SmallObjects - sprite: Objects/Specific/Xenoarchaeology/xeno_artifacts.rsi - noRot: true - layers: - - state: ano30 - map: [ "enum.ArtifactsVisualLayers.Base" ] - - state: ano30_on - map: [ "enum.ArtifactsVisualLayers.Effect" ] - visible: false - - type: Damageable - - type: Physics - bodyType: Dynamic - - type: Transform - noRot: true - - type: UserInterface #needs to be here for certain effects - interfaces: - enum.StorageUiKey.Key: - type: StorageBoundUserInterface - enum.TransferAmountUiKey.Key: - type: TransferAmountBoundUserInterface - enum.InstrumentUiKey.Key: - type: InstrumentBoundUserInterface - enum.IntercomUiKey.Key: - type: IntercomBoundUserInterface - - type: Reactive - groups: - Acidic: [Touch] - - type: Fixtures - fixtures: - fix1: - shape: - !type:PhysShapeCircle - radius: 0.45 - density: 75 - layer: # doesn't collide with artifact storage - - Opaque - mask: - - MachineMask - - type: InteractionOutline - - type: Artifact - - type: RandomArtifactSprite - maxSprite: 36 - - type: RandomSprite - available: - - enum.ArtifactsVisualLayers.Effect: - ano01_on: Rainbow - - type: Appearance - - type: Actions - - type: GuideHelp - guides: - - Xenoarchaeology - - type: StealTarget - stealGroup: XenoArtifact + - type: Sprite + drawdepth: SmallObjects + sprite: Objects/Specific/Xenoarchaeology/xeno_artifacts.rsi + noRot: true + layers: + - state: ano30 + map: [ "enum.ArtifactsVisualLayers.Base" ] + - state: ano30_on + map: [ "enum.ArtifactsVisualLayers.Effect" ] + visible: false + - type: Damageable + - type: Physics + bodyType: Dynamic + - type: Transform + noRot: true + - type: UserInterface #needs to be here for certain effects + interfaces: + enum.StorageUiKey.Key: + type: StorageBoundUserInterface + enum.TransferAmountUiKey.Key: + type: TransferAmountBoundUserInterface + enum.InstrumentUiKey.Key: + type: InstrumentBoundUserInterface + enum.IntercomUiKey.Key: + type: IntercomBoundUserInterface + - type: Reactive + groups: + Acidic: [Touch] + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeCircle + radius: 0.45 + density: 75 + layer: # doesn't collide with artifact storage + - Opaque + mask: + - MachineMask + - type: InteractionOutline + - type: Artifact + - type: RandomArtifactSprite + maxSprite: 36 + - type: RandomSprite + available: + - enum.ArtifactsVisualLayers.Effect: + ano01_on: Rainbow + - type: Appearance + - type: Actions + - type: GuideHelp + guides: + - Xenoarchaeology + - type: StealTarget + stealGroup: XenoArtifact + - type: ContainerContainer + containers: + storagebase: !type:Container # needed for the EffectStorage artifactEffect + ents: [ ] + revolver-ammo: !type:Container # needed for the EffectBigIron artifactEffect - type: entity parent: BaseXenoArtifact diff --git a/Resources/Prototypes/XenoArch/Effects/utility_effects.yml b/Resources/Prototypes/XenoArch/Effects/utility_effects.yml index 8cf7fb0b36..92341a9409 100644 --- a/Resources/Prototypes/XenoArch/Effects/utility_effects.yml +++ b/Resources/Prototypes/XenoArch/Effects/utility_effects.yml @@ -49,10 +49,6 @@ permanentComponents: - type: Item size: Huge - - type: ContainerContainer - containers: - storagebase: !type:Container - ents: [ ] - type: Storage maxItemSize: Huge grid: @@ -163,9 +159,6 @@ components: - Item permanentComponents: - - type: ContainerContainer - containers: - revolver-ammo: !type:Container - type: RevolverAmmoProvider whitelist: tags: -- 2.51.2