mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
tradding skill use, spechcraft use
This commit is contained in:
parent
b2a0e4b1fd
commit
2d62649dc9
1 changed files with 10 additions and 5 deletions
|
@ -431,6 +431,7 @@ namespace MWDialogue
|
|||
void DialogueManager::persuade(int type)
|
||||
{
|
||||
bool success;
|
||||
bool skillincrease = 1;
|
||||
float temp, perm;
|
||||
MWBase::Environment::get().getMechanicsManager()->getPersuasionDispositionChange(
|
||||
mActor, MWBase::MechanicsManager::PersuasionType(type), mTemporaryDispositionChange,
|
||||
|
@ -445,10 +446,6 @@ namespace MWDialogue
|
|||
else if (curDisp + mTemporaryDispositionChange > 100)
|
||||
mTemporaryDispositionChange = 100 - curDisp;
|
||||
|
||||
// practice skill, it doesn't need to be a success to use skill
|
||||
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
||||
MWWorld::Class::get(player).skillUsageSucceeded(player, ESM::Skill::Speechcraft, 0);
|
||||
|
||||
// add status message to dialogue window
|
||||
std::string text;
|
||||
|
||||
|
@ -458,8 +455,16 @@ namespace MWDialogue
|
|||
text = "sTaunt";
|
||||
else if (type == MWBase::MechanicsManager::PT_Intimidate)
|
||||
text = "sIntimidate";
|
||||
else
|
||||
else{
|
||||
text = "sBribe";
|
||||
skillincrease = success;
|
||||
}
|
||||
|
||||
if (skillincrease){
|
||||
// practice skill, it doesn't need to be a success to use skill
|
||||
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
||||
MWWorld::Class::get(player).skillUsageSucceeded(player, ESM::Skill::Speechcraft, 0);
|
||||
}
|
||||
|
||||
text += (success ? "Success" : "Fail");
|
||||
|
||||
|
|
Loading…
Reference in a new issue