Jump to content

[Modding/Dev] Separate books.lua definitions into a bookdefs.lua


Recommended Posts

In prefabs/books.lua, book data definitions are described in a table `book_defs` which is then used at the end of the file to generate prefabs for each book. This table could be factored out of books.lua into a separate file akin to wx78_moduledefs.lua, battlesongsdefs.lua, etc. This way mods can simply require bookdefs and modify the table - tweaking books and adding new ones - before books.lua actually uses it to construct prefabs.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...