Exemple #1
0
 public static ItemState Potion(
     PotionNameType name,
     PotionExDurationType ex = PotionExDurationType.Base,
     SplashPotionType splash = SplashPotionType.DrinkablePotion)
 {
     return(new ItemState
     {
         Id = (uint)ItemId.Potion,
         MetaValue = (uint)name + (uint)ex + (uint)splash
     });
 }
Exemple #2
0
 public static ItemState Potion(
     PotionEffectType effect,
     PotionTierType tier     = PotionTierType.Base,
     PotionExDurationType ex = PotionExDurationType.Base,
     SplashPotionType splash = SplashPotionType.DrinkablePotion)
 {
     return(new ItemState
     {
         Id = (uint)ItemId.Potion,
         MetaValue = (uint)effect + (uint)tier + (uint)ex + (uint)splash
     });
 }