Exemplo n.º 1
0
        // Function from file: augments_internal.dm
        public override double emp_act(int severity = 0)
        {
            double?      range  = null;
            dynamic      A      = null;
            Base_Dynamic L_item = null;
            Ent_Dynamic  R_item = null;


            if (!Lang13.Bool(this.owner))
            {
                return(0);
            }
            range  = (severity != 0 ? 10 : 5);
            L_item = this.owner.l_hand;
            R_item = this.owner.r_hand;
            this.release_items();
            base.emp_act(severity);

            if (L_item != null)
            {
                A = Rand13.PickFromTable(Map13.FetchInViewExcludeThis(null, range));
                ((dynamic)L_item).throw_at(A, range, 2);
                this.owner.WriteMsg("<span class='notice'>Your left arm spasms and throws the " + L_item.name + "!</span>");
            }

            if (R_item != null)
            {
                A = Rand13.PickFromTable(Map13.FetchInViewExcludeThis(null, range));
                R_item.throw_at(A, range, 2);
                this.owner.WriteMsg("<span class='notice'>Your right arm spasms and throws the " + R_item.name + "!</span>");
            }
            return(0);
        }