Minor Shitmed Bugfixes (#971)
* full fucking send * ope forgot to remove the EE scripts * fix test * fix shitcode fail * DELTA THAT VALUE IS NULLABLE * whoopsie daysie * fixed??? * chat is this real * bugfixes * more bugfixes * goobmed
This commit is contained in:
parent
fd11cee0e0
commit
8ee865a7a4
|
|
@ -0,0 +1,10 @@
|
|||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared._Shitmed.Medical.Surgery;
|
||||
|
||||
/// <summary>
|
||||
/// Prevents the entity from causing toxin damage to entities it does surgery on.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class SanitizedComponent : Component { }
|
||||
|
|
@ -125,13 +125,16 @@ public abstract partial class SharedSurgerySystem
|
|||
|
||||
//if (!HasComp<ForcedSleepingComponent>(args.Body))
|
||||
// //RaiseLocalEvent(args.Body, new MoodEffectEvent("SurgeryPain"));
|
||||
// No mood on Goob :(
|
||||
// No mood on Goob :(
|
||||
if (!_inventory.TryGetSlotEntity(args.User, "gloves", out var _)
|
||||
|| !_inventory.TryGetSlotEntity(args.User, "mask", out var _))
|
||||
|| !_inventory.TryGetSlotEntity(args.User, "mask", out var _))
|
||||
{
|
||||
var sepsis = new DamageSpecifier(_prototypes.Index<DamageTypePrototype>("Poison"), 5);
|
||||
var ev = new SurgeryStepDamageEvent(args.User, args.Body, args.Part, args.Surgery, sepsis, 0.5f);
|
||||
RaiseLocalEvent(args.Body, ref ev);
|
||||
if (!HasComp<SanitizedComponent>(args.User))
|
||||
{
|
||||
var sepsis = new DamageSpecifier(_prototypes.Index<DamageTypePrototype>("Poison"), 5);
|
||||
var ev = new SurgeryStepDamageEvent(args.User, args.Body, args.Part, args.Surgery, sepsis, 0.5f);
|
||||
RaiseLocalEvent(args.Body, ref ev);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
left foot:
|
||||
id: "left foot"
|
||||
type: Foot
|
||||
- type: MovementBodyPart
|
||||
- type: Sprite
|
||||
state: borg_l_leg
|
||||
- type: Icon
|
||||
|
|
@ -103,9 +104,6 @@
|
|||
- Trash
|
||||
- BorgLeg
|
||||
- BorgLLeg
|
||||
- type: MovementBodyPart # Shitmed Change: 25% speed boost
|
||||
walkSpeed: 3.125
|
||||
sprintSpeed: 5.625
|
||||
|
||||
- type: entity
|
||||
id: RightLegBorg
|
||||
|
|
@ -120,6 +118,7 @@
|
|||
right foot:
|
||||
id: "right foot"
|
||||
type: Foot
|
||||
- type: MovementBodyPart
|
||||
- type: Sprite
|
||||
state: borg_r_leg
|
||||
- type: Icon
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@
|
|||
- type: BodyPart
|
||||
onAdd:
|
||||
- type: NoSlip
|
||||
- type: ProtectedFromStepTriggers
|
||||
|
||||
- type: entity
|
||||
parent: RightLegCybernetic
|
||||
|
|
@ -166,4 +167,5 @@
|
|||
sprintSpeed: 5.625
|
||||
- type: BodyPart
|
||||
onAdd:
|
||||
- type: NoSlip
|
||||
- type: NoSlip
|
||||
- type: ProtectedFromStepTriggers
|
||||
|
|
|
|||
|
|
@ -3,12 +3,24 @@
|
|||
id: BioSynthLeftArm
|
||||
name: bio-synthetic left arm
|
||||
description: This left arm can be transplanted into any living organism and it will adapt to its recipient.
|
||||
components:
|
||||
- type: BodyPart
|
||||
children:
|
||||
left hand:
|
||||
id: "left hand"
|
||||
type: Hand
|
||||
|
||||
- type: entity
|
||||
parent: RightArmHuman
|
||||
id: BioSynthRightArm
|
||||
name: bio-synthetic right arm
|
||||
description: This right arm can be transplanted into any living organism and it will adapt to its recipient.
|
||||
components:
|
||||
- type: BodyPart
|
||||
children:
|
||||
right hand:
|
||||
id: "right hand"
|
||||
type: Hand
|
||||
|
||||
- type: entity
|
||||
parent: LeftHandHuman
|
||||
|
|
@ -27,12 +39,24 @@
|
|||
id: BioSynthLeftLeg
|
||||
name: bio-synthetic left leg
|
||||
description: This left leg can be transplanted into any living organism and it will adapt to its recipient.
|
||||
components:
|
||||
- type: BodyPart
|
||||
children:
|
||||
left foot:
|
||||
id: "left foot"
|
||||
type: Foot
|
||||
|
||||
- type: entity
|
||||
parent: RightLegHuman
|
||||
id: BioSynthRightLeg
|
||||
name: bio-synthetic right leg
|
||||
description: This right leg can be transplanted into any living organism and it will adapt to its recipient.
|
||||
components:
|
||||
- type: BodyPart
|
||||
children:
|
||||
right foot:
|
||||
id: "right foot"
|
||||
type: Foot
|
||||
|
||||
- type: entity
|
||||
parent: LeftFootHuman
|
||||
|
|
|
|||
Loading…
Reference in New Issue