本文整理汇总了C++中cGold::staff_wages方法的典型用法代码示例。如果您正苦于以下问题:C++ cGold::staff_wages方法的具体用法?C++ cGold::staff_wages怎么用?C++ cGold::staff_wages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cGold
的用法示例。
在下文中一共展示了cGold::staff_wages方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WorkTorturer
//.........这里部分代码省略.........
g_Girls.UpdateStat(girl, STAT_PCHATE, g_Dice % 2);
break;
case 1:
ss << girlName << gettext(" is terrified that you treat people like this.\n");
g_Girls.UpdateStat(girl, STAT_PCFEAR, g_Dice % 6);
g_Girls.UpdateStat(girl, STAT_OBEDIENCE, g_Dice % 2);
break;
case 2:
ss << gettext("She learned a bit about medicine while trying to stop the pain.\n");
g_Girls.UpdateSkill(girl, SKILL_MEDICINE, g_Dice % 10);
break;
default:
ss << girlName << gettext(" did something completely unexpected. [error]");
break;
}
}
}
girl->m_Events.AddMessage(ss.str(), IMGTYPE_PROFILE, Day0Night1);
}
else
{
g_Girls.UpdateEnjoyment(girl, actiontype, +3);
switch (roll)
{
case 0: ss << girlName << gettext(" enjoyed her job working in the dungeon.\n"); break;
case 1: ss << girlName << gettext(" is turned on by the power of torturing people.\n"); break;
case 2: ss << girlName << gettext(" enjoyed trying out different torture devices and watching the effects on the victim.\n"); break;
case 3: ss << girlName << gettext(" spent her time in the dungeon whipping her victim in time to music to make amusing sound effects.\n"); break;
case 4: ss << girlName << gettext(" uses the victim's cries and screams to to figure out the 'best' areas to torture.\n"); break;
default: ss << girlName << gettext(" enjoyed this for some illogical reason. [error]\n"); break;
}
//And a little randomness
if ((g_Girls.GetStat(girl, STAT_MORALITY) < 20 || g_Girls.HasTrait(girl, "Sadistic")) && g_Dice.percent(20))
{
ss << girlName << gettext(" loved this so much she wouldn't accept any money, as long as you promise she can do it again soon.\n");
g_Girls.UpdateEnjoyment(girl, actiontype, +3);
forFree = true;
}
if (g_Dice.percent(20))
{
roll = g_Dice % 4;
switch (roll)
{
case 0:
ss << girlName << gettext(" put so much energy into this it seems to have improved her fitness.\n");
g_Girls.UpdateStat(girl, STAT_CONSTITUTION, g_Dice % 3);
break;
case 1:
ss << girlName << gettext(" went way too far, creating a hell of a mess. Still it looks like she had fun - she hasn't stopped smiling.\n");
g_Girls.UpdateStat(girl, STAT_HAPPINESS, g_Dice % 5);
g_Girls.UpdateEnjoyment(girl, actiontype, +1);
brothel->m_Filthiness += 15;
break;
case 2:
ss << girlName << gettext(" over-exerted herself.");
g_Girls.UpdateStat(girl, STAT_HEALTH, -(g_Dice % 5));
g_Girls.UpdateStat(girl, STAT_TIREDNESS, g_Dice % 5);
break;
case 3:
ss << girlName << gettext(" appreciates that you entrust her with this kind of work.");
g_Girls.UpdateStat(girl, STAT_PCLOVE, g_Dice % 2);
g_Girls.UpdateStat(girl, STAT_PCHATE, -(g_Dice % 2));
break;
default:
ss << girlName << gettext(" did something completely unexpected. [error]");
break;
}
}
girl->m_Events.AddMessage(ss.str(), IMGTYPE_PROFILE, Day0Night1);
}
#endif
// Improve girl
int xp = 15, libido = 5, skill = 1;
if (g_Girls.HasTrait(girl, "Quick Learner")) { skill += 1; xp += 3; }
else if (g_Girls.HasTrait(girl, "Slow Learner")) { skill -= 1; xp -= 3; }
if (g_Girls.HasTrait(girl, "Nymphomaniac")) { libido += 2; }
if (!forFree)
{
girl->m_Pay += 65;
g_Gold.staff_wages(65); // wages come from you
}
g_Girls.UpdateStat(girl, STAT_EXP, xp);
g_Girls.UpdateStat(girl, STAT_MORALITY, -2);
g_Girls.UpdateSkill(girl, SKILL_BDSM, skill);
g_Girls.UpdateStatTemp(girl, STAT_LIBIDO, libido);
// WD: Update flag
g_Brothels.TortureDone(true);
// Check for new traits
g_Girls.PossiblyGainNewTrait(girl, "Sadistic", 30, actiontype, girl->m_Realname + gettext(" has come to enjoy her job so much that she has become rather Sadistic."), Day0Night1);
g_Girls.PossiblyGainNewTrait(girl, "Merciless", 50, actiontype, girl->m_Realname + gettext(" extensive experience with torture has made her absolutely Merciless."), Day0Night1);
return false;
}
示例2: WorkFeedPoor
//.........这里部分代码省略.........
}
else
{
ss << "Being assigned to the food counter, she putted a sign \"self serving\" and went out.\n";
}
}
//try and add randomness here
if (g_Girls.GetStat(girl, STAT_INTELLIGENCE) < 55 && g_Dice.percent(30))//didnt put a check on this one as we could use some randomness and its an intel check... guess we can if people keep bitching
{
blow = true; ss << "An elderly fellow managed to convince " << girlName << " that he was full and didn't need anymore food but that she did. He told her his cock gave a special treat if she would suck on it long enough. Which she did man she isn't very smart.\n\n";
}
if (g_Girls.HasTrait(girl, "Nymphomaniac") && g_Dice.percent(30) && g_Girls.GetStat(girl, STAT_LIBIDO) > 75
&& !g_Girls.HasTrait(girl, "Lesbian") && !g_Girls.HasTrait(girl, "Virgin")
&& (!brothel->m_RestrictNormal || !brothel->m_RestrictAnal))
{
sex = true;
ss << "Her Nymphomania got the better of her today and she decided to let them eat her pussy! After a few minutes they started fucking her.\n";
}
if (girl->m_States&(1 << STATUS_SLAVE))
{
ss << "\nThe fact that she is your slave makes people think its less of a good deed on your part.";
The_Player->disposition(dispo);
wages = 0;
}
else
{
ss << "\nThe fact that your paying this girl to do this helps people think your a better person.";
g_Gold.staff_wages(100); // wages come from you
The_Player->disposition(int(dispo*1.5));
}
#pragma endregion
#pragma region // Enjoyment and Tiredness //
//enjoyed the work or not
if (roll_a <= 5)
{
ss << "\nSome of the patrons abused her during the shift.";
enjoy -= 1;
}
else if (roll_a <= 25)
{
ss << "\nShe had a pleasant time working.";
enjoy += 3;
}
else
{
ss << "\nOtherwise, the shift passed uneventfully.";
enjoy += 1;
}
if (sex)
{
if (!brothel->m_RestrictNormal && (roll_b <= 50 || brothel->m_RestrictAnal)) //Tweak to avoid an issue when roll > 50 && anal is restricted
{
girl->m_Events.AddMessage(ss.str(), IMGTYPE_SEX, Day0Night1);