Esempio n. 1
0
        public Inventory(Character attachedChar)
        {
            attachedCharacter = attachedChar;
            Items = new List<Item>();
            maxItems = gridWidth * gridHeight;

            newItems = new Queue<string>();
        }
Esempio n. 2
0
        public override void Damage(float damage, Character dealer)
        {
            Destroy();

            if (TRandom.Chance(0.1f))
                dealer.Inventory.Items.Add(new HealthPotion());
            else if (TRandom.Chance(0.1f))
                dealer.Inventory.Add(new Lightstone());
            else
                dealer.Inventory.Add(new Poison());

            CellSpawner.DefineCellFromWorldPos(transform.Position, RoomData.Type.Passable);
            base.Damage(damage, dealer);
        }
Esempio n. 3
0
        public virtual void Use(Character user)
        {

        }
Esempio n. 4
0
 public override void Damage(float damage, Character dealer)
 {
     damageFlashAmount = 1;
     Health -= damage;
     base.Damage(damage, dealer);
 }
Esempio n. 5
0
        public override void Damage(float damage, Character dealer)
        {

        }
Esempio n. 6
0
        public virtual void Damage(float damage, Character dealer)
        {

        }