Skip to content

Commit

Permalink
Make Mime PDA interactions silent (#34426)
Browse files Browse the repository at this point in the history
* make insert and eject datafields in ItemSlotsComponent.cs nullable, make mime PDA silent

* make it so that you can't fit wirecutters into the slots, among other various things
  • Loading branch information
ArtisticRoomba authored Jan 15, 2025
1 parent 33c421b commit d6e55ed
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public ItemSlot(ItemSlot other)
public EntityWhitelist? Blacklist;

[DataField]
public SoundSpecifier InsertSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagIn/revolver_magin.ogg");
public SoundSpecifier? InsertSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagIn/revolver_magin.ogg");

[DataField]
public SoundSpecifier EjectSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagOut/revolver_magout.ogg");
public SoundSpecifier? EjectSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagOut/revolver_magout.ogg");

/// <summary>
/// The name of this item slot. This will be shown to the user in the verb menu.
Expand Down
28 changes: 26 additions & 2 deletions Resources/Prototypes/Entities/Objects/Devices/pda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,35 @@
components:
- type: Pda
id: MimeIDCard
idSlot: # rewrite without sound because mime
name: ID Card
paiSlot:
priority: -2
ejectSound: null
insertSound: null
whitelist:
components:
- PAI
idSlot:
name: access-id-card-component-default
ejectSound: null # mime is silent
insertSound: null
whitelist:
components:
- IdCard
penSlot:
startingItem: Pen
priority: -1
whitelist:
tags:
- Write
ejectSound: null
insertSound: null
- type: CartridgeLoader
cartridgeSlot:
ejectSound: null
insertSound: null
whitelist:
components:
- Cartridge
- type: Appearance
appearanceDataInit:
enum.PdaVisuals.PdaType:
Expand Down

0 comments on commit d6e55ed

Please sign in to comment.