extends "res://lib/core/dialogue/SpecialEffectLabel.gd"

# Display-only wrapper for the canonical text_box_entry effect. Original parser,
# images, colors, pauses, reveal and animation implementations remain inherited.
# "a" is screenshot-confirmed; "an" is a bounded grammatical compatibility case.
func _pickup_prefix(value):
	if typeof(value) != TYPE_STRING:
		return value
	if value.begins_with("You found an "):
		return "找到" + value.substr(13, value.length() - 13)
	if value.begins_with("You found a "):
		return "找到" + value.substr(12, value.length() - 12)
	return value

func set_text(value):
	.set_text(_pickup_prefix(value))
