Skip to content

Commit

Permalink
Merge branch 'master' into visions
Browse files Browse the repository at this point in the history
Signed-off-by: Spatison <137375981+Spatison@users.noreply.github.com>
  • Loading branch information
Spatison authored Jan 10, 2025
2 parents 618c3b7 + ba616f0 commit a5c34cf
Show file tree
Hide file tree
Showing 23 changed files with 450 additions and 183 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ public sealed partial class SurgeryOrganConditionComponent : Component

[DataField]
public bool Reattaching;
}

[DataField(required: true)]
public string SlotId = string.Empty;
}
4 changes: 3 additions & 1 deletion Content.Shared/_Shitmed/Surgery/SharedSurgerySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using Content.Shared.Prototypes;
using Content.Shared.Standing;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Containers;
using Robust.Shared.Map;
using Robust.Shared.Network;
using Robust.Shared.Prototypes;
Expand All @@ -47,6 +48,7 @@ public abstract partial class SharedSurgerySystem : EntitySystem
[Dependency] private readonly RotateToFaceSystem _rotateToFace = default!;
[Dependency] private readonly StandingStateSystem _standing = default!;
[Dependency] private readonly SharedTransformSystem _transform = default!;
[Dependency] private readonly SharedContainerSystem _container = default!;

/// <summary>
/// Cache of all surgery prototypes' singleton entities.
Expand Down Expand Up @@ -265,7 +267,7 @@ private void OnOrganConditionValid(Entity<SurgeryOrganConditionComponent> ent, r
&& !organs.Any(organ => HasComp<OrganReattachedComponent>(organ.Id))))
args.Cancelled = true;
}
else if (!ent.Comp.Inverse)
else if (!ent.Comp.Inverse || !_container.TryGetContainer(args.Part, SharedBodySystem.GetOrganContainerId(ent.Comp.SlotId), out _))
args.Cancelled = true;
}
}
Expand Down
41 changes: 41 additions & 0 deletions Resources/Changelog/Changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9459,3 +9459,44 @@ Entries:
id: 6651
time: '2025-01-08T07:07:16.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1459
- author: Lumminal
changes:
- type: Fix
message: Fixed Shadow Shackles spell not activating.
id: 6652
time: '2025-01-08T07:09:10.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1456
- author: Skubman
changes:
- type: Fix
message: Fixed face markings showing up above eye-wear.
id: 6653
time: '2025-01-08T19:37:24.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1467
- author: Lumminal
changes:
- type: Add
message: Added prisoner headset box to warden's locker.
id: 6654
time: '2025-01-09T21:32:06.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1470
- author: BlueHNT
changes:
- type: Add
message: Added missing lathe recipes
id: 6655
time: '2025-01-10T02:27:28.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1472
- author: Spatison
changes:
- type: Tweak
message: Nymphs are now operable.
- type: Fix
message: Skeletons can now lie down.
- type: Fix
message: >-
It is no longer possible to insert an organ into a body if the required
space is unavailable.
id: 6656
time: '2025-01-10T02:27:50.0000000+00:00'
url: https://github.com/Simple-Station/Einstein-Engines/pull/1471
15 changes: 15 additions & 0 deletions Resources/Prototypes/Body/Organs/diona.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@
- type: IsDeadIC
- type: Body
prototype: AnimalNymphBrain
- type: SurgeryTarget
- type: UserInterface
interfaces:
enum.SurgeryUIKey.Key:
type: SurgeryBui

- type: entity
id: OrganDionaNymphStomach
Expand All @@ -196,6 +201,11 @@
- type: IsDeadIC
- type: Body
prototype: AnimalNymphStomach
- type: SurgeryTarget
- type: UserInterface
interfaces:
enum.SurgeryUIKey.Key:
type: SurgeryBui

