@ -94,6 +94,8 @@ int main (int argc, char *argv[])
if ( ! itm . base . flags . owned )
if ( ! itm . base . flags . owned )
continue ;
continue ;
std : : string name = Items - > getItemClass ( itm . matdesc . itemType ) ;
bool confiscate = false ;
bool confiscate = false ;
bool dump = false ;
bool dump = false ;
@ -102,6 +104,12 @@ int main (int argc, char *argv[])
printf ( " Confiscating a rotten item: \t " ) ;
printf ( " Confiscating a rotten item: \t " ) ;
confiscate = true ;
confiscate = true ;
}
}
else if ( itm . base . flags . on_ground & &
( name = = " food " | | name = = " meat " | | name = = " plant " ) )
{
printf ( " Confiscating a dropped foodstuff: \t " ) ;
confiscate = true ;
}
else if ( itm . wear_level > = wear_dump_level )
else if ( itm . wear_level > = wear_dump_level )
{
{
printf ( " Confiscating and dumping a worn item: \t " ) ;
printf ( " Confiscating and dumping a worn item: \t " ) ;