23 lines
No EOL
536 B
GDScript
23 lines
No EOL
536 B
GDScript
class_name HopscotchCard extends Card
|
|
|
|
func _init():
|
|
super._init()
|
|
cardName = "HopScotch"
|
|
rank = Rank.RANK_0
|
|
effectType = EffectType.MOVEMENT_MODIFIER
|
|
description = "Peice can move 5 times per turn"
|
|
duration = 2
|
|
unitWhitelist = []
|
|
|
|
func modify_moves() -> Dictionary:
|
|
return {
|
|
"extra_moves": 5,
|
|
"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 |