WittleWolfie / WW-Blueprint-Core

A library to simplify modifying Pathfinder: Wrath of the Righteous.
MIT License
14 stars 5 forks source link

Feature Request: More Convenience Constructors for ContextDurationValue #63

Closed pheonix99 closed 2 years ago

pheonix99 commented 2 years ago

Can we get something like ContextDuration.Fixed for per-level and die-roll durations?

WittleWolfie commented 2 years ago

Yeah I have been meaning to. Can do this w/ 2.1.

WittleWolfie commented 2 years ago

This will launch w/ 2.1.

Note that per-level can't really be done this way because it's an interaction between components. i.e. To achieve 1 Round/Level you need to create a duration using a ContextValue based on a Rank, and then you need to create a ContextRankConfig with the same Rank:

// Use this with whatever components/conditions/actions need this duration
var roundsPerLevel = ContextDuration.Variable(ContextValues.Rank());
// Add this to the blueprint components
var rankConfig = ContextRankConfigs.CharacterLevel();