public override Boolean Activate()
        {
            var     eventTextList         = new List <String>();
            Boolean successfullyActivated = false;

            if (!IsCleared())
            {
                var item = GetProgressBasedRandomItem(Game);
                if (getItemOE == null)
                {
                    getItemOE = new GetItemOE(item, string.Format("You found the {0}!", item.Name), "Your inventory is full!", "Cleared (is this shown?)");
                }
                successfullyActivated = getItemOE.Activate();

                if (successfullyActivated)
                {
                    ClearEvent();
                }
            }
            else
            {
                eventTextList.Add(clearText);
                PopupHandler.DisplayMessage(eventTextList.ToArray());
            }

            return(successfullyActivated);
        }
Exemple #2
0
        public override void Initialize()
        {
            Item item = new BasicLaserWeapon(Game, ItemVariety.High);

            sprite   = spriteSheet.GetSubSprite(new Rectangle(724, 1130, 54, 55));
            position = new Vector2(110000, 102000);
            name     = "Lonely Asteroid";

            base.Initialize();

            overworldEvent = new GetItemOE(item,
                                           String.Format("Holy crap! A weapon is just floating in space!\n\nYou found {0}!", item.Name),
                                           "..But unfortunately, your inventory is full.",
                                           "..no more weapons here.");
        }