Advertisement
Guest User

Item Database

a guest
Jul 31st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.70 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4.  
  5. public class ItemDatabase : MonoBehaviour
  6. {
  7.  
  8.     // ItemID
  9.     // 0-99:        Armor
  10.     // 100-199:     Weapons
  11.     // 200-299:     Consumables
  12.     // 300-399:     Crafting Materials
  13.     // 400-499:     Quest Items
  14.  
  15.     public List<Item> items = new List<Item>();
  16.  
  17.     void Awake()
  18.     {
  19.         items.Add(new Armor(0, "Leather Shirt", "A shirt made from leather", Item.ItemType.Armor, Item.Rarity.Uncommon, 50, "Flavor", 12, 25, 0));
  20.  
  21.         items.Add(new Weapon(1, "Stone Dagger of Leech", "A dagger with a sharp stone as a blade", Item.ItemType.Weapon, Item.Rarity.Exclusive, 100, "Stabbing foes with this dagger " +
  22.                     "feels oddly satisfying", 4, 6, 0, 25, 10, 5, 7, 0, 0, 1.5f));
  23.         items.Add(new Consumable(2, "Minor Potion of Health", "A potion that replenishes health", Item.ItemType.Consumable, Item.Rarity.Uncommon, 20, "When young alchemists start venturing " +
  24.         "into the field, the health potions are usually the first brew to attempt to master", 10, 0));
  25.         items.Add(new Consumable(3, "Minor Potion of Mana", "A potion that replenishes Mana", Item.ItemType.Consumable, Item.Rarity.Uncommon, 20, "Mana potions are, like health potions, easy " +
  26.         "to attempt, but hard to master", 0, 10));
  27.         items.Add(new CraftingMaterial(4, "Log of Wood", "A heavy wooden log", Item.ItemType.CraftingMaterial, Item.Rarity.Common, 20, "It's heavy!"));
  28.         items.Add(new CraftingMaterial(5, "Sharp Rock", "A rock with a sharp edge", Item.ItemType.CraftingMaterial, Item.Rarity.Common, 2, "Don't cut yourself!"));
  29.         items.Add(new CraftingMaterial(6, "Small Rock", "A small rock", Item.ItemType.CraftingMaterial, Item.Rarity.Common, 1, "Holds potential!"));
  30.         items.Add(new Jewelry(7, "Amulet of Kings", "Former property of King Aldorin", Item.ItemType.Jewelry, Item.Rarity.Exclusive, 1500, "King Aldorin was a kind, but just king. " +
  31.             "He was liked by his people, and his power lingers in this amulet", 75, 20, 30, 30, 20));
  32.         items.Add(new Jewelry(8, "Jeroma's Necklace of Adventure", "Wear this around your neck", Item.ItemType.Jewelry,
  33.             Item.Rarity.Rare, 100, "Jeroma was a very successful sailor. He sailed the seas many a time, and often returned with interesting goods", 10, 5, 20, 0, 10));
  34.         items.Add(new CraftingMaterial(9, "Wooden Stick", "A stick made of wood", Item.ItemType.CraftingMaterial, Item.Rarity.Common, 5, ""));
  35.         items.Add(new CraftingMaterial(10, "Sharp Stick", "A sharp stick, with a pointy edge", Item.ItemType.CraftingMaterial, Item.Rarity.Common, 5, ""));
  36.         items.Add(new Consumable(11, "Golden Banana", "Holy s***! A Golden Banana!", Item.ItemType.Consumable, Item.Rarity.Exclusive, 1000, "Well, this is not something you see everyday!",
  37.             100, 100));
  38.         items.Add(new Armor(12, "Leather Hat", "A hat made from leather", Item.ItemType.Armor, Item.Rarity.Uncommon, 25, "A hat is a hat, even if it is made of leather... and smells",
  39.             4, 10, 0));
  40.         items.Add(new CraftingMaterial(13, "Lockbox", "Holds a random item", Item.ItemType.CraftingMaterial, Item.Rarity.Rare, 100, ""));
  41.         items.Add(new CraftingMaterial(14, "Open Lockbox", "Can hold items", Item.ItemType.CraftingMaterial, Item.Rarity.Rare, 20, ""));
  42.         items.Add(new Armor(15, "Wooden Shield", "A shield made of wood", Item.ItemType.Armor, Item.Rarity.Uncommon, 23, "Shields are typical tools for warriors", 6, 25, 0));
  43.         items.Add(new CraftingMaterial(16, "Gold Bar", "A chunk of gold", Item.ItemType.CraftingMaterial, Item.Rarity.Rare, 500, "GOLD!!!!!!"));
  44.         items.Add(new SkillBook(17, "Skill Book: Fire Ball", "This book teaches you a skill", Item.ItemType.SkillBook, Item.Rarity.Rare, 20, "When scholars are unavailable, books can serve as valuable teachers", "Fire Ball", 35));
  45.         items.Add(new SkillBook(18, "Skill Book: Build Campfire", "This book teaches you how to build a campfire", Item.ItemType.SkillBook, Item.Rarity.Uncommon, 20, "When scholars are unavailable, books can serve as valuable teachers", "Build Campfire", 10));
  46.         items.Add(new SkillBook(19, "Skill Book: Lightning Strike", "This book teaches you a skill", Item.ItemType.SkillBook, Item.Rarity.Exclusive, 20, "When scholars are unavailable, books can serve as valuable teachers", "Lightning Strike", 100));
  47.         items.Add(new StatBook(20, "Stat Book: Strength", "This book increases your Strength", Item.ItemType.StatBook, Item.Rarity.Rare, 30, "You should read more...", 0, 10));
  48.         items.Add(new Consumable(21, "Clam Meat", "Meat extracted from a clam", Item.ItemType.Consumable, Item.Rarity.Uncommon, 20, "Seafood is good for you", 10, 0));
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement