From 598fbb65818121c8ae56e4a2d1eed1b5696df925 Mon Sep 17 00:00:00 2001 From: James Miller Date: Fri, 2 Aug 2019 18:12:59 -0500 Subject: [PATCH] added values for ability scores in binary form --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 7a1c041..1f7d8ce 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,20 @@ sqlite database. 2. Write script to generate sqlite database from sql code; 3. Write sql code; and 4. Drinks for all when finished! + +# Conventions in the Code + +## Ability Scores in Integer Representation + +| Ability Type | Value | +|--------------|-------| +| STR | 1 | +| DEX | 2 | +| CON | 4 | +| INT | 8 | +| WIS | 16 | +| CHA | 32 | + +If I wanted to say STR and DEX, I would use a `3`. If I wanted STR, WIS, and +CHA, that would be 1 + 16 + 32 = `49`. This is to not have to have more database +tables than necessary when trying to list one or more ability scores.