Show specific dice reqirements

This commit is contained in:
2022-07-17 19:06:32 +01:00
parent 8abb393949
commit 57ca632630
2 changed files with 13 additions and 1 deletions

View File

@ -69,6 +69,18 @@ func _ready():
#maybe set the addition amount
if card_info.addition_dice:
self.addition_dice_amount = card_info.addition_amount
# show the requirements for a dice
# TODO more difference from addition, smaller font, >, <, etc.
if len(card_info.accepted_dice) != 0:
var dice_string : String = ""
for num in card_info.accepted_dice:
dice_string += String(num)
dice_string += ","
dice_string = dice_string.trim_suffix(",")
$VBox/AutoGrid/InputDice0/Number.text = dice_string
func dice_inputted(dice_number):