1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 12:20:41 +00:00

rename modBaseDisposition to modifyBaseDisposition

This commit is contained in:
Sebastian Fieber 2024-05-31 18:52:33 +02:00
parent f683adeb14
commit da4531faa0
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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