Skip to content

Adds roll_dice, an advanced xdy dice roller. #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ComradeNiobe
Copy link

@ComradeNiobe ComradeNiobe commented May 3, 2025

This PR adds a very simple function, roll_dice. It is essentially a straight upgrade from BYOND's built-in roll() proc that can do some pretty useful stuff for SS13 servers or other BYOND games that want to go more into RPG-style gameplay, like exploding dice, keeping/dropping highest or lowest, etc.

The actual syntax and examples can be found here:
https://docs.rs/caith/latest/caith/#syntax
https://docs.rs/caith/latest/caith/#examples

also this is my first time coding with rust in awhile so any advice is appreciated :)

ComradeNiobe and others added 3 commits May 3, 2025 00:02
Copy link
Collaborator

@ZeWaka ZeWaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be added to the README

@ComradeNiobe ComradeNiobe requested a review from ZeWaka May 17, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants