示例#1
0
 public override void OnInitialized()
 {
     Potions.InitializeAvatar(this);
     //get our properties
     if (Mods.Get.Runtime.LoadMod <Potion>(ref Props, "Potion", State.PotionName))
     {
         FoodStuff foodStuff = null;
         if (worlditem.Is <FoodStuff>(out foodStuff))
         {
             foodStuff.SetProps(Props.EdibleProps);
             foodStuff.OnEat += OnEat;
         }
     }
 }