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