Extensions:Multiple Trait Subtypes

From Lorekeeper Wiki
Jump to navigation Jump to search

Allows a trait to belong to multiple subtypes. This doesn't add trait subtype restriction and is purely for aesthetic and clarity purposes.

Multiple Trait Subtypes [v3.0.0]
Description Allows a trait to belong to multiple subtypes
Author(s) Fulmn
Status stable
Github extension/multiple-trait-subtypes
LK Version 3.0.0
Contains a Migration






Multiple Trait Subtypes [v3.1.0 (develop)]
Description Allows a trait to belong to multiple subtypes
Author(s) Fulmn
Status stable
Github extension/multiple-trait-subtypes-v3.1
LK Version 3.1.0 (develop)
Contains a Migration






Installation Instructions

Pull the correct branch (please check you're not pulling the wrong version) and run the following commands.

  1. php artisan migrate
  2. php artisan convert-trait-subtype
  3. php artisan update-extension-tracker

Compatability Note

If any other installed extension references a trait's subtype, it will be incompatible with this extension without any modifications. Most issues can be resolved by changing any reference to the subtype field on a trait to subtypes and treating the field as a collection of subtypes, rather than a single subtype.

Images