Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
524 B · 23 lines
C++
123456789101112131415161718192021222324#include "importklst.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport{
void KLST::load(ESM::ESMReader& esm) { while (esm.isNextSub("KNAM")) { ESM::RefId refId = esm.getRefId(); int32_t count; esm.getHNT(count, "CNAM"); mKillCounter[refId] = count; }
mWerewolfKills = 0; esm.getHNOT(mWerewolfKills, "INTV"); esm.getHNOT(mWerewolfKills, "VTNI"); // Not standard spec, but covers an MWSE bug }
}