Seems I misread the code from 0.34.11 - it switches against rand(2), not rand(3)

develop
Quietust 2014-10-31 13:47:04 -05:00
parent 8769af8935
commit 7c92f4abaa
1 changed files with 1 additions and 6 deletions

@ -695,7 +695,6 @@ command_result df_strangemood (color_ostream &out, vector <string> & parameters)
unit->relations.mood_copy = unit->mood;
Gui::showAutoAnnouncement(announcement_type::STRANGE_MOOD, unit->pos, msg, color, bright);
//unit->status.happiness = 100;
// TODO: make sure unit drops any wrestle items
unit->job.mood_timeout = 50000;
unit->flags1.bits.has_mood = true;
@ -1148,7 +1147,7 @@ command_result df_strangemood (color_ostream &out, vector <string> & parameters)
{
if ((job->job_type == job_type::StrangeMoodBrooding) && (rng.df_trandom(2)))
{
switch (rng.df_trandom(3))
switch (rng.df_trandom(2))
{
case 0:
job->job_items.push_back(item = new df::job_item());
@ -1163,10 +1162,6 @@ command_result df_strangemood (color_ostream &out, vector <string> & parameters)
item->flags2.bits.body_part = true;
item->quantity = 1;
break;
case 2:
// in older versions, they would request additional skulls
// in 0.34.11, the request becomes "nothing"
break;
}
}
else