-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tweak] Upstream sync #995
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
c2ffc25
Adds kitchen/botany-locked maints airlock (#34116)
IamVelcroboy 3842850
[Maps] Map pool (#2891)
Ko4ergaPunk 608b433
Added ID entry for captain on Bagel (#34120)
DylanWhittingham 4acfec8
Amber Station Overhaul (#34113)
southbridge-fur 26af689
[Maps] Glacier hotfix #5 (#2894)
NotSoDana 3fb7ee4
Box Station - Dechristmassified (#34135)
southbridge-fur def73da
Marathon Station - Dechristmassified (#34136)
southbridge-fur a1c8ac3
Loop Station Decal and maints additions (#34103)
TytosB ff08fb3
Rename cryobed yml file (#34134)
Booblesnoot42 b31a183
Cog update (not very merry) (#34144)
Spessmann 494cb18
bagel update (#34145)
Emisse 94422e2
Add hair pulato (#34117)
DreamlyJack b51f750
Automatic changelog update
PJBot c1c4b1c
Holopad UI tweak for incoming calls (#34137)
chromiumboy 8545c3a
Holopads no longer log broadcasted speech and emotes in the chat (#34…
chromiumboy dc90fab
Automatic changelog update
PJBot 9158d76
Fixes borgs not being able to check their laws in crit (#34133)
PopGamer45 b69212b
Add contraband parent to laser gun safe (#34132)
crazybrain23 bdea33d
Automatic changelog update
PJBot adaa584
Add Holopad Circuit Board to A/V Communication Technology (#34150)
amatwiedle cba500c
Automatic changelog update
PJBot ad0d790
Fix disposal signal routers sprites (#34139)
justdie12 59b86d4
Automatic changelog update
PJBot 17c1adf
[Maps] Pearl rework (#2895)
Ko4ergaPunk b080c6f
Meta station overhaul (#33506)
Nox38 ed2d784
Standardize shotgun ammo in storagefills (#34156)
ArtisticRoomba c5e3f86
Automatic changelog update
PJBot fe8eee6
meta update (#34158)
Emisse 10d94ad
Amber Station Adjustments (#34126)
southbridge-fur 588e8c1
Fix friendly vent spiders (#34153)
Booblesnoot42 6b95494
Removed UseDelay component from RCD (#34149)
Booblesnoot42 88d1304
Automatic changelog update
PJBot 2828441
Decrease hp for rusted walls (#34043)
lzk228 5afa961
Automatic changelog update
PJBot 4f2d609
FIX: Thief beacon doubled steal targets (#33750)
ReeZer2 863dfcd
Automatic changelog update
PJBot b5f8343
remove nukemass song (#34066)
Errant-4 7261b86
Automatic changelog update
PJBot 1a632b2
Corrected all ghost role names to title case. (#34155)
Alpaccalypse 2e888c2
Packed Update (Remove Christmas & New Evac) (#34168)
spanky-spanky 1bda739
Omega Update (Remove Christmas) (#34174)
spanky-spanky 3b9334e
Hardhats resprite (#2892)
Belay5 f4e60ff
Renamed "Irish Car Bomb" drink to "Irish Slammer" (#34107)
Alpaccalypse 1391449
Automatic changelog update
PJBot df487ea
Bugfix for the AI player's eye getting stuck when their broadcast is …
chromiumboy 59a87ef
Speech is relayed by holopad holograms (#33978)
chromiumboy 6f9d61f
Make JPEG a PNG (#34176)
Aeshus 083d812
Removed Undesirable Ion Storm Verbs (#34175)
Aeshus 9af4e63
added basic admin logs for PDA notekeeper notes (#34118)
DylanWhittingham 64a5473
Automatic changelog update
PJBot 1a5be80
Sprites defined for all non-generic computer boards. Added new syndic…
Alpaccalypse 39ee853
Added pricegun sound (#34119)
DylanWhittingham 65a463e
Automatic changelog update
PJBot ecdcc9f
Separate Tables n' Counters (#32673)
ps3moira 34960c5
Automatic changelog update
PJBot 21351df
Add Chameleon PDA (#30514)
SlamBamActionman c98a4b9
Automatic changelog update
PJBot edaf0a3
Add some ion storm actions to replace removed ones (#34180)
FairlySadPanda a13076b
Automatic changelog update
PJBot 83244e0
Add Ai announcements sound (#2742)
Zekins3366 6adc922
Automatic changelog update
IanComradeBot ff8c618
[Maps] Pearl fix (#2899)
Ko4ergaPunk a033abb
Amber Station and Science Spawner Tweaks (#34187)
southbridge-fur 26f63c0
Map pool tweak (#2900)
Ko4ergaPunk b165df8
Add telephone tts (#2888)
lzk228 55ad6a7
Core update (#34201)
UbaserB 03b34f0
Elkridge Depot (The station formerly known as Cell) (#34085)
Deerstop 519753c
Merge remote-tracking branch 'upstream/master' into upstream-sync
Rxup 6e6b806
Merge remote-tracking branch 'wizard/master' into upstream-sync
Rxup 850a876
upstream update
Rxup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,8 @@ | ||
using Content.Shared.PDA; | ||
using Content.Shared.Light; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.PDA; | ||
|
||
public sealed class PdaSystem : SharedPdaSystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<PdaComponent, AppearanceChangeEvent>(OnAppearanceChange); | ||
} | ||
|
||
private void OnAppearanceChange(EntityUid uid, PdaComponent component, ref AppearanceChangeEvent args) | ||
{ | ||
if (args.Sprite == null) | ||
return; | ||
|
||
if (Appearance.TryGetData<bool>(uid, UnpoweredFlashlightVisuals.LightOn, out var isFlashlightOn, args.Component)) | ||
args.Sprite.LayerSetVisible(PdaVisualLayers.Flashlight, isFlashlightOn); | ||
|
||
if (Appearance.TryGetData<bool>(uid, PdaVisuals.IdCardInserted, out var isCardInserted, args.Component)) | ||
args.Sprite.LayerSetVisible(PdaVisualLayers.IdLight, isCardInserted); | ||
} | ||
|
||
protected override void OnComponentInit(EntityUid uid, PdaComponent component, ComponentInit args) | ||
{ | ||
base.OnComponentInit(uid, component, args); | ||
|
||
if (!TryComp<SpriteComponent>(uid, out var sprite)) | ||
return; | ||
|
||
if (component.State != null) | ||
sprite.LayerSetState(PdaVisualLayers.Base, component.State); | ||
|
||
sprite.LayerSetVisible(PdaVisualLayers.Flashlight, component.FlashlightOn); | ||
sprite.LayerSetVisible(PdaVisualLayers.IdLight, component.IdSlot.StartingItem != null); | ||
} | ||
|
||
public enum PdaVisualLayers : byte | ||
{ | ||
Base, | ||
Flashlight, | ||
IdLight | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Content.Shared.Light; | ||
using Content.Shared.PDA; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.PDA; | ||
|
||
public sealed class PdaVisualizerSystem : VisualizerSystem<PdaVisualsComponent> | ||
{ | ||
protected override void OnAppearanceChange(EntityUid uid, PdaVisualsComponent comp, ref AppearanceChangeEvent args) | ||
{ | ||
if (args.Sprite == null) | ||
return; | ||
|
||
if (AppearanceSystem.TryGetData<string>(uid, PdaVisuals.PdaType, out var pdaType, args.Component)) | ||
args.Sprite.LayerSetState(PdaVisualLayers.Base, pdaType); | ||
|
||
if (AppearanceSystem.TryGetData<bool>(uid, UnpoweredFlashlightVisuals.LightOn, out var isFlashlightOn, args.Component)) | ||
args.Sprite.LayerSetVisible(PdaVisualLayers.Flashlight, isFlashlightOn); | ||
|
||
if (AppearanceSystem.TryGetData<bool>(uid, PdaVisuals.IdCardInserted, out var isCardInserted, args.Component)) | ||
args.Sprite.LayerSetVisible(PdaVisualLayers.IdLight, isCardInserted); | ||
} | ||
|
||
public enum PdaVisualLayers : byte | ||
{ | ||
Base, | ||
Flashlight, | ||
IdLight | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Content.Client.PDA; | ||
|
||
/// <summary> | ||
/// Used for visualizing PDA visuals. | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class PdaVisualsComponent : Component | ||
{ | ||
public string? BorderColor; | ||
|
||
public string? AccentHColor; | ||
|
||
public string? AccentVColor; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
using System.Linq; | ||
using Content.Server.Body.Systems; | ||
using Content.Server.Hands.Systems; | ||
using Content.Shared.Body.Part; | ||
using Content.Shared.Humanoid.Prototypes; | ||
using Robust.Shared.GameObjects; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.IntegrationTests.Tests.Backmen.Body; | ||
|
||
[TestFixture] | ||
public sealed class HandsTest | ||
{ | ||
[Test] | ||
public async Task AllSpeciesHaveLegs() | ||
{ | ||
await using var pair = await PoolManager.GetServerClient(new PoolSettings | ||
{ | ||
Dirty = true, | ||
Connected = true, | ||
InLobby = false, | ||
}); | ||
|
||
var server = pair.Server; | ||
var bodySys = server.EntMan.System<BodySystem>(); | ||
|
||
foreach (var speciesPrototype in server.ProtoMan.EnumeratePrototypes<SpeciesPrototype>()) | ||
{ | ||
var dummy = EntityUid.Invalid; | ||
await server.WaitAssertion(() => | ||
{ | ||
dummy = server.EntMan.Spawn(speciesPrototype.Prototype); | ||
}); | ||
await server.WaitIdleAsync(); | ||
await server.WaitRunTicks(2); | ||
await server.WaitAssertion(() => | ||
{ | ||
Assert.That(dummy, Is.Not.EqualTo(EntityUid.Invalid)); | ||
var handCount = bodySys.GetBodyPartCount(dummy, BodyPartType.Leg); | ||
Assert.That(handCount, Is.GreaterThanOrEqualTo(2), $"legs {speciesPrototype.ID}({speciesPrototype.Prototype})"); | ||
}); | ||
|
||
} | ||
|
||
await pair.CleanReturnAsync(); | ||
} | ||
[Test] | ||
public async Task AllSpeciesHaveHands() | ||
{ | ||
await using var pair = await PoolManager.GetServerClient(new PoolSettings | ||
{ | ||
Dirty = true, | ||
Connected = true, | ||
InLobby = false, | ||
}); | ||
|
||
var server = pair.Server; | ||
var handsSys = server.EntMan.System<HandsSystem>(); | ||
|
||
foreach (var speciesPrototype in server.ProtoMan.EnumeratePrototypes<SpeciesPrototype>()) | ||
{ | ||
var dummy = EntityUid.Invalid; | ||
await server.WaitAssertion(() => | ||
{ | ||
dummy = server.EntMan.Spawn(speciesPrototype.Prototype); | ||
}); | ||
await server.WaitIdleAsync(); | ||
await server.WaitRunTicks(2); | ||
await server.WaitAssertion(() => | ||
{ | ||
Assert.That(dummy, Is.Not.EqualTo(EntityUid.Invalid)); | ||
var handCount = handsSys.EnumerateHands(dummy).Count(); | ||
Assert.That(handCount, Is.GreaterThanOrEqualTo(2), $"hands {speciesPrototype.ID}({speciesPrototype.Prototype})"); | ||
}); | ||
|
||
} | ||
|
||
await pair.CleanReturnAsync(); | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Дублирование кода в тесте AllSpeciesHaveHands
Тест AllSpeciesHaveHands практически полностью повторяет структуру предыдущего теста. Рекомендуется выделить общую логику в отдельный метод.
Предлагаю создать вспомогательный метод:
Использование в тестах:
📝 Committable suggestion