Skip to content

Commit

Permalink
Merge branch 'master' into Sec-Shades-Returns
Browse files Browse the repository at this point in the history
  • Loading branch information
ps3moira authored Jan 14, 2024
2 parents 4a7e163 + 3fe758a commit 3be0f78
Show file tree
Hide file tree
Showing 8 changed files with 8,145 additions and 6,280 deletions.
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# /Resources/Textures/ @leonardo-dabepis # No write access
# /Resources/DeltaV/Textures/ @leonardo-dabepis
# /Resources/Nyanotrasen/Textures/ @leonardo-dabepis
# /Resources/Maps/ @IamVelcroboy
# /Resources/Prototypes/Maps/ @IamVelcroboy
/Resources/Maps/ @IamVelcroboy
/Resources/Prototypes/Maps/ @IamVelcroboy

/Tools/ @DebugOk
10 changes: 10 additions & 0 deletions Content.Server/Nyanotrasen/Item/ShockCollar/ShockCollarSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Content.Shared.Mobs.Components;
using Content.Shared.Timing;
using Content.Server.Explosion.EntitySystems; // Why is trigger under explosions by the way? Even doors already use it.
using Content.Server.Electrocution;
using Robust.Shared.Containers;
Expand All @@ -9,6 +10,8 @@ public sealed partial class ShockCollarSystem : EntitySystem
{
[Dependency] private readonly SharedContainerSystem _container = default!;
[Dependency] private readonly ElectrocutionSystem _electrocutionSystem = default!;
[Dependency] private readonly UseDelaySystem _useDelay = default!;

public override void Initialize()
{
base.Initialize();
Expand All @@ -25,6 +28,13 @@ private void OnTrigger(EntityUid uid, ShockCollarComponent component, TriggerEve
if (!HasComp<MobStateComponent>(containerEnt)) // If it's not a mob we don't care
return;

// DeltaV: prevent clocks from instantly killing people
TryComp<UseDelayComponent>(uid, out var useDelay);
if (_useDelay.ActiveDelay(uid, useDelay))
return;

_useDelay.BeginDelay(uid, useDelay);

_electrocutionSystem.TryDoElectrocution(containerEnt, null, 5, TimeSpan.FromSeconds(2), true);
}
}
Expand Down
12 changes: 12 additions & 0 deletions Resources/Changelog/DeltaVChangelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1345,3 +1345,15 @@ Entries:
message: Atmos hopefully shouldn't break anymore
id: 201
time: '2024-01-07T22:10:36.0000000+00:00'
- author: Bribrooo
changes:
- type: Add
message: 'added a ChemVend inside of Chemistry on Pebble Station '
id: 202
time: '2024-01-11T06:14:27.0000000+00:00'
- author: Adrian
changes:
- type: Tweak
message: Shoukou has maintenance now in logistics and in security
id: 203
time: '2024-01-12T22:08:47.0000000+00:00'
1,338 changes: 1,045 additions & 293 deletions Resources/Maps/pebble.yml

Large diffs are not rendered by default.

13,011 changes: 7,028 additions & 5,983 deletions Resources/Maps/shoukou.yml

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions Resources/Prototypes/DeltaV/Access/mics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
- type: accessGroup
id: AllAccessBorg
tags:
# - EmergencyShuttleRepealAll
# - Captain
# - HeadOfPersonnel
# - ChiefEngineer
# - ChiefMedicalOfficer
# - HeadOfSecurity
# - ResearchDirector
- Command
- Security
- Detective
# - Armory
- Lawyer
- Engineering
- Medical
# - Quartermaster
- Salvage
- Cargo
- Research
- Service
- Maintenance
- External
- Janitor
- Theatre
- Bar
- Chemistry
- Kitchen
- Chapel
- Hydroponics
- Atmospherics
- Mail
# - Orders
- Mantis
- Paramedic
- Psychologist
- Boxer
- Clown
- Library
- Mime
- Musician
- Reporter
- Zookeeper
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
- type: Access
enabled: false
groups:
- AllAccess
- AllAccessBorg
- type: Lock
locked: true
- type: ActivatableUIRequiresLock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
parent: ClothingNeckBase
id: ShockCollar
name: shock collar
description: Shocking. Placeholder sprite.
description: Shocking. # DeltaV: sprite is fine
components:
- type: Sprite
sprite: Nyanotrasen/Clothing/Neck/Misc/shock.rsi
- type: Clothing
sprite: Nyanotrasen/Clothing/Neck/Misc/shock.rsi
- type: ShockCollar
- type: UseDelay
delay: 3 # DeltaV: prevent clocks instakilling people
- type: TriggerOnSignal
- type: DeviceNetwork
deviceNetId: Wireless
Expand Down

0 comments on commit 3be0f78

Please sign in to comment.