diff --git a/apps/openmw/mwlua/types/npc.cpp b/apps/openmw/mwlua/types/npc.cpp index d791285cdd..59e0c1142b 100644 --- a/apps/openmw/mwlua/types/npc.cpp +++ b/apps/openmw/mwlua/types/npc.cpp @@ -125,7 +125,7 @@ namespace MWLua cls.getNpcStats(o.ptr()).setBaseDisposition(value); }; - npc["modBaseDisposition"] = [](const Object& o, const Object& player, int value) { + npc["modifyBaseDisposition"] = [](const Object& o, const Object& player, int value) { if (player.ptr() != MWBase::Environment::get().getWorld()->getPlayerPtr()) throw std::runtime_error("The argument must be a player!"); const MWWorld::Class& cls = o.ptr().getClass(); diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua index aba3d06363..f521be71dc 100644 --- a/files/lua_api/openmw/types.lua +++ b/files/lua_api/openmw/types.lua @@ -1015,11 +1015,11 @@ -- @function [parent=#NPC] setBaseDisposition -- @param openmw.core#GameObject object -- @param openmw.core#GameObject player The player that you want to set the disposition for. --- @param #number value BaseDisposition is set to this value +-- @param #number value Base disposition is set to this value --- -- Modify the base disposition of the provided NPC by a certain amount. --- @function [parent=#NPC] modBaseDisposition +-- @function [parent=#NPC] modifyBaseDisposition -- @param openmw.core#GameObject object -- @param openmw.core#GameObject player The player that you want to modify the disposition for. -- @param #number value Base disposition modification value