Fix cleanowned plugin.

develop
Petr Mrázek 2011-11-03 02:40:37 +01:00
parent 4df380eb91
commit dc629bc251
1 changed files with 15 additions and 7 deletions

@ -148,19 +148,27 @@ DFhackCExport command_result df_cleanowned (Core * c, vector <string> & paramete
type == Items::FOOD type == Items::FOOD
) )
{ {
c->con.print("Confiscating a dropped foodstuff/pet vermin: \t");
confiscate = true; confiscate = true;
if(dump_scattered)
{
c->con.print("Dumping a dropped item: \t");
dump = true;
}
else
{
c->con.print("Confiscating a dropped item: \t");
} }
} }
else if (item->getWear() >= wear_dump_level) else if(dump_scattered)
{ {
c->con.print("Confiscating and dumping a worn item: \t"); c->con.print("Confiscating and dumping litter: \t");
confiscate = true; confiscate = true;
dump = true; dump = true;
} }
else if (dump_scattered && item->flags.on_ground) }
else if (item->getWear() >= wear_dump_level)
{ {
c->con.print("Confiscating and dumping litter: \t"); c->con.print("Confiscating and dumping a worn item: \t");
confiscate = true; confiscate = true;
dump = true; dump = true;
} }