예제 #1
0
 internal string GetObjectInformation()
 {
     if (Category == Category_.Cooking)
     {
         var str = $"{Name}/{Price}/{Edibility}/Cooking -7/{Name}/{Description}/";
         str += (EdibleIsDrink ? "drink" : "food") + "/";
         if (EdibleBuffs == null)
         {
             EdibleBuffs = new FoodBuffs_();
         }
         str += $"{EdibleBuffs.Farming} {EdibleBuffs.Fishing} {EdibleBuffs.Mining} 0 {EdibleBuffs.Luck} {EdibleBuffs.Foraging} 0 {EdibleBuffs.MaxStamina} {EdibleBuffs.MagnetRadius} {EdibleBuffs.Speed} {EdibleBuffs.Defense} {EdibleBuffs.Attack}/{EdibleBuffs.Duration}";
         return(str);
     }
     else
     {
         var itype = (int)Category;
         return($"{Name}/{Price}/{Edibility}/Basic {itype}/{Name}/{Description}");
     }
 }
예제 #2
0
 internal string GetObjectInformation()
 {
     if (Edibility != SObject.inedible)
     {
         var itype = (int)Category;
         var str   = $"{Name}/{Price}/{Edibility}/" + (Category == Category_.Artifact ? "Arch" : $"{Category} {itype}") + $"/{LocalizedName()}/{LocalizedDescription()}/";
         str += (EdibleIsDrink ? "drink" : "food") + "/";
         if (EdibleBuffs == null)
         {
             EdibleBuffs = new FoodBuffs_();
         }
         str += $"{EdibleBuffs.Farming} {EdibleBuffs.Fishing} {EdibleBuffs.Mining} 0 {EdibleBuffs.Luck} {EdibleBuffs.Foraging} 0 {EdibleBuffs.MaxStamina} {EdibleBuffs.MagnetRadius} {EdibleBuffs.Speed} {EdibleBuffs.Defense} {EdibleBuffs.Attack}/{EdibleBuffs.Duration}";
         return(str);
     }
     else
     {
         var itype = (int)Category;
         return($"{Name}/{Price}/{Edibility}/" + (Category == Category_.Artifact ? "Arch" : $"Basic {itype}") + $"/{LocalizedName()}/{LocalizedDescription()}");
     }
 }