mirror of
https://gitlab.com/EternalWanderer/dice-roller.git
synced 2024-11-28 21:03:51 +01:00
New package, changed -c to -t
This commit is contained in:
parent
b3350a5765
commit
d92e8cd230
6
APKBUILD
6
APKBUILD
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Marty Sluijtman <marty.wanderer@disroot.org>
|
||||
pkgname=dice-roller
|
||||
pkgver=0.4
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A little D&D dice roller written in go"
|
||||
url="https://gitlab.com/EternalWanderer/dice-roller"
|
||||
arch="all"
|
||||
|
@ -25,6 +25,6 @@ package() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
45b37c9d58883b81a23a7d46dedfc44177d770dc18d859f11af5995352fc8a8fe4823bc3a7b5f5f0ef4dd09668ce09538b3e47977e33aa40ad4f964f901e0769 dice-roller-0.4.tar.gz
|
||||
0c25eb007d89a5c95c8f5c2924ca8f556e23ab53412b0186add03c8a3104c544c3ef8dbc6d3483bbaf04dfbd071cde5ebfc3ae5bf6d427152197376f7052d7f8 zsh.completion
|
||||
473c5efc4a7fe4dc28ec382a2b23662e97bfa039d06464101b45a237a454544263ee3b13f5eb40611b4b05b7a8cb6c19bee67d9288de6339a7d46951030ff317 dice-roller-0.4.tar.gz
|
||||
7a036760c11a4d74532db14c4a0907798ac356a4f4433338abf14a322ecb7fa230f5322d1563661b16f9ae149d2e84c3df1584d597e951d278e0f89d56b24a57 zsh.completion
|
||||
"
|
||||
|
|
|
@ -5,7 +5,7 @@ dice-roller \- Dice roller utility written in GO
|
|||
.B dice-roller
|
||||
.OP -a
|
||||
.OP -s
|
||||
.OP -c
|
||||
.OP -t
|
||||
.OP -m
|
||||
.PP
|
||||
.B dice-roller
|
||||
|
@ -28,7 +28,7 @@ Roll a set rules multiple times, does not apply to advantage and disadvantage, d
|
|||
.B -s --surfaces
|
||||
Use to specify die surfaces, does not apply to advantage and disadvantage, defaults to 20.
|
||||
.TP
|
||||
.B -c --throws
|
||||
.B -t --throws
|
||||
Specify amount of dice to cast
|
||||
.TP
|
||||
.B -m --modifier
|
||||
|
|
2
main.go
2
main.go
|
@ -96,7 +96,7 @@ func ParseFlags() {
|
|||
flag.IntVar(&surfaces, "s", 20, "Use to specify die surfaces, defaults to 20")
|
||||
|
||||
flag.IntVar(&diceThrows, "throws", 1, "Specify amount of dice to cast")
|
||||
flag.IntVar(&diceThrows, "c", 1, "Specify amount of dice to cast")
|
||||
flag.IntVar(&diceThrows, "t", 1, "Specify amount of dice to cast")
|
||||
|
||||
flag.IntVar(&modifier, "modifier", 0, "Add modifier to result of rolls")
|
||||
flag.IntVar(&modifier, "m", 0, "Add modifier to result of rolls")
|
||||
|
|
|
@ -4,8 +4,8 @@ arguments=(
|
|||
'(--coin --advantage --disadvantage --attacks)-a[Roll a set rules multiple times]:(number of attacks)'
|
||||
'(--coin --advantage --disadvantage -a)--attacks[Roll a set rules multiple times]:(number of attacks)'
|
||||
|
||||
'(--coin --advantage --disadvantage --throws)-c[Specify amount of dice to cast]:(number of dice)'
|
||||
'(--coin --advantage --disadvantage -c)--throws[Specify amount of dice to cast]:(number of dice)'
|
||||
'(--coin --advantage --disadvantage --throws)-t[Specify amount of dice to cast]:(number of dice)'
|
||||
'(--coin --advantage --disadvantage -t)--throws[Specify amount of dice to cast]:(number of dice)'
|
||||
|
||||
'(--coin --advantage --disadvantage --surfaces)-s[Use to specify die surfaces]:(number of surfaces):(4 6 8 10 12 20 100)'
|
||||
'(--coin --advantage --disadvantage -s)--surfaces[Use to specify die surfaces]:(number of surfaces):(4 6 8 10 12 20 100)'
|
||||
|
@ -13,8 +13,8 @@ arguments=(
|
|||
'(--coin --modifier)-m[Add modifier to result of rolls]:(number to add)'
|
||||
'(--coin -m)--modifier[Add modifier to result of rolls]:(number to add)'
|
||||
|
||||
'(--coin --advantage -c --throws -a --attacks -s --surfaces)--disadvantage[Roll 2d20 and take the lowest value]'
|
||||
'(--coin --disadvantage -c -a --throws --attacks -s --surfaces)--advantage[Roll 2d20 and take the highest value]'
|
||||
'(--coin --advantage -t --throws -a --attacks -s --surfaces)--disadvantage[Roll 2d20 and take the lowest value]'
|
||||
'(--coin --disadvantage -t -a --throws --attacks -s --surfaces)--advantage[Roll 2d20 and take the highest value]'
|
||||
'(--disadvantage --advantage -a --attacks -s --surfaces -m --modifier)--coin[Toss coin, same as -s 2]'
|
||||
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue