Beispiel #1
0
        public override bool update(_Action3 act)
        {
            var isDestroySkin = skin.update();

            if (isDestroySkin)
            {
                if (mode != enMode.repairingUnder)
                {
                    skin.desroy();
                }
                else
                {
                    skin.reset(definition.skinDurability);

                    isDestroySkin = false;
                }
            }


            var isDestroyUnder = under.update();

            if (isDestroyUnder)
            {
                under.desroy();
            }



            purgeAndRefresh(act);



            return(isDestroySkin | isDestroyUnder);
        }
Beispiel #2
0
        public override bool update(_Action3 act)
        {
            var isArmorDestroyed = outer.update();

            if (isArmorDestroyed)
            {
                var overDamage = outer.desroy();

                overDamage.damage *= dsi.fragmentationRate;

                inner.applyOverDamage(ref overDamage);
            }


            var isBodyDestroyed = inner.update();

            if (isBodyDestroyed)
            {
                inner.desroy();
            }


            return(isBodyDestroyed);
        }