mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 19:39:42 +00:00
Add persuasion GMST to ensureNeededRecords (Fixes #1817)
This commit is contained in:
parent
322480862b
commit
e508450c1c
2 changed files with 11 additions and 0 deletions
|
@ -290,6 +290,9 @@ namespace MWDialogue
|
||||||
std::string title;
|
std::string title;
|
||||||
if (dialogue.mType==ESM::Dialogue::Persuasion)
|
if (dialogue.mType==ESM::Dialogue::Persuasion)
|
||||||
{
|
{
|
||||||
|
// Determine GMST from dialogue topic. GMSTs are:
|
||||||
|
// sAdmireSuccess, sAdmireFail, sIntimidateSuccess, sIntimidateFail,
|
||||||
|
// sTauntSuccess, sTauntFail, sBribeSuccess, sBribeFail
|
||||||
std::string modifiedTopic = "s" + topic;
|
std::string modifiedTopic = "s" + topic;
|
||||||
|
|
||||||
modifiedTopic.erase (std::remove (modifiedTopic.begin(), modifiedTopic.end(), ' '), modifiedTopic.end());
|
modifiedTopic.erase (std::remove (modifiedTopic.begin(), modifiedTopic.end(), ' '), modifiedTopic.end());
|
||||||
|
|
|
@ -372,6 +372,14 @@ namespace MWWorld
|
||||||
gmst["sHard"] = ESM::Variant("Hard");
|
gmst["sHard"] = ESM::Variant("Hard");
|
||||||
gmst["sDeleteNote"] = ESM::Variant("Delete Note");
|
gmst["sDeleteNote"] = ESM::Variant("Delete Note");
|
||||||
gmst["sEditNote"] = ESM::Variant("Edit Note");
|
gmst["sEditNote"] = ESM::Variant("Edit Note");
|
||||||
|
gmst["sAdmireSuccess"] = ESM::Variant("Admire Success");
|
||||||
|
gmst["sAdmireFail"] = ESM::Variant("Admire Fail");
|
||||||
|
gmst["sIntimidateSuccess"] = ESM::Variant("Intimidate Success");
|
||||||
|
gmst["sIntimidateFail"] = ESM::Variant("Intimidate Fail");
|
||||||
|
gmst["sTauntSuccess"] = ESM::Variant("Taunt Success");
|
||||||
|
gmst["sTauntFail"] = ESM::Variant("Taunt Fail");
|
||||||
|
gmst["sBribeSuccess"] = ESM::Variant("Bribe Success");
|
||||||
|
gmst["sBribeFail"] = ESM::Variant("Bribe Fail");
|
||||||
|
|
||||||
// Werewolf (BM)
|
// Werewolf (BM)
|
||||||
gmst["fWereWolfRunMult"] = ESM::Variant(1.f);
|
gmst["fWereWolfRunMult"] = ESM::Variant(1.f);
|
||||||
|
|
Loading…
Reference in a new issue