PetBehaviorCatalog
The pet behavior modules: every .lua file under the pet_behaviors folder, the shipped defaults among them. A default is written when no file of its name exists anywhere in the folder, so a deleted default comes back and an edited one stays, even after it moves into a subfolder. No default is written by a load that could not read the whole folder, since the part it missed may hold an edited one. A module's id is fmm:pet/ and its file name, and a pet file lists modules by that file name. Each load opens a fresh module owner, so an edited module needs no new revision across reloads.
Functions
Link copied to clipboard
public static PetBehaviorCatalog load(Path folder, List<String> defaults, Consumer<String> writeDefault, Consumer<String> warn)
Writes the missing defaults through
writeDefault, then loads every module in the folder.Link copied to clipboard
The module a pet file names, by its file name.