You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
878 B
34 lines
878 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ItemWeapon : Item
|
|
{
|
|
public readonly int Attack;
|
|
public readonly int Damage;
|
|
public ItemWeapon(string name, string iconName, int pbasePrice,int pAttack, int pDamage, string descr = "", ItemRarity rarity = ItemRarity.Common) : base(name, iconName, pbasePrice, descr,rarity)
|
|
{
|
|
Attack = pAttack;
|
|
Damage = pDamage;
|
|
}
|
|
|
|
public override ItemType GetItemType()
|
|
{
|
|
return ItemType.Weapon;
|
|
}
|
|
|
|
public override string GetStats()
|
|
{
|
|
return "Attack: " + Attack + "\tDamage: " + Damage; // Empty placeholder
|
|
}
|
|
|
|
public override void Upgrade(float upgradeFactor)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public override int GetUpgradeCosts(float upgradeFactor)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|