mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 12:25:17 -04:00
done with header files, unsure about mSkills and mReputation in
loadnpc.hpp
This commit is contained in:
parent
8bce460f34
commit
bc7e154643
@ -80,7 +80,8 @@ struct NPC
|
|||||||
mPersonality,
|
mPersonality,
|
||||||
mLuck;
|
mLuck;
|
||||||
|
|
||||||
char mSkills[Skill::Length];
|
// mSkill vals are used only in MWMechanics::AttributeValue.setBase(), if less than 0 they are not considered
|
||||||
|
unsigned char mSkills[Skill::Length];
|
||||||
|
|
||||||
// at opencs/model/tools/referenceablecheck.cpp:679 is assumed that negative reputation values are invalid, can we assume we won't find any negative value?
|
// at opencs/model/tools/referenceablecheck.cpp:679 is assumed that negative reputation values are invalid, can we assume we won't find any negative value?
|
||||||
unsigned char mReputation;
|
unsigned char mReputation;
|
||||||
|
@ -24,10 +24,11 @@ struct Region
|
|||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
struct WEATstruct
|
struct WEATstruct
|
||||||
{
|
{
|
||||||
// I guess these are probabilities
|
// These are probabilities that add up to 100
|
||||||
char mClear, mCloudy, mFoggy, mOvercast, mRain, mThunder, mAsh, mBlight,
|
unsigned char mClear, mCloudy, mFoggy, mOvercast, mRain, mThunder, mAsh, mBlight,
|
||||||
// Unknown weather, probably snow and something. Only
|
// Unknown weather, probably snow and something. Only
|
||||||
// present in file version 1.3.
|
// present in file version 1.3.
|
||||||
|
// the engine uses mA as "snow" and mB as "blizard"
|
||||||
mA, mB;
|
mA, mB;
|
||||||
}; // 10 bytes
|
}; // 10 bytes
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ struct Region
|
|||||||
struct SoundRef
|
struct SoundRef
|
||||||
{
|
{
|
||||||
NAME32 mSound;
|
NAME32 mSound;
|
||||||
char mChance;
|
unsigned char mChance;
|
||||||
}; // 33 bytes
|
}; // 33 bytes
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user