blob: 134246933c4424231a4d0a7bcc65e80781289ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
extends Plate
export(NodePath) var crystal_path
onready var crystal : Crystal = get_node(crystal_path) setget set_crystal
func activate(entity : Entity, dungeon):
if crystal == null or crystal.is_active:
return
crystal.add_action("cor_activate", [0.2])
func set_crystal(value : Crystal):
crystal = value
crystal_path = value.get_path()
|