summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-28 06:45:56 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-28 06:45:56 +0000
commit05c0b4921ef545d95cd791b923012b5e7a74ce27 (patch)
tree38f5d89591da86769b38033a5fbdd70e859b5dd4 /crawl-ref
parent1dba47b22e2f068f767b0c01537d99594e569343 (diff)
downloadcrawl-ref-05c0b4921ef545d95cd791b923012b5e7a74ce27.tar.gz
crawl-ref-05c0b4921ef545d95cd791b923012b5e7a74ce27.zip
1601622: dissecting a yak/sheep can produce an animal skin.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@514 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/delay.cc11
-rw-r--r--crawl-ref/source/misc.cc4
-rw-r--r--crawl-ref/source/monstuff.cc2
3 files changed, 10 insertions, 7 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 805a2ffff4..d939d6890d 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -490,13 +490,10 @@ void handle_delay( void )
break;
case DELAY_BUTCHER:
- strcpy( info, "You finish " );
- strcat( info, (you.species == SP_TROLL
- || you.species == SP_GHOUL) ? "ripping"
- : "chopping" );
-
- strcat( info, " the corpse into pieces." );
- mpr( info );
+ snprintf(info, INFO_SIZE, "You finish %s the corpse into pieces.",
+ (you.species == SP_TROLL ||
+ you.species == SP_GHOUL) ? "ripping" : "chopping" );
+ mpr(info);
turn_corpse_into_chunks( mitm[ delay.parm1 ] );
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 95174bb522..bdf2f3929b 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -127,6 +127,10 @@ void turn_corpse_into_chunks( item_def &item )
case MONS_SWAMP_DRAGON:
mitm[o].sub_type = ARM_SWAMP_DRAGON_HIDE;
break;
+ case MONS_SHEEP:
+ case MONS_YAK:
+ mitm[o].sub_type = ARM_ANIMAL_SKIN;
+ break;
default:
// future implementation {dlb}
mitm[o].sub_type = ARM_ANIMAL_SKIN;
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 170f5bcef4..f5e832f4ba 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -5156,6 +5156,8 @@ bool monster_descriptor(int which_class, unsigned char which_descriptor)
case MONS_STORM_DRAGON:
case MONS_GOLDEN_DRAGON:
case MONS_SWAMP_DRAGON:
+ case MONS_YAK:
+ case MONS_SHEEP:
return (true);
default:
return (false);