Esempio n. 1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (m_Item.Deleted)
                {
                    return;
                }

                if (targeted is SackFlourOpen)
                {
                    m_Item.Delete();
                    ((SackFlourOpen)targeted).Quantity--;

                    from.AddToBackpack(new CakeMix());
                }
                else if (CookableFood.IsHeatSource(targeted))
                {
                    from.PlaySound(0x225);
                    m_Item.Consume();
                    CookableFood.InternalTarget.InternalTimer t = new CookableFood.InternalTarget.InternalTimer(from, targeted as IPoint3D, from.Map, m_Item);
                    t.Start();
                }
                else if (targeted is JarHoney)
                {
                    m_Item.Consume();
                    ((JarHoney)targeted).Delete();

                    from.AddToBackpack(new CookieMix());
                }
            }
Esempio n. 2
0
            protected override void OnTarget( Mobile from, object targeted )
            {
                if ( m_Item.Deleted ) return;

                if ( targeted is SackFlourOpen )
                {
                    m_Item.Delete();
                    ((SackFlourOpen)targeted).Quantity--;

                    from.AddToBackpack( new CakeMix() );
                }
                else if ( CookableFood.IsHeatSource( targeted ) )
                {
                    from.PlaySound( 0x225 );
                    m_Item.Consume();
                    CookableFood.InternalTarget.InternalTimer t = new CookableFood.InternalTarget.InternalTimer(from, targeted as IPoint3D, from.Map, m_Item);
                    t.Start();
                }
                else if (targeted is JarHoney)
                {
                    m_Item.Consume();
                    ((JarHoney)targeted).Delete();

                    from.AddToBackpack(new CookieMix());
                }
            }
Esempio n. 3
0
            protected override void OnTarget( Mobile from, object targeted )
            {
                if ( m_Item.Deleted ) return;

                if (CookableFood.IsHeatSource(targeted))
                {
                    from.PlaySound(0x225);

                    m_Item.Consume();
                    CookableFood.InternalTarget.InternalTimer t = new CookableFood.InternalTarget.InternalTimer(from, targeted as IPoint3D, from.Map, m_Item);
                    t.Start();
                }
                else if ( targeted is Eggs )
                {
                    m_Item.Delete();

                    ((Eggs)targeted).Consume();

                    from.AddToBackpack( new UnbakedQuiche() );
                }
                else if (targeted is JarHoney)
                {
                    m_Item.Delete();
                    ((JarHoney)targeted).Consume();

                    from.AddToBackpack(new SweetDough());
                }
                /*else if ( targeted is CheeseWheel )
                {
                    m_Item.Delete();

                    ((CheeseWheel)targeted).Consume();

                    from.AddToBackpack( new CheesePizza() );
                }
                else if ( targeted is Sausage )
                {
                    m_Item.Delete();

                    ((Sausage)targeted).Consume();

                    from.AddToBackpack( new SausagePizza() );
                }*/
                else if ( targeted is Apple )
                {
                    m_Item.Delete();

                    ((Apple)targeted).Consume();

                    from.AddToBackpack( new UnbakedApplePie() );
                }

                else if ( targeted is Peach )
                {
                    m_Item.Delete();

                    ((Peach)targeted).Consume();

                    from.AddToBackpack( new UnbakedPeachCobbler() );
                }
            }
Esempio n. 4
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (m_Item.Deleted)
                {
                    return;
                }

                if (CookableFood.IsHeatSource(targeted))
                {
                    from.PlaySound(0x225);

                    m_Item.Consume();
                    CookableFood.InternalTarget.InternalTimer t = new CookableFood.InternalTarget.InternalTimer(from, targeted as IPoint3D, from.Map, m_Item);
                    t.Start();
                }
                else if (targeted is Eggs)
                {
                    m_Item.Delete();

                    ((Eggs)targeted).Consume();

                    from.AddToBackpack(new UnbakedQuiche());
                }
                else if (targeted is JarHoney)
                {
                    m_Item.Delete();
                    ((JarHoney)targeted).Consume();

                    from.AddToBackpack(new SweetDough());
                }
                else if (targeted is CookedBird)
                {
                    m_Item.Delete();

                    ((CookedBird)targeted).Consume();

                    from.AddToBackpack(new UnbakedMeatPie());
                }
                else if (targeted is Ham)
                {
                    m_Item.Delete();

                    ((Ham)targeted).Consume();

                    from.AddToBackpack(new UnbakedMeatPie());
                }
                else if (targeted is Pear)
                {
                    m_Item.Delete();

                    ((Pear)targeted).Consume();

                    from.AddToBackpack(new UnbakedFruitPie());
                }
                else if (targeted is CheeseWheel)
                {
                    m_Item.Delete();

                    ((CheeseWheel)targeted).Consume();

                    from.AddToBackpack(new UncookedCheesePizza());
                }
                else if (targeted is HumanJerky)
                {
                    m_Item.Delete();

                    ((HumanJerky)targeted).Consume();

                    from.AddToBackpack(new UnbakedMeatPie());
                }
                else if (targeted is FishSteak)
                {
                    m_Item.Delete();

                    ((FishSteak)targeted).Consume();

                    from.AddToBackpack(new UnbakedMeatPie());
                }
                else if (targeted is Pumpkin)
                {
                    m_Item.Delete();

                    ((Pumpkin)targeted).Consume();

                    from.AddToBackpack(new UnbakedPumpkinPie());
                }
                else if (targeted is Sausage)
                {
                    m_Item.Delete();

                    ((Sausage)targeted).Consume();

                    from.AddToBackpack(new UncookedSausagePizza());
                }
                else if (targeted is Apple)
                {
                    m_Item.Delete();

                    ((Apple)targeted).Consume();

                    from.AddToBackpack(new UnbakedApplePie());
                }

                else if (targeted is Peach)
                {
                    m_Item.Delete();

                    ((Peach)targeted).Consume();

                    from.AddToBackpack(new UnbakedPeachCobbler());
                }
            }
Esempio n. 5
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (m_Item.Deleted)
                {
                    return;
                }

                if (CookableFood.IsHeatSource(targeted))
                {
                    from.PlaySound(0x225);

                    m_Item.Consume();
                    CookableFood.InternalTarget.InternalTimer t = new CookableFood.InternalTarget.InternalTimer(from, targeted as IPoint3D, from.Map, m_Item);
                    t.Start();
                }
                else if (targeted is Eggs)
                {
                    m_Item.Delete();

                    ((Eggs)targeted).Consume();

                    from.AddToBackpack(new UnbakedQuiche());
                }
                else if (targeted is JarHoney)
                {
                    m_Item.Delete();
                    ((JarHoney)targeted).Consume();

                    from.AddToBackpack(new SweetDough());
                }

                /*else if ( targeted is CheeseWheel )
                 * {
                 *      m_Item.Delete();
                 *
                 *      ((CheeseWheel)targeted).Consume();
                 *
                 *      from.AddToBackpack( new CheesePizza() );
                 * }
                 * else if ( targeted is Sausage )
                 * {
                 *      m_Item.Delete();
                 *
                 *      ((Sausage)targeted).Consume();
                 *
                 *      from.AddToBackpack( new SausagePizza() );
                 * }*/
                else if (targeted is Apple)
                {
                    m_Item.Delete();

                    ((Apple)targeted).Consume();

                    from.AddToBackpack(new UnbakedApplePie());
                }

                else if (targeted is Peach)
                {
                    m_Item.Delete();

                    ((Peach)targeted).Consume();

                    from.AddToBackpack(new UnbakedPeachCobbler());
                }
            }