mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
Issue #219: added another missing PC stats filter
This commit is contained in:
parent
586ac3f5c6
commit
e2ccec99f0
3 changed files with 7 additions and 3 deletions
|
@ -334,6 +334,10 @@ int MWDialogue::Filter::getSelectStructInteger (const SelectWrapper& select) con
|
||||||
|
|
||||||
return MWWorld::Class::get (mActor).getCreatureStats (mActor).getLevel();
|
return MWWorld::Class::get (mActor).getCreatureStats (mActor).getLevel();
|
||||||
|
|
||||||
|
case SelectWrapper::Function_PCReputation:
|
||||||
|
|
||||||
|
return MWWorld::Class::get (player).getNpcStats (player).getReputation();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
throw std::runtime_error ("unknown integer select function");
|
throw std::runtime_error ("unknown integer select function");
|
||||||
|
|
|
@ -65,7 +65,7 @@ MWDialogue::SelectWrapper::Function MWDialogue::SelectWrapper::decodeFunction()
|
||||||
case 2: return Function_RankRequirement;
|
case 2: return Function_RankRequirement;
|
||||||
// 3
|
// 3
|
||||||
case 4: return Function_HealthPercent;
|
case 4: return Function_HealthPercent;
|
||||||
// 5
|
case 5: return Function_PCReputation;
|
||||||
case 6: return Function_PcLevel;
|
case 6: return Function_PcLevel;
|
||||||
case 7: return Function_PcHealthPercent;
|
case 7: return Function_PcHealthPercent;
|
||||||
case 8: case 9: return Function_PcDynamicStat;
|
case 8: case 9: return Function_PcDynamicStat;
|
||||||
|
@ -203,7 +203,7 @@ MWDialogue::SelectWrapper::Type MWDialogue::SelectWrapper::getType() const
|
||||||
Function_PcLevel, Function_PcGender, Function_PcClothingModifier,
|
Function_PcLevel, Function_PcGender, Function_PcClothingModifier,
|
||||||
Function_PcCrimeLevel,
|
Function_PcCrimeLevel,
|
||||||
Function_RankRequirement,
|
Function_RankRequirement,
|
||||||
Function_Level,
|
Function_Level, Function_PCReputation,
|
||||||
Function_None // end marker
|
Function_None // end marker
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace MWDialogue
|
||||||
Function_PcLevel, Function_PcHealthPercent, Function_PcDynamicStat,
|
Function_PcLevel, Function_PcHealthPercent, Function_PcDynamicStat,
|
||||||
Function_PcGender, Function_PcClothingModifier, Function_PcCrimeLevel,
|
Function_PcGender, Function_PcClothingModifier, Function_PcCrimeLevel,
|
||||||
Function_RankRequirement,
|
Function_RankRequirement,
|
||||||
Function_HealthPercent, Function_Level
|
Function_HealthPercent, Function_Level, Function_PCReputation
|
||||||
};
|
};
|
||||||
|
|
||||||
enum Type
|
enum Type
|
||||||
|
|
Loading…
Reference in a new issue