File tree 3 files changed +11
-10
lines changed
3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,11 @@ namespace MWLua
415
415
return ptr.getClass ().getEncumbrance (ptr);
416
416
};
417
417
418
+ actor[" getCapacity" ] = [](const Object& actor) -> float {
419
+ const MWWorld::Ptr ptr = actor.ptr ();
420
+ return ptr.getClass ().getCapacity (ptr);
421
+ };
422
+
418
423
addActorStatsBindings (actor, context);
419
424
addActorMagicBindings (actor, context);
420
425
}
Original file line number Diff line number Diff line change @@ -353,9 +353,5 @@ namespace MWLua
353
353
354
354
return res;
355
355
};
356
- npc[" getCapacity" ] = [](const Object& actor) -> float {
357
- const MWWorld::Ptr ptr = actor.ptr ();
358
- return ptr.getClass ().getCapacity (ptr);
359
- };
360
356
}
361
357
}
Original file line number Diff line number Diff line change 15
15
-- @param openmw.core#GameObject actor
16
16
-- @return #number
17
17
18
+ ---
19
+ -- Get the total weight that the actor can carry.
20
+ -- @function [parent=#Actor] getCapacity
21
+ -- @param openmw.core#GameObject actor
22
+ -- @return #number
23
+
18
24
---
19
25
-- Check if the given actor is dead (health reached 0, so death process started).
20
26
-- @function [parent=#Actor] isDead
1035
1041
-- @param openmw.core#GameObject player The player that you want to modify the disposition for.
1036
1042
-- @param #number value Base disposition modification value
1037
1043
1038
- ---
1039
- -- Get the total weight that the actor can carry.
1040
- -- @function [parent=#NPC] getCapacity
1041
- -- @param openmw.core#GameObject actor
1042
- -- @return #number
1043
-
1044
1044
--- @{#Classes}: Class Data
1045
1045
-- @field [parent=#NPC] #Classes classes
1046
1046
You can’t perform that action at this time.
0 commit comments