public ItemMedicine(ItemModel model)
            : base(model)
        {
            if (!(model is ItemMedicineModel))
                throw new ArgumentException("model is not a MedecineModel");

            ItemMedicineModel m = model as ItemMedicineModel;
            this.Healing = m.Healing;
            this.StaminaBoost = m.StaminaBoost;
            this.SleepBoost = m.SleepBoost;
            this.InfectionCure = m.InfectionCure;
            this.SanityCure = m.SanityCure;
        }
Example #2
0
 public ItemMedicine(ItemMedicineModel model) : base(model)
 {
 }