mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Issue #68: tally deaths
This commit is contained in:
parent
6b09b3ad61
commit
f72c35fc17
@ -234,6 +234,8 @@ namespace MWMechanics
|
||||
continue;
|
||||
}
|
||||
|
||||
++mDeathCount[MWWorld::Class::get (*iter).getId (*iter)];
|
||||
|
||||
MWBase::Environment::get().getWorld()->playAnimationGroup (*iter, "death1", 0);
|
||||
|
||||
mActors.erase (iter++);
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
namespace Ogre
|
||||
{
|
||||
@ -22,6 +23,7 @@ namespace MWMechanics
|
||||
{
|
||||
std::set<MWWorld::Ptr> mActors;
|
||||
float mDuration;
|
||||
std::map<std::string, int> mDeathCount;
|
||||
|
||||
void updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user