24 lines
No EOL
607 B
GDScript
24 lines
No EOL
607 B
GDScript
class_name DoubleTimeCard extends Card
|
|
|
|
func _init():
|
|
super._init()
|
|
# id = Utils.generate_guid()
|
|
cardName = "Double Time"
|
|
rank = Rank.RANK_3
|
|
effectType = EffectType.MOVEMENT_MODIFIER
|
|
description = "Piece can move twice in one turn"
|
|
duration = 2 # Lasts for 2 turns
|
|
unitWhitelist = []
|
|
is_default = true
|
|
func modify_moves() -> Dictionary:
|
|
return {
|
|
"extra_moves": 1,
|
|
"move_multiplier": 1
|
|
}
|
|
|
|
func apply_effect(target_piece = null, board_flow = null, game_state = null):
|
|
if !super.apply_effect(target_piece, board_flow, game_state):
|
|
return false
|
|
|
|
attached_piece = target_piece
|
|
return true |