V1.22.0: campaign settings for dice, scores, multiclassing, auto-rolls, XP and crits
- Settings grouped into Characters, Dice & rolls, Combat and Progression - Dice: digital, physical or both; a campaign's own choice applies to every character - Ability scores by 4d6, the standard array or point buy (27 points, 8 to 15) - Track XP can be turned off for milestone levelling: XP is hidden and not awarded - New settings saved ahead of their features: multiclassing, auto-rolled monster and NPC attacks, roll visibility, hidden monster rolls, HP on level up, crit rule - docs/CAMPAIGN_SETTINGS.md lists every setting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -138,6 +138,42 @@ enum DiceMode {
|
||||
PHYSICAL
|
||||
}
|
||||
|
||||
// Which dice a campaign plays with. BOTH leaves it to each character (and
|
||||
// every roll can still be typed in from a real die).
|
||||
enum CampaignDiceMode {
|
||||
DIGITAL
|
||||
PHYSICAL
|
||||
BOTH
|
||||
}
|
||||
|
||||
// How a character's maximum HP grows on a level up: the fixed average of the
|
||||
// hit die (rounded up), or a roll of it.
|
||||
enum HpMethod {
|
||||
AVERAGE
|
||||
ROLL
|
||||
}
|
||||
|
||||
// How the builder arrives at the six ability scores.
|
||||
enum ScoreMethod {
|
||||
ROLL_4D6
|
||||
STANDARD_ARRAY
|
||||
POINT_BUY
|
||||
}
|
||||
|
||||
// Who sees a roll. ALL: everyone at the table. OWN: a player sees their own;
|
||||
// the DM always sees every roll.
|
||||
enum RollVisibility {
|
||||
ALL
|
||||
OWN
|
||||
}
|
||||
|
||||
// What a critical hit does to the damage: roll the dice twice (the rule), or
|
||||
// take the dice at their maximum and roll them once more on top.
|
||||
enum CritRule {
|
||||
DOUBLE_DICE
|
||||
MAX_PLUS_ROLL
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Identity & campaigns
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -182,6 +218,25 @@ model Campaign {
|
||||
// Off: nobody chooses a subclass. Each class follows its first one without
|
||||
// being asked, and subclasses are not named anywhere.
|
||||
subclassesEnabled Boolean @default(true)
|
||||
// On: a character can take levels in more than one class (game/multiclass.js).
|
||||
multiclassEnabled Boolean @default(false)
|
||||
// Which dice are rolled at this table; see CampaignDiceMode.
|
||||
diceMode CampaignDiceMode @default(BOTH)
|
||||
// On: when a monster's (or an NPC's) turn comes up in a battle, the server
|
||||
// picks a target, rolls the attack and the damage, and puts it to the DM to
|
||||
// accept, change or throw out.
|
||||
autoRollMonsters Boolean @default(false)
|
||||
autoRollNpcs Boolean @default(false)
|
||||
// Off: experience is not kept. No XP on the sheets, nothing to award after
|
||||
// an encounter, and nobody is shown as due a level.
|
||||
trackXp Boolean @default(true)
|
||||
hpOnLevelUp HpMethod @default(AVERAGE)
|
||||
abilityScoreMethod ScoreMethod @default(ROLL_4D6)
|
||||
rollVisibility RollVisibility @default(ALL)
|
||||
// On: the DM's rolls for monsters and NPCs are seen by the DM alone until
|
||||
// they are put into play.
|
||||
hideMonsterRolls Boolean @default(true)
|
||||
critRule CritRule @default(DOUBLE_DICE)
|
||||
ownerId String
|
||||
// Set while the campaign is archived: kept in full, but moved off the main
|
||||
// list and closed to new members until the DM restores it.
|
||||
|
||||
Reference in New Issue
Block a user