Skip to main content

Monster Generator

Project description

MonsterLab

by Robert Sharp

Monster Class

Optional Inputs

It is recommended to pass all the optional arguments or none of them. For example, a custom type requires a custom name.

  • Name: Compound Gaussian Distribution -> String
    • Derived from Type
    • Multidimensional distribution of types and subtypes
  • Type: Wide Flat Distribution -> String
    • Demonic
    • Devilkin
    • Dragon
    • Undead
    • Elemental
    • Fey
    • Undead
  • Level: Poisson Distribution -> Integer
    • Range: [1..20]
    • Most Common: [4..7] ~64%
    • Mean: 6.001
    • Median: 6
  • Rarity: Linear Distribution [Rank 0..Rank 5] -> String
    • Rank 0: 30.5% Very Common
    • Rank 1: 25.0% Common
    • Rank 2: 19.4% Uncommon
    • Rank 3: 13.8% Rare
    • Rank 4: 8.3% Epic
    • Rank 5: 2.7% Legendary

Derived Fields

  • Damage: Compound Geometric Distribution with Linear Noise -> String
    • Derived from Level and Rarity
  • Health: Geometric Distribution with Gaussian Noise -> Float
    • Derived from Level and Rarity
  • Energy: Geometric Distribution with Gaussian Noise -> Float
    • Derived from Level and Rarity
  • Sanity: Geometric Distribution with Gaussian Noise -> Float
    • Derived from Level and Rarity
  • Time Stamp: The Monster's Birthday -> String

Example Monster

  • Name: Revenant
  • Type: Undead
  • Level: 3
  • Rarity: Rank 0
  • Damage: 3d2+1
  • Health: 6.35
  • Energy: 5.78
  • Sanity: 6.0
  • Time Stamp: 2021-08-09 14:23:23

Code Example

$ pip install MonsterLab
$ python3
>>> from MonsterLab import Monster
>>> Monster()
Name: Imp
Type: Demonic
Level: 10
Rarity: Rank 0
Damage: 10d2+1
Health: 20.89
Energy: 20.55
Sanity: 20.79
Time Stamp: 2021-08-09 14:23:23

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MonsterLab-1.0.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

MonsterLab-1.0.6-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file MonsterLab-1.0.6.tar.gz.

File metadata

  • Download URL: MonsterLab-1.0.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for MonsterLab-1.0.6.tar.gz
Algorithm Hash digest
SHA256 b8bd2bcd2793b5fed7d5c2bce939a4bd878e31f8a77b37653a244c8c7baa3502
MD5 7463a45008467fa218c429ffbed81721
BLAKE2b-256 3356e3e259d9a8579713d7969067e08a3d383b99ce92b1bf0c588c55a5c85d7b

See more details on using hashes here.

File details

Details for the file MonsterLab-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: MonsterLab-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for MonsterLab-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b6864a1b0d08a8bb9c92befa608f5068f76e3a13a365e445ffe763d14814e52e
MD5 9df4070bd4a4679a7e8a209162082186
BLAKE2b-256 d6a5a4a4d4beca3cdfb43da94ed678a73f0fe7c14f2f7676c64a4aced4640189

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page