Example #1
0
 public void MakeNonflammable()
 {
     if (!ParentObject.HasTag("Creature") && ParentObject.pPhysics != null)
     {
         ParentObject.pPhysics.FlameTemperature = ParentObject.pPhysics.VaporTemperature + 1;
     }
 }
Example #2
0
 public override bool HandleEvent(BeforeApplyDamageEvent E)
 {
     if (E.Object == ParentObject && !ParentObject.HasTag("Creature") && E.Damage.Amount < 0)
     {
         E.Damage.Amount /= 2;
     }
     return(true);
 }
Example #3
0
        public override bool HandleEvent(ObjectCreatedEvent _)
        {
            if (ParentObject.HasTag("Pet"))
            {
                ParentObject.RequirePart <NoDamage>();
            }

            return(true);
        }