canismarko / dungeon-sheets

A tool to create character sheets and GM session notes for Dungeons and Dragons fifth edition (D&D 5e).
https://dungeon-sheets.readthedocs.io/en/latest/
GNU General Public License v3.0
161 stars 66 forks source link

Rogue: Arcane Trickster Spell Slot count is always 0 #150

Closed hawke114 closed 2 weeks ago

hawke114 commented 11 months ago

It seems the Arcane Trickster class multiclass_spellslots_by_level does not render into spell sheet. Replacing multiclass_spellslots_by_level in the class with spellslots_by_level works as expected.

PJBrs commented 2 months ago

So just like this?

diff --git a/dungeonsheets/classes/rogue.py b/dungeonsheets/classes/rogue.py
index 566ac71..b6d2207 100644
--- a/dungeonsheets/classes/rogue.py
+++ b/dungeonsheets/classes/rogue.py
@@ -56,7 +56,7 @@ class ArcaneTrickster(SubClass):
     features_by_level[13] = [features.VersatileTrickster]
     features_by_level[17] = [features.SpellThief]
     spellcasting_ability = "intelligence"
-    multiclass_spellslots_by_level = {
+    spell_slots_by_level = {
         # char_lvl: (cantrips, 1st, 2nd, 3rd, ...)
         1: (0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
         2: (0, 0, 0, 0, 0, 0, 0, 0, 0, 0),

I think this is how the Eldritch Knight does it.

@canismarko I'd be happy to add a patch for this oneliner as well :-)