diff --git a/docs/articles/dndR_Vignette.html b/docs/articles/dndR_Vignette.html index 14380c5..19408e7 100644 --- a/docs/articles/dndR_Vignette.html +++ b/docs/articles/dndR_Vignette.html @@ -110,9 +110,9 @@

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

Note that ‘2d20’ is automatically assumed to be rolling with advantage/disadvantage so it will return a message to that effect and both numbers.

@@ -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 16 20 +#> 1 1 2

You can also use probability_plot to roll dice a specified number of times and generate a ggplot2 graph of the frequency of various outcomes. The median outcome is specified by a @@ -139,12 +139,12 @@

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

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 @@ -157,14 +157,13 @@

Character Creation
 dndR::ability_scores(method = "4d6")
-#> At least one ability very low. Consider re-rolling?
 #>   ability score
-#> 1      V1    18
-#> 2      V2    11
-#> 3      V3    10
-#> 4      V4    16
-#> 5      V5    13
-#> 6      V6     7
+#> 1 V1 9 +#> 2 V2 14 +#> 3 V3 12 +#> 4 V4 17 +#> 5 V5 9 +#> 6 V6 11

If you do experience point-based leveling, you can use the pc_level_calc function to check what level your PC has reached with the amount of XP they have earned. Thanks to Humberto Nappo @@ -392,9 +391,9 @@

Creating Non-Player Characters
 dndR::npc_creator(npc_count = 2)
-#>        Race       Job
-#> 1 kalashtar mercenary
-#> 2  tiefling navigator
+#> Race Job +#> 1 stout halfling scholar +#> 2 rock gnome farrier

Creating Monsters @@ -468,38 +467,22 @@

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

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

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/articles/dndR_Vignette_files/figure-html/prob_plot_fxn-1.png b/docs/articles/dndR_Vignette_files/figure-html/prob_plot_fxn-1.png index 5539e78..485f1c7 100644 Binary files a/docs/articles/dndR_Vignette_files/figure-html/prob_plot_fxn-1.png and b/docs/articles/dndR_Vignette_files/figure-html/prob_plot_fxn-1.png differ diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index c21cfb2..eda671b 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-07-13T13:28Z +last_built: 2023-08-07T01:57Z diff --git a/docs/reference/ability_scores.html b/docs/reference/ability_scores.html index a1ac3dd..6126cfd 100644 --- a/docs/reference/ability_scores.html +++ b/docs/reference/ability_scores.html @@ -81,25 +81,23 @@

Value

Examples

# Roll ability scores using four d6 and dropping the lowest
 ability_scores(method = "4d6")
-#> At least one ability very low. Consider re-rolling?
 #>   ability score
-#> 1      V1    13
-#> 2      V2    17
-#> 3      V3    11
-#> 4      V4     7
-#> 5      V5    13
-#> 6      V6    10
+#> 1      V1    10
+#> 2      V2    13
+#> 3      V3    16
+#> 4      V4    11
+#> 5      V5    15
+#> 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     5
-#> 2      V2     9
-#> 3      V3     8
-#> 4      V4    16
-#> 5      V5     8
+#> 1      V1    15
+#> 2      V2    11
+#> 3      V3    13
+#> 4      V4     6
+#> 5      V5    12
 #> 6      V6    13
 
 # Or if you're truly wild, just roll a d20 for each ability
@@ -107,12 +105,12 @@ 

Examples

#> Total score low. Consider re-rolling? #> At least one ability very low. Consider re-rolling? #> ability score -#> 1 V1 16 -#> 2 V2 19 +#> 1 V1 7 +#> 2 V2 5 #> 3 V3 4 -#> 4 V4 13 -#> 5 V5 8 -#> 6 V6 4 +#> 4 V4 16 +#> 5 V5 11 +#> 6 V6 6
diff --git a/docs/reference/class_block.html b/docs/reference/class_block.html index ca97b5e..7c94447 100644 --- a/docs/reference/class_block.html +++ b/docs/reference/class_block.html @@ -99,27 +99,26 @@

Value

Examples

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

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                                             CHA; WIS
-#> 7           Immune_to                                  poison; bludgeoning
-#> 8        Resistant_to force; lightning; piercing; non-magical damage; fire
-#> 9       Vulnerable_to                                                 cold
-#> 10                STR                                                   +3
-#> 11                DEX                                                   +2
-#> 12                CON                                                   +1
-#> 13                INT                                                   +1
-#> 14                WIS                                                   +1
-#> 15                CHA                                                   +1
+#>             statistic
+#> 1          Hit_Points
+#> 2         Armor_Class
+#> 3          Prof_Bonus
+#> 4        Attack_Bonus
+#> 5             Save_DC
+#> 6  Prof_Saving_Throws
+#> 7           Immune_to
+#> 8        Resistant_to
+#> 9       Vulnerable_to
+#> 10                STR
+#> 11                DEX
+#> 12                CON
+#> 13                INT
+#> 14                WIS
+#> 15                CHA
+#>                                                         value
+#> 1                                                          77
+#> 2                                                          15
+#> 3                                                           3
+#> 4                                                           6
+#> 5                                                          15
+#> 6                                                    STR; DEX
+#> 7                                               radiant; cold
+#> 8  bludgeoning; non-magical damage; slashing; lightning; acid
+#> 9                                                       force
+#> 10                                                         +2
+#> 11                                                          0
+#> 12                                                         +2
+#> 13                                                         +1
+#> 14                                                         +1
+#> 15                                                          0
 
 
diff --git a/docs/reference/npc_creator.html b/docs/reference/npc_creator.html index b4da2d7..b0e470d 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 bugbear farrier
+#>                 Race       Job
+#> 1 lightfoot halfling carpenter
 
 
diff --git a/docs/reference/pc_creator.html b/docs/reference/pc_creator.html index a592759..0f8ad88 100644 --- a/docs/reference/pc_creator.html +++ b/docs/reference/pc_creator.html @@ -106,22 +106,22 @@

Examples

pc_creator(class = 'barbarian', race = 'half orc', score_method = "4d6", quiet = TRUE) #> ability raw_score race_modifier score roll_modifier #> 1 STR 15 2 17 +3 -#> 2 DEX 12 0 12 +1 +#> 2 DEX 10 0 10 0 #> 3 CON 12 1 13 +1 -#> 4 INT 12 0 12 +1 -#> 5 WIS 8 0 8 -1 -#> 6 CHA 10 0 10 0 +#> 4 INT 11 0 11 0 +#> 5 WIS 10 0 10 0 +#> 6 CHA 7 0 7 -2 # 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 14 2 16 +3 -#> 2 DEX 5 0 5 -3 -#> 3 CON 17 0 17 +3 +#> 1 STR 13 2 15 +2 +#> 2 DEX 11 0 11 0 +#> 3 CON 16 0 16 +3 #> 4 INT 11 0 11 0 -#> 5 WIS 11 0 11 0 -#> 6 CHA 18 1 19 +4 +#> 5 WIS 13 0 13 +1 +#> 6 CHA 17 1 18 +4 diff --git a/docs/reference/probability_plot-1.png b/docs/reference/probability_plot-1.png index 5864df3..1843835 100644 Binary files a/docs/reference/probability_plot-1.png and b/docs/reference/probability_plot-1.png differ diff --git a/docs/reference/roll.html b/docs/reference/roll.html index 389c7f8..e246514 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] 10
+#> [1] 13
 
 # Returned as a number so you can add rolls together or integers
 roll('1d20') + 5
-#> [1] 12
+#> [1] 18
 roll('2d8') + roll('1d4')
-#> [1] 10
+#> [1] 8