Skip to content

Commit

Permalink
bring back doorjack, use emag for lockers
Browse files Browse the repository at this point in the history
  • Loading branch information
deltanedas committed Feb 14, 2025
1 parent d8289cc commit 9332907
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Content.Shared/Lock/LockSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ private void AddToggleLockVerb(EntityUid uid, LockComponent component, GetVerbsE

private void OnEmagged(EntityUid uid, LockComponent component, ref GotEmaggedEvent args)
{
if (!_emag.CompareFlag(args.Type, EmagType.Access))
if (!_emag.CompareFlag(args.Type, EmagType.Interaction)) // DeltaV - emag for lockers instead of doorjack
return;

if (!component.Locked || !component.BreakOnAccessBreaker)
Expand Down
25 changes: 13 additions & 12 deletions Resources/Prototypes/Catalog/uplink_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -863,18 +863,19 @@

# Disruption

- type: listing
id: UplinkAccessBreaker
name: uplink-access-breaker-name
description: uplink-access-breaker-desc
productEntity: AccessBreaker
discountCategory: rareDiscounts # DeltaV - was veryRareDiscounts
discountDownTo:
Telecrystal: 2 # DeltaV - was 3
cost:
Telecrystal: 4 # DeltaV - was 5
categories:
- UplinkDisruption
# DeltaV - replaced by doorjack
#- type: listing
# id: UplinkAccessBreaker
# name: uplink-access-breaker-name
# description: uplink-access-breaker-desc
# productEntity: AccessBreaker
# discountCategory: rareDiscounts # DeltaV - was veryRareDiscounts
# discountDownTo:
# Telecrystal: 2 # DeltaV - was 3
# cost:
# Telecrystal: 4 # DeltaV - was 5
# categories:
# - UplinkDisruption

- type: listing
id: UplinkEmag
Expand Down
13 changes: 13 additions & 0 deletions Resources/Prototypes/_DV/Catalog/uplink_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@
categories:
- UplinkImplants

- type: listing
id: UplinkDoorjack
name: uplink-doorjack-name
description: uplink-doorjack-desc
productEntity: Doorjack
discountCategory: rareDiscounts
discountDownTo:
Telecrystal: 2
cost:
Telecrystal: 4
categories:
- UplinkDisruption

- type: listing
id: BaseBallBatHomeRun
name: uplink-home-run-bat-name
Expand Down
12 changes: 12 additions & 0 deletions Resources/Prototypes/_DV/Entities/Objects/Tools/emag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- type: entity
parent: Emag
id: Doorjack
name: airlock access override
description: A specialized cryptographic sequencer with a distinctive battery tray, specifically designed to override station airlock access codes.
components:
- type: Emag
emagType: Access # LockSystem has its type changed so this only affects airlocks
- type: Sprite
sprite: _DV/Objects/Tools/doorjack.rsi
- type: Item
sprite: _DV/Objects/Tools/doorjack.rsi

0 comments on commit 9332907

Please sign in to comment.