richardwilkes / gcs

GURPS Character Sheet
http://gurpscharactersheet.com
Mozilla Public License 2.0
224 stars 62 forks source link

Add TL discriminator for skill defaults #813

Open rinickolous opened 8 months ago

rinickolous commented 8 months ago

Some skills have different defaults depending on TL. An example of this is the Armoury skill in Basic Set, which has different defaults based on its TL.

I propose adding a NumericCriteria to the SkillDefaults object, omitted from the data if set to "any", which causes the skill default to apply only if the criteria is met.

An alternative to this would be making duplicate listings in the various libraries for skills to which this applies. However, this seems more elegant and should be simple to implement.

smithkm commented 3 months ago

There are other conditional defaults like certain techniques that have a different default depending on whether the character has an appropriate cinematic combat trait TBaM/WM/Heroic Archer/Gunslinger. It would be good to handle this in a general way that accommodates both, or makes other conditional defaults easier to build in future.