Skip to content

Commit ffcfd61

Browse files
MightBeNotRealRxup
authored andcommitted
fix upstream
b fix fix yaml linter Update swords.yml fix fix map resave Update ServerConsciousnessSystem.cs typo fix fix AllTechPrintableTest local test fix fix fix maps
1 parent b86f5a1 commit ffcfd61

478 files changed

Lines changed: 40035 additions & 950345 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Content.Client/Lobby/UI/LobbyGui.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@
3131
<BoxContainer Orientation="Vertical" HorizontalAlignment="Center" MaxWidth="800">
3232
<info:LinkBanner Name="LinkBanner" VerticalExpand="false" HorizontalAlignment="Center"
3333
Margin="3 3 3 3" />
34-
<controls:StripeBack>
34+
<!--<controls:StripeBack>
3535
<BoxContainer Orientation="Horizontal" SeparationOverride="6" Margin="3 3 3 3">
3636
<Label Name="StartTime"
3737
Access="Public"
3838
Align="Left"
3939
FontColorOverride="{x:Static maths:Color.DarkGray}"
4040
StyleClasses="LabelBig" HorizontalExpand="True" />
4141
</BoxContainer>
42-
</controls:StripeBack>
42+
</controls:StripeBack>-->
4343
<RichTextLabel Name="PlaytimeComment" Visible="False" Access="Public" HorizontalAlignment="Center" />
4444
</BoxContainer>
4545
</PanelContainer>
4646
<!-- Voting Popups -->
47-
<BoxContainer Orientation="Vertical" SeparationOverride="4" Name="VoteContainer"
48-
Access="Public" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0 8" />
47+
<!--<BoxContainer Orientation="Vertical" SeparationOverride="4" Name="VoteContainer"
48+
Access="Public" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0 8" />-->
4949
</BoxContainer>
5050

5151
<!-- Character Setup State -->

Content.IntegrationTests/PoolTestLogHandler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public void Log(string sawmillName, LogEvent message)
6262
if (FailureLevel == null || level < FailureLevel)
6363
return;
6464

65+
// tests no have config file!
66+
if(rendered == "Cannot save the config file, because one was never loaded.")
67+
return;
68+
6569
testContext.Flush();
6670
Assert.Fail($"{line} Exception: {message.Exception}");
6771
}

Content.IntegrationTests/Tests/Backmen/Lathe/LatheRecipyCostTest.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,24 @@ await server.WaitAssertion(() =>
4343
continue;
4444

4545
matPrice = Math.Round(matPrice);
46+
var diff = resultPrice - matPrice;
4647

47-
if (resultPrice > matPrice + Tolerance)
48+
if (diff > Tolerance)
4849
{
49-
fails.Add($"ID: {recipe.ID} Materials: {matPrice} Result: {resultPrice} Dif: {resultPrice - matPrice}");
50+
fails.Add($"ID: {recipe.ID}\n" +
51+
$"Materials: {matPrice}\n" +
52+
$"Result: {resultPrice}\n" +
53+
$"Difference: {diff} (max allowed: {Tolerance})\n" +
54+
$"RECOMMENDED FIX: Set result price to ≤ {matPrice + Tolerance}");
5055
}
5156
}
5257
});
5358

5459
if (fails.Count > 0)
5560
{
56-
var msg = string.Join("\n", fails) + "\n" + "Following RecipePrototypes are giving Arbitrage when printed!";
61+
var msg = "Found arbitrage opportunities:\n\n" +
62+
string.Join("\n\n", fails) +
63+
"\n\nAdjust lathe recipe prices or material costs.";
5764
Assert.Fail(msg);
5865
}
5966

