Make API for creating potions

This commit is contained in:
Mitten Orvan 2023-03-29 07:46:11 +00:00 committed by psi29a
parent ba1f91661f
commit 4744b1eeda
5 changed files with 54 additions and 2 deletions

View file

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