summaryrefslogtreecommitdiff
path: root/src/rules/races.rs
diff options
context:
space:
mode:
authorDavid Gay <eapoems@riseup.net>2023-10-16 13:41:08 -0400
committerDavid Gay <eapoems@riseup.net>2023-10-16 13:41:08 -0400
commit686726b414dcb9d0fe66ec0d64436f51919a0fd1 (patch)
treed23fed79a62a8e9ddb02ff33a2433a5d7a860e75 /src/rules/races.rs
parente7f14e4fcac1e82de0160661c7382db3e8ac6854 (diff)
Racial ability score min/max (male only)
Diffstat (limited to 'src/rules/races.rs')
-rw-r--r--src/rules/races.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rules/races.rs b/src/rules/races.rs
index 700c7ea..6c9b00f 100644
--- a/src/rules/races.rs
+++ b/src/rules/races.rs
@@ -10,6 +10,14 @@ pub struct Race {
pub name: String,
pub ability_score_modifiers: HashMap<AbilityScore, i32>,
pub npc_ability_score_modifiers: HashMap<AbilityScore, i32>,
+ pub ability_score_ranges: HashMap<AbilityScore, AbilityScoreRange>,
+}
+
+// TODO: Allow configuration of whether to use female ranges or not.
+#[derive(Deserialize)]
+pub struct AbilityScoreRange {
+ pub male: [u8; 2],
+ // pub female: [u8; 2], // TODO: Enable female ranges.
}
lazy_static! {