mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:49:58 +00:00
Merge remote-tracking branch 'matahualpa/openmw-cs_tablecontents'
This commit is contained in:
commit
93c5630e02
7 changed files with 11 additions and 11 deletions
|
@ -494,7 +494,7 @@ void Record<ESM::Book>::print()
|
|||
std::cout << " Weight: " << mData.mData.mWeight << std::endl;
|
||||
std::cout << " Value: " << mData.mData.mValue << std::endl;
|
||||
std::cout << " IsScroll: " << mData.mData.mIsScroll << std::endl;
|
||||
std::cout << " SkillID: " << mData.mData.mSkillID << std::endl;
|
||||
std::cout << " SkillId: " << mData.mData.mSkillId << std::endl;
|
||||
std::cout << " Enchantment Points: " << mData.mData.mEnchant << std::endl;
|
||||
if (mPrintPlain)
|
||||
{
|
||||
|
|
|
@ -202,7 +202,7 @@ public:
|
|||
bool isDeleted = false;
|
||||
|
||||
book.load(esm, isDeleted);
|
||||
if (book.mData.mSkillID == -1)
|
||||
if (book.mData.mSkillId == -1)
|
||||
mContext->mPlayer.mObject.mNpcStats.mUsedIds.push_back(Misc::StringUtils::lowerCase(book.mId));
|
||||
|
||||
mRecords[book.mId] = book;
|
||||
|
|
|
@ -316,7 +316,7 @@ QVariant CSMWorld::BookRefIdAdapter::getData (const RefIdColumn *column,
|
|||
return record.get().mData.mIsScroll!=0;
|
||||
|
||||
if (column==mSkill)
|
||||
return record.get().mData.mSkillID;
|
||||
return record.get().mData.mSkillId;
|
||||
|
||||
if (column==mText)
|
||||
return QString::fromUtf8 (record.get().mText.c_str());
|
||||
|
@ -335,7 +335,7 @@ void CSMWorld::BookRefIdAdapter::setData (const RefIdColumn *column, RefIdData&
|
|||
if (column==mScroll)
|
||||
book.mData.mIsScroll = value.toInt();
|
||||
else if (column==mSkill)
|
||||
book.mData.mSkillID = value.toInt();
|
||||
book.mData.mSkillId = value.toInt();
|
||||
else if (column==mText)
|
||||
book.mText = value.toString().toUtf8().data();
|
||||
else
|
||||
|
|
|
@ -294,8 +294,8 @@ CSMWorld::RefIdCollection::RefIdCollection()
|
|||
mColumns.push_back (RefIdColumn (Columns::ColumnId_Scroll, ColumnBase::Display_Boolean));
|
||||
const RefIdColumn *scroll = &mColumns.back();
|
||||
|
||||
mColumns.push_back (RefIdColumn (Columns::ColumnId_Attribute, ColumnBase::Display_Attribute));
|
||||
const RefIdColumn *attribute = &mColumns.back();
|
||||
mColumns.push_back (RefIdColumn (Columns::ColumnId_Skill, ColumnBase::Display_SkillId));
|
||||
const RefIdColumn *skill = &mColumns.back();
|
||||
|
||||
mColumns.push_back (RefIdColumn (Columns::ColumnId_Text, ColumnBase::Display_LongString));
|
||||
const RefIdColumn *text = &mColumns.back();
|
||||
|
@ -659,7 +659,7 @@ CSMWorld::RefIdCollection::RefIdCollection()
|
|||
mAdapters.insert (std::make_pair (UniversalId::Type_Armor,
|
||||
new ArmorRefIdAdapter (enchantableColumns, armorType, health, armor, partRef)));
|
||||
mAdapters.insert (std::make_pair (UniversalId::Type_Book,
|
||||
new BookRefIdAdapter (enchantableColumns, scroll, attribute, text)));
|
||||
new BookRefIdAdapter (enchantableColumns, scroll, skill, text)));
|
||||
mAdapters.insert (std::make_pair (UniversalId::Type_Clothing,
|
||||
new ClothingRefIdAdapter (enchantableColumns, clothingType, partRef)));
|
||||
mAdapters.insert (std::make_pair (UniversalId::Type_Container,
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace MWWorld
|
|||
MWMechanics::NpcStats& npcStats = actor.getClass().getNpcStats (actor);
|
||||
|
||||
// Skill gain from books
|
||||
if (ref->mBase->mData.mSkillID >= 0 && ref->mBase->mData.mSkillID < ESM::Skill::Length
|
||||
if (ref->mBase->mData.mSkillId >= 0 && ref->mBase->mData.mSkillId < ESM::Skill::Length
|
||||
&& !npcStats.hasBeenUsed (ref->mBase->mId))
|
||||
{
|
||||
MWWorld::LiveCellRef<ESM::NPC> *playerRef = actor.get<ESM::NPC>();
|
||||
|
@ -54,7 +54,7 @@ namespace MWWorld
|
|||
playerRef->mBase->mClass
|
||||
);
|
||||
|
||||
npcStats.increaseSkill (ref->mBase->mData.mSkillID, *class_, true);
|
||||
npcStats.increaseSkill (ref->mBase->mData.mSkillId, *class_, true);
|
||||
|
||||
npcStats.flagAsUsed (ref->mBase->mId);
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ namespace ESM
|
|||
mData.mWeight = 0;
|
||||
mData.mValue = 0;
|
||||
mData.mIsScroll = 0;
|
||||
mData.mSkillID = 0;
|
||||
mData.mSkillId = 0;
|
||||
mData.mEnchant = 0;
|
||||
mName.clear();
|
||||
mModel.clear();
|
||||
|
|
|
@ -21,7 +21,7 @@ struct Book
|
|||
struct BKDTstruct
|
||||
{
|
||||
float mWeight;
|
||||
int mValue, mIsScroll, mSkillID, mEnchant;
|
||||
int mValue, mIsScroll, mSkillId, mEnchant;
|
||||
};
|
||||
|
||||
BKDTstruct mData;
|
||||
|
|
Loading…
Reference in a new issue