diff --git a/docs/articles/dndR_Vignette.html b/docs/articles/dndR_Vignette.html index 9fba2b4..ce2f936 100644 --- a/docs/articles/dndR_Vignette.html +++ b/docs/articles/dndR_Vignette.html @@ -110,7 +110,7 @@

Dice Rolling
 dndR::roll('3d6')
-#> [1] 14
+#> [1] 10
 dndR::roll('3d8') + dndR::roll('1d4')
 #> [1] 21

Note that ‘2d20’ is automatically assumed to be rolling with @@ -120,7 +120,7 @@

Dice RollingdndR::roll(dice = '2d20') #> Assuming you're rolling for (dis)advantage so both rolls returned #> roll_1 roll_2 -#> 1 1 7 +#> 1 19 20

Character Creation @@ -132,12 +132,12 @@

Character Creation
 dndR::pc_creator(class = 'barbarian', race = 'half orc', score_method = "4d6")
 #>   ability raw_score race_modifier score roll_modifier
-#> 1     STR        17             2    19            +4
-#> 2     DEX        13             0    13            +1
-#> 3     CON        15             1    16            +3
-#> 4     INT        10             0    10             0
-#> 5     WIS         8             0     8            -1
-#> 6     CHA        10             0    10             0

+#> 1 STR 16 2 18 +4 +#> 2 DEX 12 0 12 +1 +#> 3 CON 14 1 15 +2 +#> 4 INT 9 0 9 -1 +#> 5 WIS 12 0 12 +1 +#> 6 CHA 11 0 11 0

You can check which classes and races are currently supported by pc_creator by running dnd_classes or dnd_races. If you have a class/race in mind that isn’t @@ -153,10 +153,10 @@

Character Creation#> ability score #> 1 V1 13 #> 2 V2 12 -#> 3 V3 13 -#> 4 V4 14 -#> 5 V5 12 -#> 6 V6 14 +#> 3 V3 14 +#> 4 V4 10 +#> 5 V5 13 +#> 6 V6 12

Encounter Balancing @@ -328,22 +328,22 @@

Homebrewing Custom Mon the monster’s strengths and weaknesses before the final showdown.

 dndR::monster_creator(party_level = 5, party_size = 4)
-#>             statistic                                                  value
-#> 1          Hit_Points                                                     92
-#> 2         Armor_Class                                                     16
-#> 3          Prof_Bonus                                                      3
-#> 4        Attack_Bonus                                                      7
-#> 5             Save_DC                                                     16
-#> 6  Prof_Saving_Throws                                               INT; DEX
-#> 7           Immune_to                                           poison; acid
-#> 8        Resistant_to force; non-magical damage; necrotic; piercing; psychic
-#> 9       Vulnerable_to                                                   cold
-#> 10                STR                                                     +1
-#> 11                DEX                                                     +3
-#> 12                CON                                                     +1
-#> 13                INT                                                     +1
-#> 14                WIS                                                     +2
-#> 15                CHA                                                     +1
+#> statistic value +#> 1 Hit_Points 92 +#> 2 Armor_Class 16 +#> 3 Prof_Bonus 3 +#> 4 Attack_Bonus 7 +#> 5 Save_DC 16 +#> 6 Prof_Saving_Throws CON; DEX +#> 7 Immune_to radiant; acid +#> 8 Resistant_to non-magical damage; bludgeoning; piercing; cold; necrotic +#> 9 Vulnerable_to force +#> 10 STR 0 +#> 11 DEX +2 +#> 12 CON +2 +#> 13 INT +1 +#> 14 WIS +1 +#> 15 CHA +3

Note that if you use monster_creator you may need to help your players identify the creature’s immunities and vulnerabilities before the actual confrontation with the creature to avoid diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index da04039..ee738f9 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -3,5 +3,5 @@ pkgdown: 2.0.7 pkgdown_sha: ~ articles: dndR_Vignette: dndR_Vignette.html -last_built: 2023-03-28T16:12Z +last_built: 2023-03-28T16:23Z diff --git a/docs/reference/ability_scores.html b/docs/reference/ability_scores.html index 1d96920..76c83b5 100644 --- a/docs/reference/ability_scores.html +++ b/docs/reference/ability_scores.html @@ -81,35 +81,39 @@

Value

Examples

# Roll ability scores using four d6 and dropping the lowest
 ability_scores(method = "4d6")
+#> Total score low. Consider re-rolling?
+#> At least one ability very low. Consider re-rolling?
 #>   ability score
-#> 1      V1    16
-#> 2      V2    12
-#> 3      V3    18
-#> 4      V4    13
-#> 5      V5    11
-#> 6      V6    15
+#> 1      V1    12
+#> 2      V2    13
+#> 3      V3    17
+#> 4      V4     7
+#> 5      V5     8
+#> 6      V6    11
 
 # Roll using 3d6 and dropping nothing
 ability_scores("3d6")
+#> Total score low. Consider re-rolling?
+#> At least one ability very low. Consider re-rolling?
 #>   ability score
-#> 1      V1     9
-#> 2      V2    12
-#> 3      V3     9
-#> 4      V4    17
-#> 5      V5    14
-#> 6      V6    10
+#> 1      V1    18
+#> 2      V2     6
+#> 3      V3     8
+#> 4      V4     9
+#> 5      V5    12
+#> 6      V6    13
 
 # Or if you're truly wild, just roll a d20 for each ability
 ability_scores('d20')
 #> Total score low. Consider re-rolling?
 #> At least one ability very low. Consider re-rolling?
 #>   ability score
-#> 1      V1    11
+#> 1      V1     7
 #> 2      V2    13
-#> 3      V3     8
-#> 4      V4     3
-#> 5      V5     5
-#> 6      V6     6
+#> 3      V3     3
+#> 4      V4    11
+#> 5      V5     7
+#> 6      V6     9
 
 
diff --git a/docs/reference/class_block.html b/docs/reference/class_block.html index bdf5b03..7ae382d 100644 --- a/docs/reference/class_block.html +++ b/docs/reference/class_block.html @@ -102,23 +102,23 @@

Examples

#> Total score low. Consider re-rolling? #> At least one ability very low. Consider re-rolling? #> ability score -#> 1 STR 10 +#> 1 STR 11 #> 2 DEX 10 -#> 3 CON 12 +#> 3 CON 15 #> 4 INT 15 -#> 5 WIS 4 -#> 6 CHA 11 +#> 5 WIS 5 +#> 6 CHA 12 # Or you can roll separately and then create a character with that dataframe my_scores <- ability_scores(method = "4d6") class_block(class = "fighter", scores_rolled = TRUE, scores_df = my_scores) #> ability score -#> 1 STR 16 -#> 2 DEX 15 -#> 3 CON 13 -#> 4 INT 13 -#> 5 WIS 14 -#> 6 CHA 13 +#> 1 STR 15 +#> 2 DEX 14 +#> 3 CON 9 +#> 4 INT 9 +#> 5 WIS 10 +#> 6 CHA 14 diff --git a/docs/reference/monster_creator.html b/docs/reference/monster_creator.html index 50031db..cc657ba 100644 --- a/docs/reference/monster_creator.html +++ b/docs/reference/monster_creator.html @@ -81,22 +81,22 @@

Value

Examples

# Creates a monster from the specified average party level
 monster_creator(party_level = 4, party_size = 3)
-#>             statistic                                         value
-#> 1          Hit_Points                                            77
-#> 2         Armor_Class                                            15
-#> 3          Prof_Bonus                                             3
-#> 4        Attack_Bonus                                             6
-#> 5             Save_DC                                            15
-#> 6  Prof_Saving_Throws                                      DEX; CHA
-#> 7           Immune_to                                 cold; radiant
-#> 8        Resistant_to necrotic; acid; bludgeoning; poison; piercing
-#> 9       Vulnerable_to                                     lightning
-#> 10                STR                                            +1
-#> 11                DEX                                            +1
-#> 12                CON                                             0
-#> 13                INT                                            +1
-#> 14                WIS                                            +2
-#> 15                CHA                                            +3
+#>             statistic                                      value
+#> 1          Hit_Points                                         77
+#> 2         Armor_Class                                         15
+#> 3          Prof_Bonus                                          3
+#> 4        Attack_Bonus                                          6
+#> 5             Save_DC                                         15
+#> 6  Prof_Saving_Throws                                   CHA; WIS
+#> 7           Immune_to                             fire; piercing
+#> 8        Resistant_to force; necrotic; psychic; slashing; poison
+#> 9       Vulnerable_to                                bludgeoning
+#> 10                STR                                         +1
+#> 11                DEX                                         +2
+#> 12                CON                                         +1
+#> 13                INT                                         +1
+#> 14                WIS                                         +1
+#> 15                CHA                                         +4
 
 
diff --git a/docs/reference/npc_creator.html b/docs/reference/npc_creator.html index 8922d31..bad9158 100644 --- a/docs/reference/npc_creator.html +++ b/docs/reference/npc_creator.html @@ -77,8 +77,8 @@

Value

Examples

# Create some information for an NPC
 npc_creator(npc_count = 1)
-#>             Race       Job
-#> 1 stout halfling gladiator
+#>       Race    Job
+#> 1 half-elf knight
 
 
diff --git a/docs/reference/pc_creator.html b/docs/reference/pc_creator.html index 61ed30e..68a6055 100644 --- a/docs/reference/pc_creator.html +++ b/docs/reference/pc_creator.html @@ -105,23 +105,23 @@

Examples

# Create a PC's base statistics from scratch
 pc_creator(class = 'barbarian', race = 'half orc', score_method = "4d6", quiet = TRUE)
 #>   ability raw_score race_modifier score roll_modifier
-#> 1     STR        16             2    18            +4
+#> 1     STR        14             2    16            +3
 #> 2     DEX        11             0    11             0
-#> 3     CON        14             1    15            +2
-#> 4     INT        11             0    11             0
-#> 5     WIS        14             0    14            +2
-#> 6     CHA        13             0    13            +1
+#> 3     CON        12             1    13            +1
+#> 4     INT         8             0     8            -1
+#> 5     WIS         9             0     9            -1
+#> 6     CHA        11             0    11             0
 
 # Or you can roll separately and then create a character with that dataframe
 my_scores <- ability_scores(method = "4d6", quiet = TRUE)
 pc_creator(class = 'sorcerer', race = 'dragonborn', scores_rolled = TRUE, scores_df = my_scores)
 #>   ability raw_score race_modifier score roll_modifier
-#> 1     STR         5             2     7            -2
-#> 2     DEX         6             0     6            -2
-#> 3     CON        13             0    13            +1
-#> 4     INT        12             0    12            +1
-#> 5     WIS        11             0    11             0
-#> 6     CHA        14             1    15            +2
+#> 1     STR        12             2    14            +2
+#> 2     DEX        10             0    10             0
+#> 3     CON        14             0    14            +2
+#> 4     INT        13             0    13            +1
+#> 5     WIS        12             0    12            +1
+#> 6     CHA        15             1    16            +3
 
 
diff --git a/docs/reference/roll.html b/docs/reference/roll.html index 69a2646..e2ef6aa 100644 --- a/docs/reference/roll.html +++ b/docs/reference/roll.html @@ -81,13 +81,13 @@

Value

Examples

# Roll your desired dice (i.e., randomly sample the specified die)
 roll(dice = "4d6")
-#> [1] 16
+#> [1] 14
 
 # Returned as a number so you can add rolls together or integers
 roll('1d20') + 5
-#> [1] 11
+#> [1] 25
 roll('2d8') + roll('1d4')
-#> [1] 10
+#> [1] 13