Beispiel #1
0
        // Function from file: spacevine.dm
        public override dynamic attack_hand(dynamic a = null, bool?b = null, bool?c = null)
        {
            SpacevineMutation SM = null;


            foreach (dynamic _a in Lang13.Enumerate(this.mutations, typeof(SpacevineMutation)))
            {
                SM = _a;

                SM.on_hit(this, a);
            }
            this.user_unbuckle_mob(a);
            return(null);
        }
Beispiel #2
0
        // Function from file: spacevine.dm
        public override dynamic attack_paw(dynamic a = null, dynamic b = null, dynamic c = null)
        {
            SpacevineMutation SM = null;

            ((Ent_Dynamic)a).do_attack_animation(this);

            foreach (dynamic _a in Lang13.Enumerate(this.mutations, typeof(SpacevineMutation)))
            {
                SM = _a;

                SM.on_hit(this, a);
            }
            this.user_unbuckle_mob(a);
            return(null);
        }
Beispiel #3
0
        // Function from file: spacevine.dm
        public override dynamic attackby(dynamic A = null, dynamic user = null, string _params = null, bool?silent = null, bool?replace_spent = null)
        {
            int _override           = 0;
            SpacevineMutation    SM = null;
            Obj_Effect_Spacevine B  = null;
            dynamic WT = null;


            if (!Lang13.Bool(A) || !Lang13.Bool(user) || !(A.type != null))
            {
                return(null);
            }
            ((Mob)user).changeNext_move(8);
            _override = 0;

            foreach (dynamic _a in Lang13.Enumerate(this.mutations, typeof(SpacevineMutation)))
            {
                SM = _a;

                _override += SM.on_hit(this, user) ?1:0;
            }

            if (_override != 0)
            {
                base.attackby((object)(A), (object)(user), _params, silent, replace_spent);
                return(null);
            }

            if (A is Obj_Item_Weapon_Scythe)
            {
                foreach (dynamic _b in Lang13.Enumerate(Map13.FetchInRangeExcludeThis(this, 1), typeof(Obj_Effect_Spacevine)))
                {
                    B = _b;


                    if (Rand13.PercentChance(80))
                    {
                        GlobalFuncs.qdel(B);
                    }
                }
                GlobalFuncs.qdel(this);
            }
            else if (((Obj_Item)A).is_sharp() != 0)
            {
                GlobalFuncs.qdel(this);
            }
            else if (A is Obj_Item_Weapon_Weldingtool)
            {
                WT = A;

                if (((Obj_Item_Weapon_Weldingtool)WT).remove_fuel(0, user))
                {
                    GlobalFuncs.qdel(this);
                }
                else
                {
                    this.user_unbuckle_mob(user);
                    return(null);
                }
            }
            base.attackby((object)(A), (object)(user), _params, silent, replace_spent);
            return(null);
        }