protected override void OnTarget(Mobile from, object targeted) { if (m_Item.Deleted) { return; } /*if ( targeted is Item && !((Item)targeted).IsStandardLoot() ) * { * from.SendMessage("Those are for babies"); * } * else */if (targeted is IBaby) { IBaby obj = (IBaby)targeted; if (obj.Diaper(from, m_Item)) { from.PlaySound(0x57); } m_Item.Delete(); } else { from.SendMessage("Those are for babies"); } }
public void AddBaby(IBaby baby) { _babies.Add(baby); }