derikb / rpg-table-randomizer

Module for random tables for use in roleplaying games.
GNU General Public License v3.0
9 stars 2 forks source link

NPC: Update generator to allow for child classes #49

Closed derikb closed 2 years ago

derikb commented 2 years ago

It would be helpful if the NPC creation process could return classes that extend the base NPC class, so you can add extra properties, methods, etc. but still be able to make use the of the code in initializeNewNPC that sets all the random fields.