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_amount_addition = 0
|
||||||
damage_dice_multiplyer = 0
|
damage_dice_multiplyer = 0
|
||||||
effects = [ 0, 9 ]
|
effects = [ 0, 9 ]
|
||||||
accepted_dice = [ 0, 1 ]
|
accepted_dice = [ 1, 2, 3 ]
|
||||||
number_of_dice = 1
|
number_of_dice = 1
|
||||||
same_dice_requirement = false
|
same_dice_requirement = false
|
||||||
addition_dice = false
|
addition_dice = false
|
||||||
|
12
UI/Card.gd
12
UI/Card.gd
@ -69,6 +69,18 @@ func _ready():
|
|||||||
#maybe set the addition amount
|
#maybe set the addition amount
|
||||||
if card_info.addition_dice:
|
if card_info.addition_dice:
|
||||||
self.addition_dice_amount = card_info.addition_amount
|
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):
|
func dice_inputted(dice_number):
|
||||||
|
Loading…
Reference in New Issue
Block a user