pop inspect full_content fix

This commit is contained in:
cakipaul 2025-08-18 23:15:36 +08:00
parent 3bc89b97e8
commit 80e2259f9c

View File

@ -601,9 +601,10 @@ func inspect_item(prop_key: String, display_obtained := true, as_important_item
printerr("prophud inspect_item invalid texture for key:", prop_key)
return
# 道具的一句话说明
var full_content = tr(prop_key + "_说明").replace("{br}", "\n").split("\n")
var full_content = tr(prop_key + "_说明").replace("{br}", "\n")
var full_content_parts = full_content.split("\n")
# 缩略只要第一行
var describe_content = full_content[0] + ("..." if len(full_content) > 1 else "")
var describe_content = full_content_parts[0] + ("..." if len(full_content_parts) > 1 else "")
if as_important_item:
# skip | show
var display_mode = tr(prop_key + "_详情")