예제 #1
0
 public string HealSundew(Sundew sundew, Sun sun)
 {
     if (sun.light)
     {
         sundew.hp     += 20;
         sundew.damage += 4;
         hp            += 5;
         s              = sundew.AreLife();
         s             += AreLife();
         s             += "То чувство, когда подсолнух умеет лечить, а ты - нет...\n";
         return(s);
     }
     else
     {
         sundew.hp += 5;
         sundew.damage++;
         hp -= 5;
         s   = sundew.AreLife();
         s  += AreLife();
         s  += "Жертва ночи спасает друзей, это так мило:3\n";
         return(s);
     }
 }
예제 #2
0
파일: Sunflower.cs 프로젝트: WhyLesS/Rock
 public string HealSundew(Sundew sundew, Sun sun)//здоровье востанавливает у росянки
 {
     if (sun.light)
     {
         sundew.HP     += 20;
         sundew.damage += 4;
         HP            += 5;
         s              = sundew.AreLife();
         s             += AreLife();
         s             += "То чувство, когда подсолнух умеет лечить, а ты - нет...\n";
         return(s);
     }
     else
     {
         sundew.HP += 5;
         sundew.damage++;
         HP -= 5;
         s   = sundew.AreLife();
         s  += AreLife();
         s  += "Жертва ночи спасает друзей, это так мило:3\n";
         return(s);
     }
 }