Add two new Ru sacrifices: resistance and eye
[crawl.git] / crawl-ref / source / sacrifice-data.h
index 516e0fd..48b8f26 100644 (file)
@@ -141,7 +141,7 @@ static const sacrifice_def sac_data[] =
   30,
   SK_ARMOUR,
   nullptr,
-  []() { return you_can_wear(EQ_BODY_ARMOUR); },
+  []() { return you_can_wear(EQ_BODY_ARMOUR) != MB_FALSE; },
 },
 
 { ABIL_RU_SACRIFICE_HAND, MUT_MISSING_HAND,
@@ -154,14 +154,14 @@ static const sacrifice_def sac_data[] =
   nullptr,
 },
 
-{ ABIL_RU_SACRIFICE_EXPERIENCE, MUT_NON_MUTATION,
+{ ABIL_RU_SACRIFICE_EXPERIENCE, MUT_INEXPERIENCED,
   "sacrifice your experiences",
   "sacrificed experience",
 
   28,
   SK_NONE,
   nullptr,
-  nullptr,
+  []() { return you.experience_level > RU_SAC_XP_LEVELS; }
 },
 
 { ABIL_RU_SACRIFICE_SKILL, MUT_UNSKILLED,
@@ -173,4 +173,24 @@ static const sacrifice_def sac_data[] =
   nullptr,
   nullptr,
 },
+
+{ ABIL_RU_SACRIFICE_EYE, MUT_MISSING_EYE,
+  "sacrifice an eye",
+  "sacrificed an eye",
+
+  45,
+  SK_NONE,
+  nullptr,
+  nullptr,
+},
+
+{ ABIL_RU_SACRIFICE_RESISTANCE, MUT_TEMPERATURE_SENSITIVITY,
+  "sacrifice your resistance to extreme temperatures",
+  "sacrificed resistance",
+
+  70,
+  SK_NONE,
+  nullptr,
+  nullptr,
+},
 };