mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-08 11:38:19 +03:00
Make API for creating potions
This commit is contained in:
parent
ba1f91661f
commit
4744b1eeda
5 changed files with 54 additions and 2 deletions
|
@ -73,5 +73,14 @@
|
|||
-- money = world.createObject('gold_001', 50)
|
||||
-- money:moveInto(types.Actor.inventory(actor))
|
||||
|
||||
---
|
||||
-- Creates a custom record in the world database.
|
||||
-- Eventually meant to support all records, but the current
|
||||
-- set of supported types is limited to:
|
||||
-- * @{openmw.types#PotionRecord}
|
||||
-- @function [parent=#world] createRecord
|
||||
-- @param #any record A record to be registered in the database. Must be one of the supported types.
|
||||
-- @return #any A new record added to the database. The type is the same as the input's.
|
||||
|
||||
return nil
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue