2010-08-19 12:49:13 +02:00
|
|
|
#ifndef GAME_MWMECHANICS_NPCSTATS_H
|
|
|
|
#define GAME_MWMECHANICS_NPCSTATS_H
|
|
|
|
|
2022-10-18 09:26:55 +02:00
|
|
|
#include "creaturestats.hpp"
|
|
|
|
#include <components/esm/refid.hpp>
|
2023-06-05 21:21:30 +02:00
|
|
|
#include <components/esm3/loadskil.hpp>
|
2010-08-19 12:49:13 +02:00
|
|
|
#include <map>
|
2012-04-07 18:37:41 +02:00
|
|
|
#include <set>
|
2012-07-06 15:50:26 +02:00
|
|
|
#include <string>
|
2012-09-15 17:12:42 +02:00
|
|
|
#include <vector>
|
2013-08-08 23:27:03 -07:00
|
|
|
|
2012-07-06 21:07:04 +02:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct Class;
|
2014-02-16 15:06:34 +01:00
|
|
|
struct NpcStats;
|
2012-07-06 21:07:04 +02:00
|
|
|
}
|
|
|
|
|
2010-08-19 12:49:13 +02:00
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
/// \brief Additional stats for NPCs
|
|
|
|
|
2013-08-08 23:27:03 -07:00
|
|
|
class NpcStats : public CreatureStats
|
2010-08-19 12:49:13 +02:00
|
|
|
{
|
2012-11-09 14:42:09 +01:00
|
|
|
int mDisposition;
|
2023-06-05 21:21:30 +02:00
|
|
|
std::map<ESM::RefId, SkillValue> mSkills; // SkillValue.mProgress used by the player only
|
2015-06-21 17:27:52 +02:00
|
|
|
|
2012-11-10 00:29:36 +01:00
|
|
|
int mReputation;
|
2014-04-05 10:26:14 -04:00
|
|
|
int mCrimeId;
|
2015-01-20 19:30:39 +01:00
|
|
|
|
|
|
|
// ----- used by the player only, maybe should be moved at some point -------
|
|
|
|
int mBounty;
|
|
|
|
int mWerewolfKills;
|
2019-05-14 10:12:40 +04:00
|
|
|
/// Used only for the player and for NPC's with ranks, modified by scripts; other NPCs have maximum one faction
|
|
|
|
/// defined in their NPC record
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
std::map<ESM::RefId, int> mFactionRank;
|
|
|
|
std::set<ESM::RefId> mExpelled;
|
|
|
|
std::map<ESM::RefId, int> mFactionReputation;
|
2012-09-15 17:12:42 +02:00
|
|
|
int mLevelProgress; // 0-10
|
2023-06-19 20:41:54 +02:00
|
|
|
std::map<ESM::Attribute::AttributeID, int>
|
|
|
|
mSkillIncreases; // number of skill increases for each attribute (resets after leveling up)
|
2016-06-26 03:22:58 +02:00
|
|
|
std::vector<int> mSpecIncreases; // number of skill increases for each specialization (accumulates throughout
|
|
|
|
// the entire game)
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
std::set<ESM::RefId> mUsedIds;
|
2015-01-20 19:30:39 +01:00
|
|
|
// ---------------------------------------------------------------------------
|
2012-09-25 10:48:57 +02:00
|
|
|
|
2013-08-07 15:34:11 +02:00
|
|
|
/// Countdown to getting damage while underwater
|
|
|
|
float mTimeToStartDrowning;
|
|
|
|
|
2015-06-21 17:27:52 +02:00
|
|
|
bool mIsWerewolf;
|
|
|
|
|
2012-07-06 18:23:48 +02:00
|
|
|
public:
|
2012-07-06 15:50:26 +02:00
|
|
|
NpcStats();
|
2011-01-18 10:45:29 +01:00
|
|
|
|
2012-07-06 15:50:26 +02:00
|
|
|
int getBaseDisposition() const;
|
|
|
|
void setBaseDisposition(int disposition);
|
|
|
|
|
2012-11-09 20:18:38 +01:00
|
|
|
int getReputation() const;
|
|
|
|
void setReputation(int reputation);
|
2012-11-05 11:07:43 +01:00
|
|
|
|
2012-11-10 00:29:36 +01:00
|
|
|
int getCrimeId() const;
|
|
|
|
void setCrimeId(int id);
|
2012-11-05 11:07:43 +01:00
|
|
|
|
2023-06-05 21:21:30 +02:00
|
|
|
const SkillValue& getSkill(ESM::RefId id) const;
|
|
|
|
SkillValue& getSkill(ESM::RefId id);
|
|
|
|
void setSkill(ESM::RefId id, const SkillValue& value);
|
2014-04-05 10:26:14 -04:00
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
int getFactionRank(const ESM::RefId& faction) const;
|
|
|
|
const std::map<ESM::RefId, int>& getFactionRanks() const;
|
2012-07-06 18:23:48 +02:00
|
|
|
|
2022-06-13 18:21:29 +02:00
|
|
|
/// Join this faction, setting the initial rank to 0.
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
void joinFaction(const ESM::RefId& faction);
|
2023-06-14 03:38:22 +08:00
|
|
|
/// Sets the rank in this faction to a specified value, if such a rank exists.
|
|
|
|
void setFactionRank(const ESM::RefId& faction, int value);
|
2019-05-14 10:12:40 +04:00
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
const std::set<ESM::RefId>& getExpelled() const { return mExpelled; }
|
|
|
|
bool getExpelled(const ESM::RefId& factionID) const;
|
|
|
|
void expell(const ESM::RefId& factionID);
|
|
|
|
void clearExpelled(const ESM::RefId& factionID);
|
2012-11-15 20:00:27 +01:00
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
bool isInFaction(const ESM::RefId& faction) const;
|
2012-07-06 18:23:48 +02:00
|
|
|
|
2023-06-05 21:21:30 +02:00
|
|
|
float getSkillProgressRequirement(ESM::RefId id, const ESM::Class& class_) const;
|
2012-11-10 09:35:50 +01:00
|
|
|
|
2023-06-06 17:02:10 +02:00
|
|
|
void useSkill(ESM::RefId id, const ESM::Class& class_, int usageType = -1, float extraFactor = 1.f);
|
2015-02-04 23:15:12 +01:00
|
|
|
///< Increase skill by usage.
|
2012-07-09 21:15:52 +02:00
|
|
|
|
2023-06-06 17:02:10 +02:00
|
|
|
void increaseSkill(ESM::RefId id, const ESM::Class& class_, bool preserveProgress, bool readBook = false);
|
2012-09-15 17:12:42 +02:00
|
|
|
|
2018-03-24 13:43:18 +03:00
|
|
|
int getLevelProgress() const;
|
2012-09-15 19:06:56 +02:00
|
|
|
|
2023-06-19 20:41:54 +02:00
|
|
|
int getLevelupAttributeMultiplier(ESM::Attribute::AttributeID attribute) const;
|
2012-09-15 17:12:42 +02:00
|
|
|
|
|
|
|
int getSkillIncreasesForSpecialization(int spec) const;
|
|
|
|
|
2016-06-26 03:22:58 +02:00
|
|
|
void levelUp();
|
|
|
|
|
2012-09-15 17:12:42 +02:00
|
|
|
void updateHealth();
|
2014-01-26 21:08:11 +01:00
|
|
|
///< Calculate health based on endurance and strength.
|
2012-09-15 17:12:42 +02:00
|
|
|
/// Called at character creation.
|
2012-11-15 20:00:27 +01:00
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
void flagAsUsed(const ESM::RefId& id);
|
2014-01-26 21:08:11 +01:00
|
|
|
///< @note Id must be lower-case
|
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
bool hasBeenUsed(const ESM::RefId& id) const;
|
2015-01-16 17:56:19 +01:00
|
|
|
///< @note Id must be lower-case
|
2012-11-15 20:00:27 +01:00
|
|
|
|
2012-09-25 10:48:57 +02:00
|
|
|
int getBounty() const;
|
2012-11-15 20:00:27 +01:00
|
|
|
|
2012-11-09 14:31:38 +01:00
|
|
|
void setBounty(int bounty);
|
2012-11-15 20:00:27 +01:00
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
int getFactionReputation(const ESM::RefId& faction) const;
|
2012-11-15 20:00:27 +01:00
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
void setFactionReputation(const ESM::RefId& faction, int value);
|
2012-11-15 20:00:27 +01:00
|
|
|
|
Initial commit: In ESM structures, replace the string members that are RefIds to other records, to a new strong type
The strong type is actually just a string underneath, but this will help in the future to have a distinction so it's easier to search and replace when we use an integer ID
Slowly going through all the changes to make, still hundreds of errors
a lot of functions/structures use std::string or stringview to designate an ID. So it takes time
Continues slowly replacing ids. There are technically more and more compilation errors
I have good hope that there is a point where the amount of errors will dramatically go down as all the main functions use the ESM::RefId type
Continue moving forward, changes to the stores
slowly moving along
Starting to see the fruit of those changes.
still many many error, but more and more Irun into a situation where a function is sandwiched between two functions that use the RefId type.
More replacements. Things are starting to get easier
I can see more and more often the issue is that the function is awaiting a RefId, but is given a string
there is less need to go down functions and to fix a long list of them.
Still moving forward, and for the first time error count is going down!
Good pace, not sure about topics though, mId and mName are actually the same thing and are used interchangeably
Cells are back to using string for the name, haven't fixed everything yet. Many other changes
Under the bar of 400 compilation errors.
more good progress <100 compile errors!
More progress
Game settings store can use string for find, it was a bit absurd how every use of it required to create refId from string
some more progress on other fronts
Mostly game settings clean
one error opened a lot of other errors. Down to 18, but more will prbably appear
only link errors left??
Fixed link errors
OpenMW compiles, and launches, with some issues, but still!
2022-09-25 13:17:09 +02:00
|
|
|
bool hasSkillsForRank(const ESM::RefId& factionId, int rank) const;
|
2012-11-15 20:00:27 +01:00
|
|
|
|
2022-06-13 18:21:29 +02:00
|
|
|
bool isWerewolf() const;
|
2012-11-15 20:00:27 +01:00
|
|
|
|
|
|
|
void setWerewolf(bool set);
|
|
|
|
|
2013-08-09 05:14:58 -07:00
|
|
|
int getWerewolfKills() const;
|
2012-11-15 20:00:27 +01:00
|
|
|
|
|
|
|
/// Increments mWerewolfKills by 1.
|
|
|
|
void addWerewolfKill();
|
2013-08-07 15:34:11 +02:00
|
|
|
|
2014-06-17 16:51:59 +02:00
|
|
|
float getTimeToStartDrowning() const;
|
|
|
|
/// Sets time left for the creature to drown if it stays underwater.
|
2013-08-07 15:34:11 +02:00
|
|
|
/// @param time value from [0,20]
|
2014-06-17 16:51:59 +02:00
|
|
|
void setTimeToStartDrowning(float time);
|
|
|
|
|
2013-08-07 15:34:11 +02:00
|
|
|
void writeState(ESM::CreatureStats& state) const;
|
|
|
|
void writeState(ESM::NpcStats& state) const;
|
2014-02-16 15:06:34 +01:00
|
|
|
|
2020-03-17 14:15:19 +04:00
|
|
|
void readState(const ESM::CreatureStats& state);
|
2014-02-16 15:06:34 +01:00
|
|
|
void readState(const ESM::NpcStats& state);
|
2023-06-05 21:21:30 +02:00
|
|
|
|
|
|
|
const std::map<ESM::RefId, SkillValue>& getSkills() const { return mSkills; }
|
2010-08-19 12:49:13 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|