From 20f1608cbeb66bde5a712e05c9069f9f07795626 Mon Sep 17 00:00:00 2001 From: evilchili Date: Thu, 18 Jan 2024 22:48:58 -0800 Subject: [PATCH] adding reset() --- rolltable/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rolltable/types.py b/rolltable/types.py index 5266bda..260f45e 100644 --- a/rolltable/types.py +++ b/rolltable/types.py @@ -107,6 +107,9 @@ class RollTable: self._rows.append(self._column_filter([f'd{face+1}'] + row)) return self._rows + def reset(self) -> None: + self._generated_values = None + def as_markdown(self) -> str: return Table(self.rows).markdown()