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-2.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monsterlab-2.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file monsterlab-2.1.0.tar.gz.

File metadata

  • Download URL: monsterlab-2.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for monsterlab-2.1.0.tar.gz
Algorithm Hash digest
SHA256 731d93cf0cb4bc38b0771cb81289aa193845586b82e80e07f0cd75e6751169f7
MD5 3f9c9acc7a53bfd2db9090f8e3af022c
BLAKE2b-256 fce3c19e092a3c768f837df2e1b7c04c683fa26c7c8a8f2d2d1743f664a57e48

See more details on using hashes here.

File details

Details for the file monsterlab-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: monsterlab-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for monsterlab-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7feb17187bc6daa4bf3bff5c1af5ea02e698ea03247913745f49343f910757b9
MD5 3e6e0ab4da344b04d430050aa3a26d4f
BLAKE2b-256 1f7b3256e98324011f704921fed6ae845e7fd11bbd774418221cca7cfcbde1dc

See more details on using hashes here.

Supported by

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