From 16f178b80ed8b6b66c1e6f76fdd783fb98b58a98 Mon Sep 17 00:00:00 2001
From: Zackhasacat <tobias@tribble.dev>
Date: Thu, 16 Nov 2023 07:43:45 -0600
Subject: [PATCH] Remove character

---
 apps/openmw/mwlua/types/npc.cpp | 5 ++---
 files/lua_api/openmw/types.lua  | 6 +-----
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/apps/openmw/mwlua/types/npc.cpp b/apps/openmw/mwlua/types/npc.cpp
index 823cf59613..55bb59afc0 100644
--- a/apps/openmw/mwlua/types/npc.cpp
+++ b/apps/openmw/mwlua/types/npc.cpp
@@ -82,9 +82,8 @@ namespace MWLua
         record["baseGold"] = sol::readonly_property([](const ESM::NPC& rec) -> int { return rec.mNpdt.mGold; });
         addActorServicesBindings<ESM::NPC>(record, context);
 
-        sol::table character(lua, sol::create);
-        character["classes"] = initCoreClassBindings(context);
-        npc["character"] = LuaUtil::makeReadOnly(character);
+        npc["classes"] = initCoreClassBindings(context);
+        
         // This function is game-specific, in future we should replace it with something more universal.
         npc["isWerewolf"] = [](const Object& o) {
             const MWWorld::Class& cls = o.ptr().getClass();
diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua
index 73bed6799d..dbf884f737 100644
--- a/files/lua_api/openmw/types.lua
+++ b/files/lua_api/openmw/types.lua
@@ -878,12 +878,8 @@
 -- @param openmw.core#GameObject actor
 -- @return #number
 
---- @{#Character}: Class and Character Data
--- @field [parent=#NPC] #Character character
-
-
 --- @{#Classes}: Class Data
--- @field [parent=#Character] #Classes classes
+-- @field [parent=#NPC] #Classes classes
 
 ---
 -- A read-only list of all @{#ClassRecord}s in the world database.