Catalog npm
Back to packageRELEASE DETAILS

0.1.0-a

npm

3dr

Different Functions for the die roller include: - critDamage - d20Rolls - d20adv - d20disAdv - dieRoller - dieRollString - simpleRoll - splitDiceRollString

Published26 Nov 2018
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

Dungeons and Dragons Dice Roller (3DR)

By Travis Stratton

Different Functions for the die roller include:

  • critDamage
  • d20Rolls
  • d20adv
  • d20disAdv
  • dieRoller
  • dieRollString
  • simpleRoll
  • splitDiceRollString

Basic Functions:

DiRoller

BasicUsage

simpleRoll(sides) // returns a single die roll no mods

//ex:
    simpleRoll(20) => 3;

dieRoller(count, sides, modifier) // mod is optional
result = [ die roll, modifier, total];

// ex:
    dieRoller(2, 6, 3) => [ [1,2], 3, 6 ] // 2d6 + 3

dieRollString(roll) // Converts the die rolls to a string

// ex:
    dieRollString([ [1,2], 3, 6 ]) => "(1, 2) + 3 = 6"

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-uyufxF5acFB+zCEDNaa4CEjkr3VCNp8e6WIBMkYylH/NZE/aEy/ZByEi0+UABhwsjexkg1pDNIjo+Shcp0RAEQ==",
  "shasum": "4178afdf785c7f6ce88a53dca701df29320d3ef9",
  "tarball": "https://registry.npmjs.org/3dr/-/3dr-0.1.0-a.tgz",
  "fileCount": 3,
  "unpackedSize": 2984,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/B/LCRA9TVsSAnZWagAAQVsP/ivIwEyxBN6sCR7jpbn2\nkU1Q9dSTcAuxLvWI53IZTjQJemPbmYCftVXZ4rNbXxlFY58+boyVsAh5WltR\nZIEBwGmZ1tHGAewhmMXGvU4ZVVPbETR6ojPoN+c7VBxTVbZozoTRXbkP26TK\nQQanttHf4OSWtcCnKKKFQQLUJOSWFxyNbHqR4scoDpEqybYRiSa9NdkfdEWy\nFY6o0HKBIg3vAKkoBqh2MhhDtAoWLW/4gfV5HG+4rx6/bLfH9vk/R4KrevEh\n4rvjx+xqDeAuLGQsmipJ4Nr0uGZTCNoGgIFIEgKAz2B21NWqdea8efcU3OnI\nKb3otexkbCpKhBFTyDzwTA9gLTYUUd1xeu4mddSzkOFuM/nPc+CcOis8owQM\npQJSgyqm/eqrwmQgLykLv0yf/Hr5VexShKSHmxZwSF2XeVXniYHlD3tiZvh4\no9HDDOyaRvWKVE+Cah2QYSl8PYC0Ps0ZnX+RwtG5ftoORyO9QKx9lXcLsKoZ\niy2H/PNrJzhvO4tDp7WLKDA5TEqgdhlJIwEZzV0nFJX+cpsfEM49jIm1ST+L\ndQkhejPBXv9GXSsFpj+HkvVXao3L/ZqtPQM1p8QO/ditFzH2zXu5rj8W5RHK\nfS3G5OKGYItrYDIBWWQs6siQRoH5tzitWKRDIALqLUyMQnssG+REr26NDYaS\n5N5i\r\n=PcTv\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDm/MSvV4viUuDH+SwmHf6i89D89aeHLUhUJH+vfR7V/QIgYE034W/7fzH6ZR04yNcPFty2wpVt6UERhEXYTGLGw50="
    }
  ]
}

Repository

PENDING
tstrat/3dr

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:0562667cb1649036eea6ddadda8eb0e54ce37104f6ff1230855afbda172c8709

Other collected versions

0.1.06 NovView all collected versions →