Content.IntegrationTests/Tests/PostMapInitTest.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,19 @@ public sealed class PostMapInitTest
6868
private static readonly string[] GameMaps =
6969
{
7070
// Corvax-Start
71-
"CorvaxAvrite",
7271
"CorvaxDelta",
7372
"CorvaxSilly",
7473
"CorvaxOutpost",
75-
"CorvaxAstra",
7674
"CorvaxGelta",
7775
"CorvaxMaus",
7876
"CorvaxIshimura",
7977
"CorvaxPaper",
8078
"CorvaxCute",
8179
"CorvaxPilgrim",
8280
"CorvaxSplit",
83-
"CorvaxTerra",
8481
"CorvaxFrame",
8582
"CorvaxPearl",
8683
"CorvaxTushkan",
87-
"CorvaxAwesome",
8884
// Corvax-End
8985
"Dev",
9086
"TestTeg",

Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ private void AddSmiteVerbs(GetVerbsEvent<Verb> args)
699699
{
700700
Text = "Dwarf Species Swap",
701701
Category = VerbCategory.Smite,
702-
Icon = new SpriteSpecifier.Rsi(new ResPath("/Textures/Objects/Fun/toys.rsi"), "plushie_lizard"),
702+
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/Plushies/lizard.rsi"), "icon"),
703703
Act = () =>
704704
{
705705
_polymorphSystem.PolymorphEntity(args.Target, "BDwarfMorph");
@@ -713,7 +713,7 @@ private void AddSmiteVerbs(GetVerbsEvent<Verb> args)
713713
{
714714
Text = "Vox Species Swap",
715715
Category = VerbCategory.Smite,
716-
Icon = new SpriteSpecifier.Rsi(new ResPath("/Textures/Objects/Fun/toys.rsi"), "plushie_lizard"),
716+
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/Plushies/lizard.rsi"), "icon"),
717717
Act = () =>
718718
{
719719
_polymorphSystem.PolymorphEntity(args.Target, "BVoxMorph");
@@ -727,7 +727,7 @@ private void AddSmiteVerbs(GetVerbsEvent<Verb> args)
727727
{
728728
Text = "Skilet Species Swap",
729729
Category = VerbCategory.Smite,
730-
Icon = new SpriteSpecifier.Rsi(new ResPath("/Textures/Objects/Fun/toys.rsi"), "plushie_lizard"),
730+
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/Plushies/lizard.rsi"), "icon"),
731731
Act = () =>
732732
{
733733
_polymorphSystem.PolymorphEntity(args.Target, "BSkeletonMorph");

Content.Server/Backmen/Abilities/Psionics/Abilities/MindSwapPowerSystem.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@ private void OnInit(EntityUid uid, MindSwapPowerComponent component, ComponentIn
6262
_actions.AddAction(uid, ref component.MindSwapPowerAction, ActionMindSwap);
6363

6464
#if !DEBUG
65-
if (_actions.TryGetActionData(component.MindSwapPowerAction, out var action) && action?.UseDelay != null)
66-
_actions.SetCooldown(component.MindSwapPowerAction, _gameTiming.CurTime,
67-
_gameTiming.CurTime + (TimeSpan) action?.UseDelay!);
65+
var actionEnt = _actions.GetAction(component.MindSwapPowerAction);
66+
if (actionEnt is { Comp.UseDelay: {} delay }) {
67+
_actions.SetCooldown(component.MindSwapPowerAction, delay);
68+
}
6869
#endif
6970
if (TryComp<PsionicComponent>(uid, out var psionic) && psionic.PsionicAbility == null)
7071
psionic.PsionicAbility = component.MindSwapPowerAction;
71-
72-
7372
}
7473

7574
private void OnShutdown(EntityUid uid, MindSwapPowerComponent component, ComponentShutdown args)

Content.Server/Backmen/Abilities/Psionics/Abilities/TelegnosisPowerSystem.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,11 @@ public override void Initialize()
2626
SubscribeLocalEvent<TelegnosisPowerComponent, TelegnosisPowerActionEvent>(OnPowerUsed);
2727
SubscribeLocalEvent<TelegnosisPowerComponent, MobStateChangedEvent>(OnMobStateChanged);
2828

29-
30-
SubscribeLocalEvent<TelegnosticProjectionComponent, ComponentStartup>(OnProjectionInit);
31-
SubscribeLocalEvent<TelegnosticProjectionComponent, ComponentShutdown>(OnProjectionShutdown);
3229
SubscribeLocalEvent<TelegnosticProjectionComponent, TelegnosisPowerReturnActionEvent>(OnPowerReturnUsed);
33-
34-
35-
3630
SubscribeLocalEvent<TelegnosticProjectionComponent, MindRemovedMessage>(OnMindRemoved);
3731
}
3832

39-
private void OnProjectionShutdown(EntityUid uid, TelegnosticProjectionComponent component, ComponentShutdown args)
40-
{
41-
_actions.RemoveAction(uid, component.TelegnosisPowerAction);
42-
}
43-
44-
private void OnProjectionInit(EntityUid uid, TelegnosticProjectionComponent component, ComponentStartup args)
45-
{
46-
_actions.AddAction(uid, ref component.TelegnosisPowerAction, ActionTelegnosisReturn);
47-
}
48-
4933
[ValidatePrototypeId<EntityPrototype>] private const string ActionTelegnosis = "ActionTelegnosis";
50-
[ValidatePrototypeId<EntityPrototype>] private const string ActionTelegnosisReturn = "ActionTelegnosisReturn";
5134

5235
private void OnInit(EntityUid uid, TelegnosisPowerComponent component, ComponentInit args)
5336
{

Content.Server/Backmen/Species/Shadowkin/Components/ShadowkinRestPowerComponent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ public sealed partial class ShadowkinRestPowerComponent : Component
55
{
66
public EntityUid? ShadowkinRestAction;
77
}
8+
9+
[RegisterComponent]
10+
public sealed partial class ShadowkinRestPowerUsedComponent : Component;

Content.Server/Backmen/Species/Shadowkin/Systems/ShadowkinPowerSystem.DarkSwap.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ private void DarkSwap(EntityUid uid, ShadowkinDarkSwapPowerComponent component,
174174

175175
var hasComp = HasComp<ShadowkinDarkSwappedComponent>(args.Performer);
176176

177+
if (hasComp && HasComp<StealthComponent>(args.Performer))
178+
return;
179+
177180
SetDarkened(
178181
args.Performer,
179182
!hasComp,

Content.Server/Backmen/Species/Shadowkin/Systems/ShadowkinPowerSystem.Rest.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,28 @@ private void OnShutdown(EntityUid uid, ShadowkinRestPowerComponent component, Co
5252
private void Rest(EntityUid uid, ShadowkinRestPowerComponent component, ShadowkinRestEvent args)
5353
{
5454
// Need power to modify power
55-
if (!HasComp<ShadowkinComponent>(args.Performer))
55+
if (!HasComp<ShadowkinComponent>(args.Performer) || component.ShadowkinRestAction is null)
5656
return;
5757

5858
// Rest is a funny ability, keep it :)
5959
// // Don't activate abilities if handcuffed
6060
// if (_entity.HasComponent<HandcuffComponent>(args.Performer))
6161
// return;
6262

63+
SleepingComponent? sleepingComponent = null;
64+
6365
// Resting
64-
if (!TryComp<SleepingComponent>(args.Performer, out var sleepingComponent))
66+
var isSleepingByPower = HasComp<ShadowkinRestPowerUsedComponent>(args.Performer);
67+
if (!isSleepingByPower)
6568
{
6669
if (HasComp<StunnedComponent>(args.Performer))
6770
return;
6871

6972
if(!_sleeping.TrySleeping(args.Performer))
7073
return;
74+
75+
EnsureComp<ShadowkinRestPowerUsedComponent>(args.Performer);
76+
7177
// Sleepy time
7278
EnsureComp<ForcedSleepingComponent>(args.Performer);
7379
// No waking up normally (it would do nothing)
@@ -79,11 +85,13 @@ private void Rest(EntityUid uid, ShadowkinRestPowerComponent component, Shadowki
7985
args.Handled = false;
8086
}
8187
// Waking
82-
else
88+
else if(isSleepingByPower && TryComp(args.Performer, out sleepingComponent))
8389
{
8490
// Wake up
8591
// Action cooldown
92+
RemCompDeferred<ShadowkinRestPowerUsedComponent>(args.Performer);
8693
args.Handled = _sleeping.TryWaking((args.Performer,sleepingComponent), true);
94+
_actions.SetCooldown(component.ShadowkinRestAction.Value, TimeSpan.FromMinutes(1));
8795
}
8896
}
8997
}

0 commit comments

Comments
 (0)