This repository has been archived on 2023-06-20. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Renovate Bot 4d5e73a298 chore(deps): update dependency lint-staged to v11.2.6 2021-10-26 19:13:56 +00:00
.gitlab/issue_templates Use reuse for licensing 2021-06-05 01:24:33 +02:00
.husky Update yarn 2021-07-23 23:51:23 +02:00
.reuse Use reuse for licensing 2021-06-05 01:24:33 +02:00
.vscode Use reuse for licensing 2021-06-05 01:24:33 +02:00
.yarn chore: update yarn and foundry-vtt-types 2021-09-21 02:27:51 +02:00
LICENSES Use reuse for licensing 2021-06-05 01:24:33 +02:00
src chore: update yarn and foundry-vtt-types 2021-09-21 02:27:51 +02:00
.editorconfig Use reuse for licensing 2021-06-05 01:24:33 +02:00
.eslintrc.js Use reuse for licensing 2021-06-05 01:24:33 +02:00
.gitignore Use reuse for licensing 2021-06-05 01:24:33 +02:00
.gitlab-ci.yml Use reuse for licensing 2021-06-05 01:24:33 +02:00
.nvmrc Initial commit 2021-02-07 16:01:14 +01:00
.nvmrc.license Use reuse for licensing 2021-06-05 01:24:33 +02:00
.prettierrc.js Use reuse for licensing 2021-06-05 01:24:33 +02:00
.yarnrc.yml chore: update yarn and foundry-vtt-types 2021-09-21 02:27:51 +02:00
.yarnrc.yml.license chore: update yarn and foundry-vtt-types 2021-09-21 02:27:51 +02:00
README.md Use reuse for licensing 2021-06-05 01:24:33 +02:00
gulpfile.js Use reuse for licensing 2021-06-05 01:24:33 +02:00
package.json chore(deps): update dependency lint-staged to v11.2.6 2021-10-26 19:13:56 +00:00
package.json.license Use reuse for licensing 2021-06-05 01:24:33 +02:00
renovate.json Update renovate.json 2021-07-23 23:20:18 +02:00
renovate.json.license Add missing licensing info 2021-07-23 22:16:40 +02:00
risk-dice-modifier.png Fix typo 2021-02-07 19:40:50 +01:00
risk-dice-modifier.png.license Use reuse for licensing 2021-06-05 01:24:33 +02:00
rollup.config.js Use reuse for licensing 2021-06-05 01:24:33 +02:00
tsconfig.json Upgrade tooling 2021-05-23 02:54:32 +02:00
tsconfig.json.license Use reuse for licensing 2021-06-05 01:24:33 +02:00
yarn.lock chore(deps): update dependency lint-staged to v11.2.6 2021-10-26 19:13:56 +00:00
yarn.lock.license Use reuse for licensing 2021-06-05 01:24:33 +02:00

README.md

Risk Dice Modifier

An implementation of risk rolls as found for example in the Splittermond game system.

This module provides a new dice modifier ri for regular Dice. This modifier causes the dice roller to keep / drop dice according to the following rules:

  • If there are either two 1s or a 1 and a 2 in the results, keep only these dice.
  • Otherwise, keep the two dice with the highest results.
/roll 4d10ri # Roll 4d10 in risk die mode

Risk Dice Modifier

Installation

To install and use the Risk Dice Modifier module for Foundry Virtual Tabletop, simply paste the following URL into the Install Module dialog on the Setup menu of the application.

https://git.f3l.de/ghost/risk-dice-modifier/-/raw/latest/src/module.json?inline=false

Development

Prerequisites

In order to build this module, recent versions of node and yarn are required. We recommend using the latest lts version of node, which is v14.15.4 at the time of writing. If you use nvm to manage your node versions, you can simply run

nvm install

in the project's root directory.

You also need to install the the project's dependencies. To do so, run

yarn install

Building

You can build the project by running

yarn build

Alternatively, you can run

yarn build:watch

to watch for changes and automatically build as necessary.

Linking the built module to Foundry VTT

In order to provide a fluent development experience, it is recommended to link the built system to your local Foundry VTT installation's data folder. In order to do so, first add a file called foundryconfig.json to the project root with the following content:

{
    "dataPath": "<path to your home directory>/.local/share/FoundryVTT/Data"
}

On platforms other than Linux you need to adjust the path accordingly.

Then run

yarn link-project

Licensing

This project is being developed under the terms of the LIMITED LICENSE AGREEMENT FOR MODULE DEVELOPMENT for Foundry Virtual Tabletop.

The project itself is licensed under multiple licenses. It is difficult to keep this section up to date, so here is a brief summary as of June 2021:

  • Files under .yarn/ are from yarn and licensed under the BSD-2-Clause license.
  • Images are licensed under the CC-BY-4.0 license.
  • Other files are licensed under the MIT license.

For more accurate information, check the individual files.