Skip to content

Commit

Permalink
Merge branch 'master' into newmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Spessmann authored Jan 16, 2025
2 parents 41704d8 + 5d9311d commit c97648c
Show file tree
Hide file tree
Showing 20 changed files with 183,308 additions and 1,099 deletions.
2 changes: 2 additions & 0 deletions Content.IntegrationTests/Tests/PostMapInitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ public sealed class PostMapInitTest
"Gate",
"Amber",
"Loop",
"Plasma",
"Elkridge",
"Convex"

};

/// <summary>
Expand Down
12 changes: 7 additions & 5 deletions Content.Server/Silicons/Borgs/BorgSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected override void OnInserted(EntityUid uid, BorgChassisComponent component
{
base.OnInserted(uid, component, args);

if (HasComp<BorgBrainComponent>(args.Entity) && _mind.TryGetMind(args.Entity, out var mindId, out var mind))
if (HasComp<BorgBrainComponent>(args.Entity) && _mind.TryGetMind(args.Entity, out var mindId, out var mind) && args.Container == component.BrainContainer)
{
_mind.TransferTo(mindId, uid, mind: mind);
}
Expand All @@ -164,8 +164,7 @@ protected override void OnRemoved(EntityUid uid, BorgChassisComponent component,
{
base.OnRemoved(uid, component, args);

if (HasComp<BorgBrainComponent>(args.Entity) &
_mind.TryGetMind(uid, out var mindId, out var mind))
if (HasComp<BorgBrainComponent>(args.Entity) && _mind.TryGetMind(uid, out var mindId, out var mind) && args.Container == component.BrainContainer)
{
_mind.TransferTo(mindId, args.Entity, mind: mind);
}
Expand Down Expand Up @@ -293,8 +292,11 @@ private void UpdateBatteryAlert(Entity<BorgChassisComponent> ent, PowerCellSlotC
public void BorgActivate(EntityUid uid, BorgChassisComponent component)
{
Popup.PopupEntity(Loc.GetString("borg-mind-added", ("name", Identity.Name(uid, EntityManager))), uid);
Toggle.TryActivate(uid);
_powerCell.SetDrawEnabled(uid, _mobState.IsAlive(uid));
if (_powerCell.HasDrawCharge(uid))
{
Toggle.TryActivate(uid);
_powerCell.SetDrawEnabled(uid, _mobState.IsAlive(uid));
}
_appearance.SetData(uid, BorgVisuals.HasPlayer, true);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Content.Shared.Item.ItemToggle.Components;
using Content.Shared.Light.Components;
using Content.Shared.Toggleable;
using ItemTogglePointLightComponent = Content.Shared.Light.Components.ItemTogglePointLightComponent;

Expand All @@ -11,6 +12,7 @@ public sealed class ItemTogglePointLightSystem : EntitySystem
{
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
[Dependency] private readonly SharedPointLightSystem _light = default!;
[Dependency] private readonly SharedHandheldLightSystem _handheldLight = default!;

public override void Initialize()
{
Expand All @@ -25,5 +27,9 @@ private void OnLightToggled(Entity<ItemTogglePointLightComponent> ent, ref ItemT

_appearance.SetData(ent, ToggleableLightVisuals.Enabled, args.Activated);
_light.SetEnabled(ent.Owner, args.Activated, comp: light);
if (TryComp<HandheldLightComponent>(ent.Owner, out var handheldLight))
{
_handheldLight.SetActivated(ent.Owner, args.Activated, handheldLight);
}
}
}
75 changes: 37 additions & 38 deletions Resources/Changelog/Changelog.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,4 @@
Entries:
- author: Beck Thompson
changes:
- message: Gold and silver rings now give a small amount of materials when scrapped.
type: Tweak
id: 7317
time: '2024-09-08T16:10:05.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/31847
- author: K-Dynamic
changes:
- message: added missing missing resistance values for directional plasma and uranium
windows
type: Fix
id: 7318
time: '2024-09-08T18:08:06.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/31975
- author: qwerltaz
changes:
- message: Power cables on the ground are now offset and do not obscure each other
or pipes beneath.
type: Tweak
id: 7319
time: '2024-09-09T10:00:18.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/32000
- author: ArtisticRoomba
changes:
- message: Budget insulated gloves now leave behind yellow frayed insulative fibers
instead of yellow insulative fibers. Detectives, rejoice!
type: Tweak
id: 7320
time: '2024-09-09T10:30:25.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/31886
- author: slarticodefast
changes:
- message: Revenants or other mobs without hands can no longer spill jugs.
type: Fix
id: 7321
time: '2024-09-09T11:02:15.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/31438
- author: PJB3005
changes:
- message: The emergency shuttle will now wait at the station longer if it couldn't
Expand Down Expand Up @@ -3923,3 +3885,40 @@
id: 7816
time: '2025-01-15T22:49:51.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/34091
- author: jbox144
changes:
- message: Added Plasma Station
type: Add
id: 7817
time: '2025-01-16T07:02:14.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33991
- author: jbox144
changes:
- message: Reduced Plasma's minimum population to 20, maximum population to 60
type: Tweak
- message: Reduced Plasma's clown jobs from 2 to 1
type: Tweak
id: 7818
time: '2025-01-16T08:51:17.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/34462
- author: pcaessayrs
changes:
- message: Uranium, Cak, and BreadDog are no longer space garbage.
type: Fix
id: 7819
time: '2025-01-16T11:40:22.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/34192
- author: GansuLalan
changes:
- message: Pianos will no longer push players off when climbing them
type: Fix
id: 7820
time: '2025-01-16T12:25:08.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33690
- author: Southbridge
changes:
- message: More Ionstorm law elements have been added
type: Add
id: 7821
time: '2025-01-16T20:49:47.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/34197
Loading

0 comments on commit c97648c

Please sign in to comment.