Example #1
0
 public void DelStats(Itemscript item, Player player)
 {
     player.Damage    -= item.Damage;
     player.Defence   -= item.Defence;
     player.HealthMax -= item.Health;
     player.Manamax   -= item.Mana;
     player.Tenacity  -= item.Tenacity;
     player.Sagacity  -= item.Sagacity;
 }
Example #2
0
 public void AddSats(Itemscript item, Player player)
 {
     player.Damage    += item.Damage;
     player.Defence   += item.Defence;
     player.HealthMax += item.Health;
     player.Manamax   += item.Mana;
     player.Tenacity  += item.Tenacity;
     player.Sagacity  += item.Sagacity;
 }
Example #3
0
 public bool Add(Itemscript item, Player player)
 {
     if (items.Count >= player.GetMaxInv())
     {
         Debug.Log("MON SAC EST FAIT (Plein)");
         return(false);
     }
     items.Add(item);
     AddSats(item, player);  //Ceci est temporaire, le but sera d'utiliser Equiped par la suite
     if (onItemChangeCallback != null)
     {
         onItemChangeCallback.Invoke();
     }
     return(true);
 }
Example #4
0
 public void Remove(Itemscript item, Player player)
 {
     DelStats(item, player);
     items.Remove(item);
 }
Example #5
0
 public void Equiped(Itemscript item, Player player)
 {
     AddSats(item, player);
 }