Armour.ArmourSelfDamage C# (CSharp) Method

ArmourSelfDamage() public method

Damage caused to the weapon when it hits something with heavy resistance.
public ArmourSelfDamage ( ) : void
return void
    public virtual void ArmourSelfDamage()
    {
        objInt().Quality-=1;
        UpdateQuality();
        if (objInt().Quality<=0)
        {
            ChangeType(208,23);//Change to debris.
            this.gameObject.AddComponent<object_base>();//Add a generic object base for behaviour
            Destroy(this);//Kill me now.
        }
    }