Show specific dice reqirements
This commit is contained in:
parent
8abb393949
commit
57ca632630
@ -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
|
||||
|
12
UI/Card.gd
12
UI/Card.gd
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user