Inheritance: BaseBeverage
Beispiel #1
0
        public GiftBag(bool nice)
        {
            Item item = null;

            Hue = Utility.RandomList(32, 77, 2301);

            if (nice)
            {
                Name = "Happy Holidays!";
                DropItem(MakeNewbie(new WristWatch()));
                if (Utility.RandomBool())
                {
                    item = new Cake() { ItemID = 4164 };
                    item.Hue = 432;
                    item.Name = "fruit cake";
                    DropItem(MakeNewbie(item));
                }
                else
                {
                    DropItem(MakeNewbie(new Pizza()));
                }

                if (Utility.RandomBool())
                    DropItem(MakeNewbie(new BeverageBottle(BeverageType.Champagne)));
                else
                    DropItem(MakeNewbie(new BeverageBottle(BeverageType.Eggnog)));

                DropItem(MakeNewbie(new Dates()));

                item = new Goblet();
                item.Name = "a champagne glass";
                item.Hue = Utility.RandomList(77, 34);
                DropItem(MakeNewbie(item));

                /*item = new Goblet();
                item.Name = "a champagne glass";
                item.Hue = 34;
                DropItem(MakeNewbie(item));*/

                DropItem(MakeNewbie(new FireworksWand(100)));

                item = new Item(5359);
                item.Hue = Utility.RandomList(32, 77, 2301);
                item.Name = "Seasons Greetings";
                DropItem(MakeNewbie(item));
            }
            else
            {
                Name = "You were naughty this year!";

                DropItem(MakeNewbie(new Cake() { ItemID = 4164, Name = "spam" })); // spam

                DropItem(MakeNewbie(new Coal()));

                item = new Kindling();
                item.Name = "switches";
                DropItem(item); // not newbied...

                item = new Item(5359);
                item.Hue = Utility.RandomList(32, 77, 2301);
                item.Name = "Maybe next year you will get a nicer gift.";
                DropItem(MakeNewbie(item));
            }
        }
Beispiel #2
0
        public GiftBag( bool nice )
        {
            Item item = null;

            Hue = Utility.RandomList( 32, 64, 2301 );

            if ( nice )
            {
                Name = "Happy Holidays!";
                DropItem( MakeNewbie( new WristWatch() ) );
                if ( Utility.RandomBool() )
                {
                    item = new Food( 4164 );
                    item.Hue = 432;
                    item.Name = "fruit cake";
                    DropItem( MakeNewbie( item ) );
                }
                else
                {
                    DropItem( MakeNewbie( new Pizza() ) );
                }

                if ( Utility.RandomBool() )
                    DropItem( MakeNewbie( new BeverageBottle( BeverageType.Champagne ) ) );
                else
                    DropItem( MakeNewbie( new BeverageBottle( BeverageType.EggNog ) ) );

                switch ( Utility.Random( 7 ) )
                {
                    default:
                    case 0:
                        DropItem( MakeNewbie( new Apple() ) );
                        break;
                    case 1:
                        DropItem( MakeNewbie( new Pear() ) );
                        break;
                    case 2:
                        DropItem( MakeNewbie( new Bananas() ) );
                        break;
                    case 3:
                        DropItem( MakeNewbie( new Dates() ) );
                        break;
                    case 4:
                        DropItem( MakeNewbie( new Coconut() ) );
                        break;
                    case 5:
                        DropItem( MakeNewbie( new Peach() ) );
                        break;
                    case 6:
                        DropItem( MakeNewbie( new Grapes() ) );
                        break;
                }

                item = new Goblet();
                item.Name = "a champagne glass";
                item.Hue = 71;
                DropItem( MakeNewbie( item ) );

                item = new Goblet();
                item.Name = "a champagne glass";
                item.Hue = 34;
                DropItem( MakeNewbie( item ) );

                DropItem( MakeNewbie( new FireworksWand( 100 ) ) );

                item = new BaseItem( 5359 );
                item.Hue = Utility.RandomList( 32, 64, 2301 );
                item.Name = "Seasons Greetings";
                DropItem( MakeNewbie( item ) );
            }
            else
            {
                Name = "You were naughty this year!";

                DropItem( MakeNewbie( new Food( 4164 ) ) ); // spam

                DropItem( MakeNewbie( new Coal() ) );

                item = new Kindling();
                item.Name = "switches";
                DropItem( item ); // not newbied...

                item = new BaseItem( 5359 );
                item.Hue = Utility.RandomList( 32, 64, 2301 );
                item.Name = "Maybe next year you will get a nicer gift.";
                DropItem( MakeNewbie( item ) );
            }
        }