Skip to content
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

Upstream merge #234

Closed
wants to merge 77 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
bda9a4b
Fix ai upload console itemslot whitelist (#31900)
lzk228 Sep 6, 2024
17cdb17
Automatic changelog update
PJBot Sep 6, 2024
2b0f227
improved vox laugh (#31798)
Errant-4 Sep 6, 2024
45b252e
fix pump shotgun wielded sprite (#31885)
ps3moira Sep 6, 2024
53deec9
fix: Snail event wasnt tabled (#31884)
IProduceWidgets Sep 6, 2024
c7077bb
Automatic changelog update
PJBot Sep 6, 2024
44cf326
Force stop pulling when fall asleep (#31893)
godisdeadLOL Sep 6, 2024
8178fa6
Automatic changelog update
PJBot Sep 6, 2024
2acee53
Energy Shotgun Change 2 - Narrow Nerf + instances from NoSpawn --> ca…
Boaz1111 Sep 7, 2024
e854a3d
Automatic changelog update
PJBot Sep 7, 2024
f49d83a
Add justice helm (#31905)
themias Sep 7, 2024
0165a30
Automatic changelog update
PJBot Sep 7, 2024
cadda4e
Delete RDs binary encryption key (#31909)
Futuristic-OK Sep 7, 2024
9ba59d9
Automatic changelog update
PJBot Sep 7, 2024
a197baa
split temperature protection into heating and cooling (#30662)
EmoGarbage404 Sep 7, 2024
407dd98
Automatic changelog update
PJBot Sep 7, 2024
3a3a5fb
makes the maple wing marking have a primary and a secondary color (#3…
Boaz1111 Sep 7, 2024
dff19b8
Automatic changelog update
PJBot Sep 7, 2024
9680c1d
Remake bottles and syringes names to use labels (#29956)
lzk228 Sep 7, 2024
4e1915f
Automatic changelog update
PJBot Sep 7, 2024
9989f5b
guide on agrichem and botanicals guidebook update (#31896)
Ian321 Sep 7, 2024
ff49332
Automatic changelog update
PJBot Sep 7, 2024
849366f
bagel update (#31911)
Emisse Sep 7, 2024
be94aff
Remove Antimov and Overlord law boards from maps (#31908)
LankLTE Sep 7, 2024
484af4b
Automatic changelog update
PJBot Sep 7, 2024
d57faf5
Lost evac pod thing tiny fan (#31915)
Emisse Sep 7, 2024
932ff66
fix paper label whitelist (#31919)
lzk228 Sep 7, 2024
ab1c60d
Automatic changelog update
PJBot Sep 7, 2024
1fab9bc
Update box disposals (jani rejoice) (#31917)
lzk228 Sep 7, 2024
53be041
Update fland disposals (jani rejoice) (#31918)
lzk228 Sep 7, 2024
719e5a8
Updated cog (Maints edition) (#31935)
Spessmann Sep 7, 2024
66f3b78
uranium ammo mag being called rubber ammo mag fixed (#31934)
Boaz1111 Sep 7, 2024
6158bab
fix wall closet storage range (#31933)
qwerltaz Sep 7, 2024
447e9c2
fix flammable reagents deigniting you (#31930)
Ilya246 Sep 7, 2024
58d2201
Automatic changelog update
PJBot Sep 7, 2024
c5f19fd
Damaged by contact fix (#31921)
Kirus59 Sep 7, 2024
b51d938
Returned functionality to industrial reagent grinders (#31903)
LucasTheDrgn Sep 7, 2024
b61402c
Automatic changelog update
PJBot Sep 7, 2024
e2bbd59
Update Credits (#31937)
github-actions[bot] Sep 8, 2024
6fcb5cf
Update core (#31942)
UbaserB Sep 8, 2024
efe54e0
Biogenerator (#30694)
EmoGarbage404 Sep 8, 2024
680b9c9
Automatic changelog update
PJBot Sep 8, 2024
230ea9b
Metamorphosis - FoodSequence 3 (#31012)
TheShuEd Sep 8, 2024
4b152d1
Automatic changelog update
PJBot Sep 8, 2024
5b6e075
bagel update (#31944)
Emisse Sep 8, 2024
070f38f
box update (#31945)
Emisse Sep 8, 2024
937276d
fland update (#31946)
Emisse Sep 8, 2024
35f50f2
marathon update (#31947)
Emisse Sep 8, 2024
5f6dac6
meta update (#31948)
Emisse Sep 8, 2024
b6019cf
omega update (#31949)
Emisse Sep 8, 2024
b2007bc
packed update (#31950)
Emisse Sep 8, 2024
4b8beda
Add completions to addobjective and localize it (#30456)
nikthechampiongr Sep 8, 2024
5edbd3d
Automatic changelog update
PJBot Sep 8, 2024
e93c3ff
Update submodule to 233.1.0 (#31954)
metalgearsloth Sep 8, 2024
f7a87b5
FTL + AI fixes (#31952)
metalgearsloth Sep 8, 2024
ef54ea7
Automatic changelog update
PJBot Sep 8, 2024
0e99ddb
Fixes being able to craft the justice helmet with a justice helmet (#…
PopGamer45 Sep 8, 2024
1a3a686
Automatic changelog update
PJBot Sep 8, 2024
c7b9895
some securiby contra fixes (#31956)
Killerqu00 Sep 8, 2024
3d4a811
Automatic changelog update
PJBot Sep 8, 2024
713abf6
Make random sentience actually happen (#31953)
Psychpsyo Sep 8, 2024
2de0858
Automatic changelog update
PJBot Sep 8, 2024
a1b27db
remove HatBase (#31971)
lzk228 Sep 8, 2024
c46a4ab
Revert "FTL + AI fixes (#31952)" (#31968)
slarticodefast Sep 8, 2024
eab318e
Rings now give a small amout of gold / silver when scrapped (#31847)
beck-thompson Sep 8, 2024
dbb5da1
Automatic changelog update
PJBot Sep 8, 2024
d5b9151
Update PULL_REQUEST_TEMPLATE.md (#31046)
lzk228 Sep 8, 2024
7eb5c0a
Radiation blocker values for directional plasma and uranium windows (…
K-Dynamic Sep 8, 2024
e6f1492
Automatic changelog update
PJBot Sep 8, 2024
f2615f0
Corrects some typos in the uplink catalog, adjusts grammar (#31989)
HerCoyote23 Sep 8, 2024
ca1bfbf
Add SetEntity(Owner) so can view APC sprite in UI (Bug fix) (#31962)
jamessimo Sep 8, 2024
69be5d0
Cog update (#31986)
Spessmann Sep 9, 2024
1dc8a86
fix moffra antennae (#31981)
Sadie-silly Sep 9, 2024
6fb5ad5
Set Salamander Max Pop to 80 (#31907)
Nairodian Sep 9, 2024
48af56d
Merge remote-tracking branch 'space-wizards/master' into upstream-merge
irismessage Sep 9, 2024
0b2ce45
More consistent pr template comment
irismessage Sep 9, 2024
b4cf82e
Update meat.yml
formlessnameless Sep 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<!--
Impstation note: there's no need to read all the official contributing guidelines, but please DON'T combine upstream changes with your own changes. Make separate pull requests for separate changes.
-->
<!-- Please read these guidelines before opening your PR: https://docs.spacestation14.io/en/getting-started/pr-guideline -->
<!-- The text between the arrows are comments - they will not be visible on your PR. -->
<!-- Impstation note: there's no need to read all the official contributing guidelines,
but please DON'T combine upstream changes with your own changes.
Make separate pull requests for separate changes. -->
<!-- Guidelines: https://docs.spacestation14.io/en/getting-started/pr-guideline -->

**Changelog**
<!-- Impstation note: we have our own AUTOMATIC changelog now, so please DO use this section! -->
<!-- Add a Changelog entry to make players aware of new features or changes that could affect gameplay.
Make sure to read the guidelines and take this Changelog template out of the comment block in order for it to show up.
Changelog must have a :cl: symbol, so the bot recognizes the changes and adds them to the game's changelog. -->
<!--
Make players aware of new features and changes that could affect how they play the game by adding a Changelog entry. Please read the Changelog guidelines located at: https://docs.spacestation14.io/en/getting-started/pr-guideline#changelog
-->

<!--
Make sure to take this Changelog template out of the comment block in order for it to show up. Changelog must have a :cl: symbol, so the bot recognizes the changes and adds them to the game's changelog.
:cl:
- add: Added fun!
- remove: Removed fun!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Content.Shared.Nutrition.Components;
using Content.Shared.Nutrition.EntitySystems;
using Robust.Client.GameObjects;
using Robust.Shared.Utility;

namespace Content.Client.Nutrition.EntitySystems;

Expand Down Expand Up @@ -50,6 +49,7 @@ private void UpdateFoodVisuals(Entity<FoodSequenceStartPointComponent> start, Sp
sprite.AddBlankLayer(index);
sprite.LayerMapSet(keyCode, index);
sprite.LayerSetSprite(index, state.Sprite);
sprite.LayerSetScale(index, state.Scale);

//Offset the layer
var layerPos = start.Comp.StartPosition;
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Power/APC/ApcBoundUserInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public ApcBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
protected override void Open()
{
base.Open();

_menu = this.CreateWindow<ApcMenu>();
_menu.SetEntity(Owner);
_menu.OnBreaker += BreakerPressed;
}

Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Atmos/EntitySystems/FlammableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public void SetFireStacks(EntityUid uid, float stacks, FlammableComponent? flamm
}
else
{
flammable.OnFire = ignite;
flammable.OnFire |= ignite;
UpdateAppearance(uid, flammable);
}
}
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Entry/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Content.Server.IoC;
using Content.Server.Maps;
using Content.Server.NodeContainer.NodeGroups;
using Content.Server.Objectives;
using Content.Server.Players;
using Content.Server.Players.JobWhitelist;
using Content.Server.Players.PlayTimeTracking;
Expand Down
1 change: 1 addition & 0 deletions Content.Server/IoC/ServerContentIoC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Content.Server.Maps;
using Content.Server.MoMMI;
using Content.Server.NodeContainer.NodeGroups;
using Content.Server.Objectives;
using Content.Server.Players;
using Content.Server.Players.JobWhitelist;
using Content.Server.Players.PlayTimeTracking;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Content.Shared.Chemistry.Reagent;
using Content.Shared.Materials;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;

namespace Content.Server.Materials.Components;

/// <summary>
/// This is used for a machine that turns produce into a specified material.
/// </summary>
[RegisterComponent, Access(typeof(ProduceMaterialExtractorSystem))]
public sealed partial class ProduceMaterialExtractorComponent : Component
{
/// <summary>
/// The material that produce is converted into
/// </summary>
[DataField]
public ProtoId<MaterialPrototype> ExtractedMaterial = "Biomass";

/// <summary>
/// List of reagents that determines how much material is yielded from a produce.
/// </summary>
[DataField]
public List<ProtoId<ReagentPrototype>> ExtractionReagents = new()
{
"Nutriment"
};

[DataField]
public SoundSpecifier? ExtractSound = new SoundPathSpecifier("/Audio/Effects/waterswirl.ogg");
}
17 changes: 15 additions & 2 deletions Content.Server/Materials/MaterialReclaimerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,22 @@ private void SpawnChemicalsFromComposition(EntityUid reclaimer,
}

// if the item we inserted has reagents, add it in.
if (_solutionContainer.TryGetDrainableSolution(item, out _, out var drainableSolution))

if (reclaimerComponent.OnlyReclaimDrainable)
{
// Are we a recycler? Only use drainable solution.
if (_solutionContainer.TryGetDrainableSolution(item, out _, out var drainableSolution))
{
totalChemicals.AddSolution(drainableSolution, _prototype);
}
}
else
{
totalChemicals.AddSolution(drainableSolution, _prototype);
// Are we an industrial reagent grinder? Use extractable solution.
if (_solutionContainer.TryGetExtractableSolution(item, out _, out var extractableSolution))
{
totalChemicals.AddSolution(extractableSolution, _prototype);
}
}

if (!_solutionContainer.TryGetSolution(reclaimer, reclaimerComponent.SolutionContainerId, out var outputSolution) ||
Expand Down
48 changes: 48 additions & 0 deletions Content.Server/Materials/ProduceMaterialExtractorSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
using System.Linq;
using Content.Server.Botany.Components;
using Content.Server.Materials.Components;
using Content.Server.Power.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Interaction;
using Robust.Server.Audio;

namespace Content.Server.Materials;

public sealed class ProduceMaterialExtractorSystem : EntitySystem
{
[Dependency] private readonly AudioSystem _audio = default!;
[Dependency] private readonly MaterialStorageSystem _materialStorage = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;

/// <inheritdoc/>
public override void Initialize()
{
SubscribeLocalEvent<ProduceMaterialExtractorComponent, AfterInteractUsingEvent>(OnInteractUsing);
}

private void OnInteractUsing(Entity<ProduceMaterialExtractorComponent> ent, ref AfterInteractUsingEvent args)
{
if (args.Handled)
return;

if (!this.IsPowered(ent, EntityManager))
return;

if (!TryComp<ProduceComponent>(args.Used, out var produce))
return;

if (!_solutionContainer.TryGetSolution(args.Used, produce.SolutionName, out var solution))
return;

// Can produce even have fractional amounts? Does it matter if they do?
// Questions man was never meant to answer.
var matAmount = solution.Value.Comp.Solution.Contents
.Where(r => ent.Comp.ExtractionReagents.Contains(r.Reagent.Prototype))
.Sum(r => r.Quantity.Float());
_materialStorage.TryChangeMaterialAmount(ent, ent.Comp.ExtractedMaterial, (int) matAmount);

_audio.PlayPvs(ent.Comp.ExtractSound, ent);
QueueDel(args.Used);
args.Handled = true;
}
}
Loading