remove 'onready' on card value
This value should not be reinitialized upon entering the scene tree.
This commit is contained in:
parent
d4e5a921d8
commit
528603f90d
3
Deck.gd
3
Deck.gd
|
@ -82,4 +82,5 @@ func draw_card() -> CardValue:
|
|||
return null
|
||||
var card_id = card_order[next_to_draw]
|
||||
next_to_draw += 1
|
||||
return card_id
|
||||
var card = cards[card_id]
|
||||
return card
|
||||
|
|
|
@ -8,7 +8,8 @@ export var revealed: bool = true setget reveal
|
|||
export(Enums.Month) var month: int setget _set_card_month
|
||||
export(Enums.Type) var type: int setget _set_card_type
|
||||
|
||||
onready var value = CardValue.new(Enums.Month.JANUARY, Enums.Type.LIGHT)
|
||||
var value: CardValue = CardValue.new(Enums.Month.JANUARY, Enums.Type.LIGHT)
|
||||
|
||||
onready var _is_ready := true
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
|
|
Loading…
Reference in a new issue