2025-09-17 12:57:04 +02:00
|
|
|
class_name ActiveItem extends Item
|
|
|
|
|
|
2025-09-17 15:59:14 +02:00
|
|
|
@export var sprite : Texture2D
|
|
|
|
|
|
2025-09-17 12:57:04 +02:00
|
|
|
func collect() -> bool:
|
|
|
|
|
if (player.active_item == null):
|
|
|
|
|
player.active_item = self
|
2025-09-17 16:41:29 +02:00
|
|
|
|
2025-09-17 12:57:04 +02:00
|
|
|
return true
|
|
|
|
|
return false
|
2025-09-17 15:59:14 +02:00
|
|
|
|
|
|
|
|
func activate():
|
|
|
|
|
assert(false)
|
|
|
|
|
|
|
|
|
|
|