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 }); }
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 }); }