Beispiel #1
0
 public HealPotionItem(HealPotionItem.Meta meta) : base(meta)
 {
 }
Beispiel #2
0
    public void Init()
    {
        {
            HealPotionItem.Meta meta = new HealPotionItem.Meta();
            meta.expendable_item_type = ExpendableItem.ExpendableItemType.Potion;
            meta.type        = Item.Type.Expendable;
            meta.id          = "ITEM_POTION_HEALING";
            meta.name        = "Healing Potion";
            meta.price       = 100;
            meta.sprite_path = "Item/item_potion_red";
            meta.description = "An elixir that will instantly return you to full health and cure poison.";
            item_metas.Add(meta);
            ItemManager.Instance.AddItemMeta(meta);
        }

        {
            StranthPotionItem.Meta meta = new StranthPotionItem.Meta();
            meta.expendable_item_type = ExpendableItem.ExpendableItemType.Potion;
            meta.type        = Item.Type.Expendable;
            meta.id          = "ITEM_POTION_STRENGTH";
            meta.name        = "Strength Potion";
            meta.price       = 100;
            meta.sprite_path = "Item/item_potion_yellow";
            meta.description = "An elixir that will permenently increase strength.";
            item_metas.Add(meta);
            ItemManager.Instance.AddItemMeta(meta);
        }

        {
            SpeedPotionItem.Meta meta = new SpeedPotionItem.Meta();
            meta.expendable_item_type = ExpendableItem.ExpendableItemType.Potion;
            meta.type        = Item.Type.Expendable;
            meta.id          = "ITEM_POTION_SPEED";
            meta.name        = "Speed Potion";
            meta.price       = 100;
            meta.sprite_path = "Item/item_potion_marin";
            meta.description = "An elixir that will permenently increase speed.";
            item_metas.Add(meta);
            ItemManager.Instance.AddItemMeta(meta);
        }

        {
            MapRevealScrollItem.Meta meta = new MapRevealScrollItem.Meta();
            meta.expendable_item_type = ExpendableItem.ExpendableItemType.Scroll;
            meta.type        = Item.Type.Expendable;
            meta.id          = "ITEM_SCROLL_REVEAL_MAP";
            meta.name        = "scroll of map";
            meta.price       = 100;
            meta.sprite_path = "Item/item_scroll_map";
            meta.description = "reveal map.";
            item_metas.Add(meta);
            ItemManager.Instance.AddItemMeta(meta);
        }

        {
            MonsterRevealScrollItem.Meta meta = new MonsterRevealScrollItem.Meta();
            meta.expendable_item_type = ExpendableItem.ExpendableItemType.Scroll;
            meta.type        = Item.Type.Expendable;
            meta.id          = "ITEM_SCROLL_REVEAL_MONSTER";
            meta.name        = "scroll of monster";
            meta.price       = 100;
            meta.sprite_path = "Item/item_scroll_monster";
            meta.description = "detect monster";
            item_metas.Add(meta);
            ItemManager.Instance.AddItemMeta(meta);
        }

        {
            TreasureRevealScrollItem.Meta meta = new TreasureRevealScrollItem.Meta();
            meta.expendable_item_type = ExpendableItem.ExpendableItemType.Scroll;
            meta.type        = Item.Type.Expendable;
            meta.id          = "ITEM_SCROLL_REVEAL_TREASURE";
            meta.name        = "scroll of treasure";
            meta.price       = 100;
            meta.sprite_path = "Item/item_scroll_treasure";
            meta.description = "detect treasure";
            item_metas.Add(meta);
            ItemManager.Instance.AddItemMeta(meta);
        }
    }