Fix the movement amount calculation
This commit is contained in:
@ -126,6 +126,12 @@ func run_card():
|
||||
damage += card_info.damage_dice_multiplyer * dice_number
|
||||
emit_signal("do_damage", damage, card_info.effect_damage_range)
|
||||
|
||||
# calculate the damage amount
|
||||
var movement = card_info.move_amount_addition
|
||||
for dice_number in input_dice:
|
||||
movement += card_info.move_dice_multiplyer * dice_number
|
||||
emit_signal("do_movement", movement)
|
||||
|
||||
# do any utility dice returns
|
||||
for dice_number in input_dice:
|
||||
|
||||
@ -176,7 +182,6 @@ func run_card():
|
||||
for effect in card_info.effects:
|
||||
emit_signal("do_effect", effect, card_info.effect_damage_range)
|
||||
|
||||
emit_signal("do_movement", card_info.movement)
|
||||
|
||||
#clear the input dice
|
||||
input_dice = []
|
||||
|
@ -69,8 +69,7 @@ func _physics_process(delta):
|
||||
current_cards[hovering_card].dice_inputted(currently_holding_dice)
|
||||
current_cards[hovering_card].hovering_dice = null
|
||||
selected = false
|
||||
|
||||
|
||||
|
||||
|
||||
func draw_card(specific_card : String = ""):
|
||||
# make a new card instance and add it to the grid container
|
||||
|
Reference in New Issue
Block a user