Example #1
0
 public static void SubtractFromCountOfPotion(Potion.Type t, int i)
 {
     PotionSelector.PotionElement pe = PotionSelector.GetPotionElementOfType(t);
     pe.SetCount(pe.GetCount() - i);
 }
Example #2
0
 public static PotionElement GetPotionElementOfType(Potion.Type t)
 {
     return((PotionElement)instance.mappedPotions[t]);
 }
Example #3
0
 public static void AddToCountOfPotion(Potion.Type t, int i)
 {
     PotionSelector.PotionElement pe = PotionSelector.GetPotionElementOfType(t);
     pe.SetCount(pe.GetCount() + i);
 }
Example #4
0
 public static void SetCountOfPotion(Potion.Type t, int i)
 {
     PotionSelector.GetPotionElementOfType(t).SetCount(i);
 }
Example #5
0
 public static int GetPotionAmount(Potion.Type t)
 {
     PotionSelector.PotionElement pe = PotionSelector.GetPotionElementOfType(t);
     return(pe.GetCount());
 }
Example #6
0
 public static Sprite GetPotionSprite(Potion.Type t)
 {
     return(PotionSelector.GetPotionElementOfType(t).sprite);
 }
Example #7
0
 public static GameObject GetPotionPrefab(Potion.Type t)
 {
     return(PotionSelector.GetPotionElementOfType(t).prefab);
 }