- type: entity
id: OrganDionaNymphLungs
Expand All @@ -208,3 +218,8 @@
- type: IsDeadIC
- type: Body
prototype: AnimalNymphLungs
- type: SurgeryTarget
- type: UserInterface
interfaces:
enum.SurgeryUIKey.Key:
type: SurgeryBui
15 changes: 15 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Boxes/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@
- state: box_security
- state: handcuff

- type: entity
name: prisoner headset box
parent: BoxCardboard
id: BoxPrisonerHeadset
description: A box of prisoner headsets.
components:
- type: StorageFill
contents:
- id: ClothingHeadsetPrison
amount: 4
- type: Sprite
layers:
- state: box_security
- state: headset

- type: entity
name: flashbang box
parent: BoxCardboard
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- id: BoxPDAPrisoner # Delta-V
- id: ClothingShoesBootsWinterWarden #Delta V: Add departmental winter boots
- id: BoxEncryptionKeyPrisoner #Delta-V
- id: BoxPrisonerHeadset
- id: LunchboxSecurityFilledRandom # Delta-v Lunchboxes!
prob: 0.3

Expand Down Expand Up @@ -52,6 +53,7 @@
- id: BoxPDAPrisoner # Delta-V
- id: ClothingShoesBootsWinterWarden #Delta V: Add departmental winter boots
- id: BoxEncryptionKeyPrisoner #Delta-V
- id: BoxPrisonerHeadset
- id: LunchboxSecurityFilledRandom # Delta-v Lunchboxes!
prob: 0.3

Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/DeltaV/Entities/Mobs/Species/lamia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
color: "#008800"
sprite: Mobs/Customization/eyes.rsi
state: eyes
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
color: "#e8b59b"
sprite: Mobs/Species/Human/parts.rsi
Expand Down Expand Up @@ -106,7 +107,6 @@
- map: [ "belt2" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
Expand Down Expand Up @@ -252,6 +252,7 @@
color: "#008800"
sprite: Mobs/Customization/eyes.rsi
state: eyes
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
color: "#e8b59b"
sprite: Mobs/Species/Human/parts.rsi
Expand Down Expand Up @@ -283,7 +284,6 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- map: [ "enum.HumanoidVisualLayers.Head" ]
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
- map: [ "enum.HumanoidVisualLayers.LArm" ]
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
Expand Down Expand Up @@ -64,7 +65,6 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/silicon_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
- map: ["enum.HumanoidVisualLayers.Head"]
- map: ["enum.HumanoidVisualLayers.Snout"]
- map: ["enum.HumanoidVisualLayers.Eyes"]
- map: ["enum.HumanoidVisualLayers.Face"]
- map: ["enum.HumanoidVisualLayers.RArm"]
- map: ["enum.HumanoidVisualLayers.LArm"]
- map: ["enum.HumanoidVisualLayers.RLeg"]
Expand Down Expand Up @@ -125,7 +126,6 @@
- map: ["belt"]
- map: ["neck"]
- map: ["back"]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: ["enum.HumanoidVisualLayers.FacialHair"]
- map: ["enum.HumanoidVisualLayers.Hair"]
- map: ["enum.HumanoidVisualLayers.HeadSide"]
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Mobs/Species/arachne.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
color: "#008800"
sprite: Mobs/Species/eyes.rsi
state: eyes
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
color: "#e8b59b"
sprite: Mobs/Species/Human/parts.rsi
Expand Down Expand Up @@ -66,7 +67,6 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
state: bald
Expand Down Expand Up @@ -173,6 +173,7 @@
color: "#008800"
sprite: Mobs/Species/eyes.rsi
state: eyes
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
color: "#e8b59b"
sprite: Mobs/Species/Human/parts.rsi
Expand Down Expand Up @@ -212,7 +213,6 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
state: bald
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/arachnid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
- map: [ "enum.HumanoidVisualLayers.Head" ]
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
- map: [ "enum.HumanoidVisualLayers.LArm" ]
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
Expand Down Expand Up @@ -110,7 +111,6 @@
- map: [ "enum.HumanoidVisualLayers.Tail" ] # Mentioned in moth code: This needs renaming lol.
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ] # Do these need to be here? (arachnid hair arachnid hair)
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Mobs/Species/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- map: [ "enum.HumanoidVisualLayers.Head" ]
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
- map: [ "enum.HumanoidVisualLayers.LArm" ]
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
Expand Down Expand Up @@ -41,7 +42,6 @@
- map: [ "id" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
Expand Down Expand Up @@ -349,6 +349,7 @@
- map: [ "enum.HumanoidVisualLayers.Head" ]
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
- map: [ "enum.HumanoidVisualLayers.LArm" ]
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
Expand Down Expand Up @@ -380,7 +381,6 @@
- map: [ "id" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Mobs/Species/harpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- map: [ "enum.HumanoidVisualLayers.Head" ]
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.LArm" ]
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
- map: [ "enum.HumanoidVisualLayers.LLeg" ]
Expand All @@ -38,7 +39,6 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
- map: [ "enum.HumanoidVisualLayers.Tail" ]
Expand Down Expand Up @@ -148,6 +148,7 @@
- map: [ "enum.HumanoidVisualLayers.Head" ]
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.LArm" ]
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
- map: [ "enum.HumanoidVisualLayers.LLeg" ]
Expand All @@ -167,7 +168,6 @@
- map: [ "belt" ]
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
- map: [ "enum.HumanoidVisualLayers.HeadTop" ]
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/moth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
- map: [ "enum.HumanoidVisualLayers.Head" ]
- map: [ "enum.HumanoidVisualLayers.Snout" ]
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.RArm" ]
- map: [ "enum.HumanoidVisualLayers.LArm" ]
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
Expand Down Expand Up @@ -110,7 +111,6 @@
- map: [ "enum.HumanoidVisualLayers.Tail" ] #in the utopian future we should probably have a wings enum inserted here so everyhting doesn't break
- map: [ "neck" ]
- map: [ "back" ]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
- map: [ "enum.HumanoidVisualLayers.Hair" ]
- map: [ "enum.HumanoidVisualLayers.HeadSide" ]
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Mobs/Species/shadowkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
- map: ["enum.HumanoidVisualLayers.Snout"]
- map: ["enum.HumanoidVisualLayers.Eyes"]
shader: unshaded
- map: ["enum.HumanoidVisualLayers.Face"]
- map: ["enum.HumanoidVisualLayers.RArm"]
- map: ["enum.HumanoidVisualLayers.LArm"]
- map: ["enum.HumanoidVisualLayers.RLeg"]
Expand Down Expand Up @@ -187,7 +188,6 @@
- map: ["belt"]
- map: ["neck"]
- map: ["back"]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: ["enum.HumanoidVisualLayers.FacialHair"]
- map: ["enum.HumanoidVisualLayers.Hair"]
- map: ["enum.HumanoidVisualLayers.HeadSide"]
Expand Down Expand Up @@ -265,6 +265,7 @@
- map: ["enum.HumanoidVisualLayers.Snout"]
- map: ["enum.HumanoidVisualLayers.Eyes"]
shader: unshaded
- map: ["enum.HumanoidVisualLayers.Face"]
- map: ["enum.HumanoidVisualLayers.RArm"]
- map: ["enum.HumanoidVisualLayers.LArm"]
- map: ["enum.HumanoidVisualLayers.RLeg"]
Expand Down Expand Up @@ -299,7 +300,6 @@
- map: ["belt"]
- map: ["neck"]
- map: ["back"]
- map: [ "enum.HumanoidVisualLayers.Face" ]
- map: ["enum.HumanoidVisualLayers.FacialHair"]
- map: ["enum.HumanoidVisualLayers.Hair"]
- map: ["enum.HumanoidVisualLayers.HeadSide"]
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Mobs/Species/skeleton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
- type: FireVisuals
alternateState: Standing
- type: FootPrints
- type: LayingDown

- type: entity
parent: BaseSpeciesDummy
Expand Down
Loading

0 comments on commit a5c34cf

Please sign in to comment.