Skip to content

Commit

Permalink
Merge branch 'DeltaV-Station:master' into map-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
PubliclyExecutedPig authored Jan 9, 2025
2 parents e26dec5 + c5a008c commit 144aa3f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
5 changes: 3 additions & 2 deletions Content.Shared/Lock/LockSystem.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Content.Shared.Access.Components;
using Content.Shared.Access.Systems;
using Content.Shared.ActionBlocker;
using Content.Shared.Construction.Components;
using Content.Shared.DoAfter;
using Content.Shared.Emag.Systems;
using Content.Shared.Examine;
using Content.Shared.Hands.Components;
using Content.Shared.IdentityManagement;
using Content.Shared.Interaction;
using Content.Shared.Popups;
Expand All @@ -26,6 +26,7 @@ namespace Content.Shared.Lock;
public sealed class LockSystem : EntitySystem
{
[Dependency] private readonly AccessReaderSystem _accessReader = default!;
[Dependency] private readonly ActionBlockerSystem _actionBlocker = default!;
[Dependency] private readonly ActivatableUISystem _activatableUI = default!;
[Dependency] private readonly SharedAppearanceSystem _appearanceSystem = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
Expand Down Expand Up @@ -246,7 +247,7 @@ public bool IsLocked(Entity<LockComponent?> ent)
/// </summary>
public bool CanToggleLock(EntityUid uid, EntityUid user, bool quiet = true)
{
if (!HasComp<HandsComponent>(user))
if (!_actionBlocker.CanComplexInteract(user))
return false;

var ev = new LockToggleAttemptEvent(user, quiet);
Expand Down
15 changes: 8 additions & 7 deletions Resources/Changelog/DeltaVChangelog.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
Entries:
- author: rosieposieeee
changes:
- message: Submarine Station has been removed from rotation.
type: Remove
id: 385
time: '2024-06-07T14:37:29.0000000+00:00'
url: https://github.com/DeltaV-Station/Delta-v/pull/1307
- author: Lyndomen
changes:
- message: Burning bodies no longer ash
Expand Down Expand Up @@ -3845,3 +3838,11 @@
id: 884
time: '2025-01-09T12:39:39.0000000+00:00'
url: https://github.com/DeltaV-Station/Delta-v/pull/2667
- author: deltanedas
changes:
- message: AI cores will soon have defense turrets that the AI can deploy to shoot
intruders.
type: Add
id: 885
time: '2025-01-09T17:06:00.0000000+00:00'
url: https://github.com/DeltaV-Station/Delta-v/pull/2665
17 changes: 17 additions & 0 deletions Resources/Prototypes/_DV/Entities/Objects/Weapons/Guns/turrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Shoots anything and lets doors close over it, letting it be used in AI cores "under" blast doors.
- type: entity
parent: WeaponTurretAllHostile
id: WeaponTurretAI
name: AI defense turret
description: A ballistic turret that retracts into the floor. Deployable by the station AI to defend its core against urgent threats.
components:
- type: Fixtures
fixtures:
fix1:
shape: !type:PhysShapeCircle
radius: 0.45
density: 60
mask:
- SmallMobMask # same as mouse, lets it go under doors but not phase through walls
layer:
- SmallMobLayer

0 comments on commit 144aa3f

Please sign in to comment.