fixed missing peice with effect sand cards
This commit is contained in:
parent
eaafc94d0a
commit
531a8c3588
1 changed files with 3 additions and 3 deletions
|
|
@ -54,14 +54,14 @@ func update_appearance() -> void:
|
|||
var deck_manager = chess_game.deckManager
|
||||
var has_card = deck_manager.attached_cards.has(get_instance_id())
|
||||
var has_effect = deck_manager.attached_effects.has(get_instance_id())
|
||||
var base_color = Color.WHITE if Item_Color == 0 else Color.BLACK
|
||||
|
||||
if has_effect and deck_manager.attached_effects[get_instance_id()].size() > 0:
|
||||
modulate = base_color * ( EFFECT_TINT_COLOR)
|
||||
if has_card:
|
||||
# Apply tint while keeping the piece color
|
||||
var base_color = Color.WHITE if Item_Color == 0 else Color.BLACK
|
||||
modulate = base_color * CARD_TINT_COLOR
|
||||
|
||||
if has_effect:
|
||||
modulate = base_color * CARD_TINT_COLOR * EFFECT_TINT_COLOR
|
||||
|
||||
# Update duration display
|
||||
var card = deck_manager.attached_cards[get_instance_id()]
|
||||
|
|
|
|||
Loading…
Reference in a new issue