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:
parent
f683adeb14
commit
da4531faa0
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user