예제 #1
0
파일: Location.cs 프로젝트: RolfLobo/RPG
 public Location(int id, string Name, string Des, Item itemrequiredtoenter = null, Mission availablemission = null, Creature creaturepresent = null)
 {
     ID = id;
     name = Name;
     des = Des;
     ItemRequiredToEnter = itemrequiredtoenter;
     AvailableMission = availablemission;
     CreaturePresent = creaturepresent;
 }
예제 #2
0
파일: World.cs 프로젝트: RolfLobo/RPG
        private static void PopulateCreatures()
        {
            Creature skeever = new Creature(CREATURE_ID_SKEEVER, "Skeever", 5, 3, 10, 3, 3);
            skeever.LootTable.Add(new LootItem(ItemByID(ITEM_ID_SKEEVER_TAIL), 75, false));
            skeever.LootTable.Add(new LootItem(ItemByID(ITEM_ID_PIECE_OF_FUR), 75, true));

            Creature Deathhound = new Creature(CREATURE_ID_DEATH_HOUND, "Death Hound", 5, 3, 10, 3, 3);
            Deathhound.LootTable.Add(new LootItem(ItemByID(ITEM_ID_DEATH_HOUND_TOOTH), 75, false));
            Deathhound.LootTable.Add(new LootItem(ItemByID(ITEM_ID_DEATH_HOUND_FUR), 75, true));

            Creature dragon = new Creature(CREATURE_ID_DRAGON, "Dragon", 20, 5, 40, 10, 10);
            dragon.LootTable.Add(new LootItem(ItemByID(ITEM_ID_DRAGON_BLOOD), 75, true));
            dragon.LootTable.Add(new LootItem(ItemByID(ITEM_ID_DRAGON_SCALE), 25, false));

            Creatures.Add(skeever);
            Creatures.Add(Deathhound);
            Creatures.Add(dragon);
        }