Show specific dice reqirements

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

View File

@ -12,7 +12,7 @@ move_dice_multiplyer = 0
damage_amount_addition = 0
damage_dice_multiplyer = 0
effects = [ 0, 9 ]
accepted_dice = [ 0, 1 ]
accepted_dice = [ 1, 2, 3 ]
number_of_dice = 1
same_dice_requirement = false
addition_dice = false

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):