fix artifact debug assert (#33171)

* fix artifact debug assert

* do the same for EffectBigIron

* 1 tab less
This commit is contained in:
slarticodefast
2024-11-05 23:12:35 +01:00
committed by GitHub
parent 2382162d72
commit 1ded8e7f03
2 changed files with 59 additions and 61 deletions

View File

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

View File

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