Exemplo n.º 1
0
    private bool SeverHead()
    {
        BodyPart head = FindObjectOfType <Head>();

        if (head.connectedBodyParts.Count() == 0)
        {
            return(false);
        }

        Debug.Log($"Severed {head.name}");
        textLog.NewLogEntry($"The {head.name} has been severed from all limbs.");

        head.damage += 50;
        foreach (BodyPart connectedBodyPart in head.connectedBodyParts)
        {
            connectedBodyPart.bloodLossRate += 20.0f;
        }
        Actions_Surgery.RemoveBodyPartProcess(head);
        head.bloodLossRate += 20.0f;

        return(true);
    }
Exemplo n.º 2
0
    private bool SeverLimbMedium()
    {
        BodyPart limb = RandomLimb();

        if (!(limb is Head) && !(limb.connectedBodyParts.Count() == 0))
        {
            Debug.Log($"Severed {limb.name}");
            textLog.NewLogEntry($"The {limb.name} has been severed from all limbs.");

            limb.damage += 50;
            foreach (BodyPart connectedBodyPart in limb.connectedBodyParts)
            {
                connectedBodyPart.bloodLossRate += 20.0f;
            }
            Actions_Surgery.RemoveBodyPartProcess(limb);
            limb.bloodLossRate += 20.0f;

            return(true);
        }

        return(false);
    }
Exemplo n.º 3
0
    private bool SeverTorso()
    {
        BodyPart torso = FindObjectOfType <Torso>();

        if (torso.connectedBodyParts.Count() == 0)
        {
            return(false);
        }

        Debug.Log($"Severed {torso.name}");
        textLog.NewLogEntry($"The {torso.name} has been severed from all limbs.");

        torso.damage += 50;
        foreach (BodyPart connectedBodyPart in torso.connectedBodyParts)
        {
            connectedBodyPart.bloodLossRate += 20.0f;
        }
        Actions_Surgery.RemoveBodyPartProcess(torso);
        torso.bloodLossRate += 20.0f;

        return(true);
    }