public override void FinnishSurgeryProcedure(BodyPart OnBodyPart, PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { base.FinnishSurgeryProcedure(OnBodyPart, interaction, PresentProcedure); if (PresentProcedure.RelatedBodyPart.ContainedIn != null) { PresentProcedure.ISon.SetBodyPartIsOpen(false, true); PresentProcedure.ISon.currentlyOn = PresentProcedure.RelatedBodyPart.ContainedIn.gameObject; } else { PresentProcedure.ISon.SetBodyPartIsOpen(false, false); PresentProcedure.ISon.currentlyOn = null; } PresentProcedure.ISon.ThisPresentProcedure.PreviousBodyPart = null; PresentProcedure.ISon.ThisPresentProcedure.RelatedBodyPart = null; if (OnBodyPart.TryGetComponent <Organ>(out var organ)) { organ.RelatedPart.OrganStorage.ServerTryRemove(organ.gameObject); } else { OnBodyPart.TryRemoveFromBody(); } }
public override void FinnishSurgeryProcedure(BodyPart OnBodyPart, PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { base.FinnishSurgeryProcedure(OnBodyPart, interaction, PresentProcedure); if (PresentProcedure.RelatedBodyPart.ContainedIn != null) { PresentProcedure.ISon.SetBodyPartIsOpen(false, true); PresentProcedure.ISon.currentlyOn = PresentProcedure.RelatedBodyPart.ContainedIn.gameObject; } else { PresentProcedure.ISon.SetBodyPartIsOpen(false, false); PresentProcedure.ISon.currentlyOn = null; } OnBodyPart.RemoveFromBodyThis(); }
public override void FinnishSurgeryProcedure(BodyPart OnBodyPart, PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { if (interaction.HandSlot.Item != null && interaction.HandSlot.Item.GetComponent <ItemAttributesV2>().HasTrait(RequiredTrait)) { OnBodyPart.HealDamage(interaction.UsedObject, HeelStrength, Affects); var stackable = interaction.UsedObject.GetComponent <Stackable>(); if (stackable != null) { stackable.ServerConsume(1); } else { Despawn.ServerSingle(interaction.UsedObject); } } }
public override void FinnishSurgeryProcedure(BodyPart OnBodyPart, PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { base.FinnishSurgeryProcedure(OnBodyPart, interaction, PresentProcedure); if (interaction.HandSlot.Item != null && interaction.HandSlot.Item.GetComponent <ItemAttributesV2>().HasTrait(RequiredImplantTrait)) { if (OnBodyPart != null) { OnBodyPart.OrganStorage.ServerTryTransferFrom(interaction.HandSlot); } else { PresentProcedure.ISon.GetComponent <LivingHealthMasterBase>().BodyPartStorage.ServerTryTransferFrom(interaction.HandSlot); PresentProcedure.ISon.currentlyOn = null; } } }
public override void UnsuccessfulStep(BodyPart OnBodyPart, PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { OnBodyPart.TakeDamage(interaction.UsedObject, HeelStrength * 0.1f, FailAttackType, Affects); }
public virtual void UnsuccessfulStep(PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { //DO dmg //Do you whatever you would like }
public override void FinnishSurgeryProcedure(BodyPart OnBodyPart, HandApply interaction, Dissectible.PresentProcedure PresentProcedure) { base.FinnishSurgeryProcedure(OnBodyPart, interaction, PresentProcedure); PresentProcedure.ISon.SetBodyPartIsOpen(true, true); }
public override void UnsuccessfulStep(BodyPart OnBodyPart, HandApply interaction, Dissectible.PresentProcedure PresentProcedure) { base.UnsuccessfulStep(OnBodyPart, interaction, PresentProcedure); }
public virtual void UnsuccessfulStep(BodyPart OnBodyPart, PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { }
public virtual void FinnishSurgeryProcedure(BodyPart OnBodyPart, PositionalHandApply interaction, Dissectible.PresentProcedure PresentProcedure) { }
public virtual void SuccessfulProcedure(HandApply interaction, Dissectible.PresentProcedure PresentProcedure) { //Do you whatever you would like }