prog
This commit is contained in:
14
battle/action/BattleItem.gd
Normal file
14
battle/action/BattleItem.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
class_name BattleItem extends BattleAction
|
||||
|
||||
var stack:ItemStack
|
||||
|
||||
func _init(params:Dictionary) -> void:
|
||||
super(params)
|
||||
assert(params.has("stack"))
|
||||
self.stack = params.get("stack")
|
||||
|
||||
func perform(params:Dictionary) -> void:
|
||||
super.perform(params)
|
||||
|
||||
var user:BattleFighter = params.get("user")
|
||||
var target:BattleFighter = params.get("target")
|
||||
Reference in New Issue
Block a user