Feedback > Bugs and Game balancing
Torturer Bug Fix
(1/1)
THE FUTURE:
I used this and people aren't reporting crashes, so I thought I'd post it. Then again, if there are problems with doing this, I'd like to hear about it.
cBrothel.cpp
line ~2129 in mine, not sure about the official svn
--- Code: --- if(g_Girls.GetStat(current, STAT_TIREDNESS) > 80)
{
if (matron)
{
if(current->m_NightJob == JOB_TORTURER)
{
TortureDone(false);
current->m_PrevDayJob = current->m_DayJob;
current->m_PrevNightJob = current->m_NightJob;
current->m_DayJob = current->m_NightJob = JOB_RESTING;
MatronWarningMsg += "Your matron takes " + girlName + " off duty to rest due to her tiredness.\n";
}
if(current->m_PrevNightJob == 255 && current->m_PrevDayJob == 255)
{
current->m_PrevDayJob = current->m_DayJob;
current->m_PrevNightJob = current->m_NightJob;
current->m_DayJob = current->m_NightJob = JOB_RESTING;
MatronWarningMsg += "Your matron takes " + girlName + " off duty to rest due to her tiredness.\n";
//current->m_Events.AddMessage(msg, IMGTYPE_DEATH, EVENT_WARNING);
}
else
{
if((g_Dice%100)+1 < 70)
{
MatronMsg += "Your matron helps " + girlName + " to relax.\n";
//current->m_Events.AddMessage(msg, IMGTYPE_PROFILE, DayNight);
g_Girls.UpdateStat(current, STAT_TIREDNESS, -5);
}
}
}
else
//MatronWarningMsg += "CAUTION! This girl desperately need rest. Give her some free time\n";
current->m_Events.AddMessage("CAUTION! This girl desparatly need rest. Give her some free time", IMGTYPE_DEATH, EVENT_WARNING);
}
--- End code ---
I separately did those duplicate lines because I was getting issues otherwise. I don't remember exactly with what.
Emphasis on
TortureDone(false);
Navigation
[0] Message Index
Go to full version