adding reset()

This commit is contained in:
evilchili 2024-01-18 22:48:58 -08:00
parent 6b3e094d79
commit 20f1608cbe

View File

@ -107,6 +107,9 @@ class RollTable:
self._rows.append(self._column_filter([f'd{face+1}'] + row)) self._rows.append(self._column_filter([f'd{face+1}'] + row))
return self._rows return self._rows
def reset(self) -> None:
self._generated_values = None
def as_markdown(self) -> str: def as_markdown(self) -> str:
return Table(self.rows).markdown() return Table(self.rows).markdown()