Skip to content

Commit

Permalink
Surgery situation got even worse
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropica1Owl committed Aug 26, 2024
1 parent cce64ca commit 95d8aa7
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 60 deletions.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions Content.Server/Palmtree/CookieClicker/CookieClickerSystem.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,7 @@ namespace Content.Server.Palmtree.Surgery
{
[RegisterComponent]
public partial class PPatientComponent : Component //"PPatient" because wizden might add surgery down the line, so I'm doing this to avoid conflicts.
{// I'll make this better later with a proper list of steps, I just need a first version for now
[DataField("incised")]
[ViewVariables(VVAccess.ReadWrite)]
public bool incised = false;

[DataField("retracted")]
[ViewVariables(VVAccess.ReadWrite)]
public bool retracted = false;

[DataField("clamped")]
[ViewVariables(VVAccess.ReadWrite)]
public bool clamped = false;

{
public List<string> procedures = new List<string>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ public partial class PSurgeryToolComponent : Component
[ViewVariables(VVAccess.ReadWrite)]
public string kind = "scalpel";

[DataField("infectionDamage")]
[ViewVariables(VVAccess.ReadWrite)]
public float infectionDamage = 1.0f;

[DataField("useDelay")]
[ViewVariables(VVAccess.ReadWrite)]
public float useDelay = 3.0f;
Expand Down
6 changes: 4 additions & 2 deletions Content.Server/Palmtree/Surgery/SurgerySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ private void OnProcedureFinished(EntityUid uid, PSurgeryToolComponent tool, Surg
{
_mind.TransferTo(targetMindId, uid, mind: targetMind);
}
repeatableProcedure = true;
}
else
{
Expand All @@ -152,14 +153,15 @@ private void OnProcedureFinished(EntityUid uid, PSurgeryToolComponent tool, Surg
}
else
{
if (targetHasMind)
if (targetHasMind && !deviceHasMind)
{
_mind.TransferTo(targetMindId, uid, mind: targetMind);
}
if (deviceHasMind)
if (deviceHasMind && !targetHasMind)
{
_mind.TransferTo(deviceMindId, args.Target, mind: deviceMind);
}
repeatableProcedure = true;
}
}
else
Expand Down
3 changes: 2 additions & 1 deletion Resources/Prototypes/Catalog/Fills/Backpacks/duffelbag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
- id: Cautery
- id: Retractor
- id: Scalpel
- id: SurgeryItemBloodFilter
- id: SurgeryItemBloodFilter # Syndie change
- id: PhantomLinkCard # Syndie change

- type: entity
id: ClothingBackpackDuffelCBURNFilled
Expand Down
3 changes: 2 additions & 1 deletion Resources/Prototypes/Catalog/Fills/Crates/medical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
- id: Saw
- id: Hemostat
- id: ClothingMaskSterile
- id: SurgeryItemBloodFilter
- id: SurgeryItemBloodFilter # Syndie change
- id: PhantomLinkCard # Syndie change

- type: entity
id: CrateMedicalScrubs
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Mobs/Species/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
id: BaseMobSpecies
abstract: true
components:
- type: PPatient
- type: Sprite
layers:
- map: [ "enum.HumanoidVisualLayers.Chest" ]
Expand Down
1 change: 0 additions & 1 deletion Resources/Prototypes/Entities/Mobs/Species/human.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
name: Urist McHands
abstract: true
components:
- type: PPatient # Allows this mob to receive operations
- type: Hunger
- type: Icon # It will not have an icon in the adminspawn menu without this. Body parts seem fine for whatever reason.
sprite: Mobs/Species/Human/parts.rsi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,27 @@
- type: Tag
tags:
- SurgeryTool

# Placeholder PAIs, aka semi-automatic ghost roles

- type: entity
parent: BaseItem
id: PhantomLinkCard
name: phantomlink card
description: Mysterious technology used to extract the soul of living things for conversion into borgs, this one can also insert consciousness into other bodies.
components:
- type: PSurgeryTool # Palmtree change - I don't need to explain this one, do I?
kind: phantomlink
useDelay: 5 # You gotta be sure.
damageOnUse:
types:
Shock: 50 # This is not good for your head
- type: BorgBrain
- type: Sprite
sprite: Objects/Fun/pai.rsi
layers:
- state: pai-base
- state: syndicate-pai-off-overlay
shader: unshaded
map: ["screen"]
- type: BlockMovement

0 comments on commit 95d8aa7

Please sign in to comment.