foundryvtt / dnd5e

An implementation of the 5th Edition game system for Foundry Virtual Tabletop (http://foundryvtt.com).
MIT License
303 stars 206 forks source link

Add helper functions to support adding advancements to existing classes easier #3971

Open Deyzeria opened 1 month ago

Deyzeria commented 1 month ago

A helper function or several, which can be supplied an object with class identifier/identifiers, to populate additions to existing classes/subclasses/backgrounds/races (and potentially other items which will come with advancements) when they are opened and/or added to character. Also in addition, functions to allow replacing / deleting / modifying other existing types (such as Scale values would be good)

Should support adding to existing advancement types, but especially- Traits (Primary or multiclass or all(Default to all), Normal/Expertise(Default to Normal), Choice or Given, Level(Default to All, most likely, or 1). Either separately per type, or allow to supply a big array and then regex the format- tool: finds tools, skill: finds skills, weapon: finds weapons, etc.

Potentially, if none is found (for example calling with tool proficiency but class doesn't add tool proficiencies yet), generate new advancement and populate it with the data.

Deyzeria commented 1 month ago

Alternatively this can be made in the form of a CONFIG with each class with subobjects. Adding to them can trigger the function in the same way, but then can be done in a more usual for modules way(through editing/adding things to CONFIG)