Пример #1
0
 void Start()
 {
     player         = GameObject.FindGameObjectWithTag(MyConst.Player);
     inventorySpace = player.GetComponent <InventorySystem>();
     randomArmor    = new ArmorItems();
     randomWeapon   = new WeaponItems();
 }
Пример #2
0
 public WeaponItems(WeaponItems orig)
 {
     SetItemName(orig.GetItemName());
     SetItemRarity(orig.GetItemRarity());
     SetItemType(orig.GetItemType());
     SetWeaponType(orig.GetWeaponType());
     SetWeaponAttackspeed(orig.GetWeaponAttackspeed());
     SetWeaponDamage(orig.GetWeaponDamage());
 }
Пример #3
0
 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";
 }
Пример #4
0
 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);
 }
Пример #5
0
 public void AddWeaponToInventory(WeaponItems randomdrop)
 {
     inventorySpace.Add(new WeaponItems(randomdrop));
     Debug.Log("Random Item has successfully been added!");
 }