mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 05:53:50 +00:00
some skill usage fixes
This commit is contained in:
parent
e50b9aca86
commit
386eec51c1
2 changed files with 7 additions and 12 deletions
|
@ -431,7 +431,6 @@ namespace MWDialogue
|
||||||
void DialogueManager::persuade(int type)
|
void DialogueManager::persuade(int type)
|
||||||
{
|
{
|
||||||
bool success;
|
bool success;
|
||||||
bool skillincrease = 1;
|
|
||||||
float temp, perm;
|
float temp, perm;
|
||||||
MWBase::Environment::get().getMechanicsManager()->getPersuasionDispositionChange(
|
MWBase::Environment::get().getMechanicsManager()->getPersuasionDispositionChange(
|
||||||
mActor, MWBase::MechanicsManager::PersuasionType(type), mTemporaryDispositionChange,
|
mActor, MWBase::MechanicsManager::PersuasionType(type), mTemporaryDispositionChange,
|
||||||
|
@ -457,14 +456,10 @@ namespace MWDialogue
|
||||||
text = "sIntimidate";
|
text = "sIntimidate";
|
||||||
else{
|
else{
|
||||||
text = "sBribe";
|
text = "sBribe";
|
||||||
skillincrease = success;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skillincrease){
|
|
||||||
// practice skill
|
|
||||||
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
||||||
MWWorld::Class::get(player).skillUsageSucceeded(player, ESM::Skill::Speechcraft, -1);
|
MWWorld::Class::get(player).skillUsageSucceeded(player, ESM::Skill::Speechcraft, success ? 0 : 1);
|
||||||
}
|
|
||||||
|
|
||||||
text += (success ? "Success" : "Fail");
|
text += (success ? "Success" : "Fail");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue