Example #1
0
 public Location(int id, string name, string description, Item itemRequiredToEnter = null, Quest questAvailableHere = null, Gremlin gremlinHere = null)
 {
     ID                  = id;
     Name                = name;
     Description         = description;
     ItemRequiredToEnter = itemRequiredToEnter;
     QuestAvailableHere  = questAvailableHere;
     GremlinLivingHere   = gremlinHere;
 }
Example #2
0
        private static void PopulateGremlins()
        {
            Gremlin gnome = new Gremlin(MONSTER_ID_GNOME, "Nefarious Garden Gnome", 5, 3, 10, 3, 3);

            gnome.TreasureChest.Add(new Treasure(ItemByID(ITEM_ID_SHOE), 75, false));
            gnome.TreasureChest.Add(new Treasure(ItemByID(ITEM_ID_RING), 75, true));

            Gremlin dragon = new Gremlin(MONSTER_ID_DRAGON, "Sly Dragon", 5, 3, 10, 3, 3);

            dragon.TreasureChest.Add(new Treasure(ItemByID(ITEM_ID_DRAGON_SCALE), 75, false));
            dragon.TreasureChest.Add(new Treasure(ItemByID(ITEM_ID_DRAGON_TOOTH), 75, true));

            Gremlin shrek = new Gremlin(MONSTER_ID_SHREK, "Shrek", 20, 5, 50, 10, 10);

            shrek.TreasureChest.Add(new Treasure(ItemByID(ITEM_ID_BEJEWELED_EYE), 75, true));
            shrek.TreasureChest.Add(new Treasure(ItemByID(ITEM_ID_GOLD_TOOTH), 25, false));

            Gremlins.Add(gnome);
            Gremlins.Add(dragon);
            Gremlins.Add(shrek);
        }