void Start() { player = GameObject.FindGameObjectWithTag(MyConst.Player); inventorySpace = player.GetComponent <InventorySystem>(); randomArmor = new ArmorItems(); randomWeapon = new WeaponItems(); }
public WeaponItems(WeaponItems orig) { SetItemName(orig.GetItemName()); SetItemRarity(orig.GetItemRarity()); SetItemType(orig.GetItemType()); SetWeaponType(orig.GetWeaponType()); SetWeaponAttackspeed(orig.GetWeaponAttackspeed()); SetWeaponDamage(orig.GetWeaponDamage()); }
public void AddWeaponToInventory(WeaponItems randomdrop) { inventorySpace.Add(new WeaponItems(randomdrop)); if (MyConst.almir) { Debug.Log("Random Item has successfully been added!"); } itemLog.text += randomdrop.GetItemName() + "\n"; }
public void CreateWeapon() { newWeapon = new WeaponItems(); //create description newWeapon.ItemDescription = "Temporary Description."; //weapon ID newWeapon.ItemID = Random.Range(1, 101); //stats newWeapon.Strength = Random.Range(1, 10); newWeapon.Mana = Random.Range(1, 5); //weapon type ChooseWeaponType(); //spell effect ID newWeapon.SpellEffectID = Random.Range(1, 101); }
public void AddWeaponToInventory(WeaponItems randomdrop) { inventorySpace.Add(new WeaponItems(randomdrop)); Debug.Log("Random Item has successfully been added!"); }