diff options
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index eebf239bb2..eed9ac927d 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -893,6 +893,20 @@ void set_helmet_random_desc( item_def &item ) item.plus2 = random2(THELM_DESC_MAX_SOFT + 1); } +short get_gloves_desc( const item_def &item ) +{ + ASSERT( item.base_type == OBJ_ARMOUR && item.sub_type == ARM_GLOVES ); + + return item.plus2; +} + +void set_gloves_random_desc( item_def &item ) +{ + ASSERT( item.base_type == OBJ_ARMOUR && item.sub_type == ARM_GLOVES ); + + item.plus2 = coinflip() ? TGLOV_DESC_GLOVES : TGLOV_DESC_GAUNTLETS; +} + // // Ego item functions: // |