Add bugfix for #6420

develop
Quietust 2014-01-26 18:55:52 -06:00
parent 5c28d7eaf6
commit 56f935aea6
1 changed files with 14 additions and 2 deletions

@ -984,7 +984,8 @@ command_result df_strangemood (color_ostream &out, vector <string> & parameters)
item->item_type = item_type::BAR; item->item_type = item_type::BAR;
item->mat_type = filter->getMaterial(); item->mat_type = filter->getMaterial();
item->mat_index = filter->getMaterialIndex(); item->mat_index = filter->getMaterialIndex();
item->quantity = base_item_count; item->quantity = base_item_count * 150;
item->min_dimension = 150;
} }
else else
{ {
@ -1005,7 +1006,8 @@ command_result df_strangemood (color_ostream &out, vector <string> & parameters)
} }
if (mats.size()) if (mats.size())
item->mat_index = mats[rng.df_trandom(mats.size())]; item->mat_index = mats[rng.df_trandom(mats.size())];
item->quantity = base_item_count; item->quantity = base_item_count * 150;
item->min_dimension = 150;
} }
break; break;
@ -1258,6 +1260,16 @@ command_result df_strangemood (color_ostream &out, vector <string> & parameters)
item->mat_type = mat_type; item->mat_type = mat_type;
item->flags2.whole = flags2.whole; item->flags2.whole = flags2.whole;
item->quantity = 1; item->quantity = 1;
if (item_type == item_type::BAR)
{
item->quantity *= 150;
item->min_dimension = 150;
}
if (item_type == item_type::CLOTH)
{
item->quantity *= 10000;
item->min_dimension = 10000;
}
} }
} }
} }