Give the faerie dragon armour a small chance of non-randart properties.
authorAdam Borowski <kilobyte@angband.pl>
Thu, 16 Aug 2012 10:05:14 +0000 (12:05 +0200)
committerAdam Borowski <kilobyte@angband.pl>
Thu, 16 Aug 2012 10:05:14 +0000 (12:05 +0200)
These are:
* 1/20 chance for clarity
* 1/20 chance for +1..+10 MP
* 1/21 chance for -10..+10 HP

crawl-ref/source/artefact.cc

index 81a7404..d6b0408 100644 (file)
@@ -1956,6 +1956,13 @@ static void _make_faerie_armour(item_def &item)
             continue;
         }
 
+        if (one_chance_in(20))
+            artefact_set_property(doodad, ARTP_CLARITY, 1);
+        if (one_chance_in(20))
+            artefact_set_property(doodad, ARTP_MAGICAL_POWER, 1 + random2(10));
+        if (one_chance_in(20))
+            artefact_set_property(doodad, ARTP_HP, random2(21) - 10);
+
         break;
     }
     ASSERT(is_artefact(doodad));