diff options
| author | Supremist <sergkarv@gmail.com> | 2025-10-29 00:40:14 +0200 |
|---|---|---|
| committer | Supremist <sergkarv@gmail.com> | 2025-10-29 00:40:14 +0200 |
| commit | c29738661837749c72e3743c71814703cd11e062 (patch) | |
| tree | 421a26874678eed3273322e7d3cbe7bc95954cc2 /main.py | |
| parent | f2c7dbddb602db06ec8e8a8c9a4134451acd52e9 (diff) | |
| download | pf2e_calc-c29738661837749c72e3743c71814703cd11e062.tar.xz pf2e_calc-c29738661837749c72e3743c71814703cd11e062.zip | |
Add simple creature stat builder
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,6 +1,7 @@ import math from character import CharacterPlan -from game import Roll, d +from game import Difficulty, Roll, d +from creature import CreaturePlan import pb2e @@ -155,8 +156,10 @@ def main4(): print(char.toJSON()) def main5(): - from creature import stats - print(stats.stats) + creature_plan = CreaturePlan(default_difficulty=Difficulty.Moderate) + creature_plan["reflex"] = Difficulty.High + creature = creature_plan.build(10) + print(creature) if __name__ == '__main__': |
