예제 #1
0
        // Function from file: turf.dm
        public void phase_damage_creatures(int damage = 0, dynamic U = null)
        {
            Mob_Living M  = null;
            Obj_Mecha  M2 = null;


            foreach (dynamic _a in Lang13.Enumerate(this, typeof(Mob_Living)))
            {
                M = _a;


                if (M == U)
                {
                    continue;
                }
                M.adjustBruteLoss(damage);
                M.Paralyse(damage / 5);
            }

            foreach (dynamic _b in Lang13.Enumerate(this, typeof(Obj_Mecha)))
            {
                M2 = _b;

                M2.take_damage(damage * 2, "brute");
            }
            return;
        }
예제 #2
0
 // Function from file: mutations.dm
 public override void on_life(Mob_Living owner = null)
 {
     if (Rand13.PercentChance(1) && !(owner.paralysis != 0))
     {
         owner.visible_message("<span class='danger'>" + owner + " starts having a seizure!</span>", "<span class='userdanger'>You have a seizure!</span>");
         owner.Paralyse(10);
         owner.Jitter(1000);
         Task13.Schedule(90, (Task13.Closure)(() => {
             owner.jitteriness = 10;
             return;
         }));
     }
     return;
 }
예제 #3
0
        // Function from file: inflict_handler.dm
        public override bool cast(dynamic targets = null, dynamic thearea = null, dynamic user = null)
        {
            thearea = thearea ?? Task13.User;

            Mob_Living target   = null;
            Mob_Living C_target = null;
            dynamic    B        = null;


            foreach (dynamic _b in Lang13.Enumerate(targets, typeof(Mob_Living)))
            {
                target = _b;

                GlobalFuncs.playsound(target, this.sound, 50, 1);

                switch ((string)(this.destroys))
                {
                case "gib":
                    target.gib();
                    break;

                case "gib_brain":

                    if (target is Mob_Living_Carbon_Human || target is Mob_Living_Carbon_Monkey)
                    {
                        C_target = target;
                        B        = C_target.getorgan(typeof(Obj_Item_Organ_Internal_Brain));

                        if (Lang13.Bool(B))
                        {
                            B.loc = GlobalFuncs.get_turf(C_target);
                            B.transfer_identity(C_target);
                            ((dynamic)C_target).internal_organs -= B;
                        }
                    }
                    target.gib();
                    break;

                case "disintegrate":
                    target.dust();
                    break;
                }

                if (!(target != null))
                {
                    continue;
                }
                target.adjustBruteLoss(this.amt_dam_brute);
                target.adjustFireLoss(this.amt_dam_fire);
                target.adjustToxLoss(this.amt_dam_tox);
                target.adjustOxyLoss(this.amt_dam_oxy);
                target.Weaken(this.amt_weakened);
                target.Paralyse(this.amt_paralysis);
                target.Stun(this.amt_stunned);
                target.blind_eyes(this.amt_eye_blind);
                target.blur_eyes(this.amt_eye_blurry);

                if (Lang13.Bool(this.summon_type))
                {
                    Lang13.Call(this.summon_type, target.loc, target);
                }
            }
            return(false);
        }