red_dragon_pon/base/scripts/interactive/base_pickupable_resource.gd

10 lines
287 B
GDScript

extends IdentifiedResource
class_name BasePickupableResource
## Texture that will be used in node sprite
@export var texture: Texture2D
## Emitted when item picked up. Returns IdentifiedResource if it should be swapped
func _apply(_player: Player) -> IdentifiedResource:
return null