Skip to content

restore value_stringId usage - #5057

Merged
Loobinex merged 1 commit into
dkfans:masterfrom
PieterVdc:trapname
Jul 24, 2026
Merged

restore value_stringId usage#5057
Loobinex merged 1 commit into
dkfans:masterfrom
PieterVdc:trapname

Conversation

@PieterVdc

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 24, 2026 17:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores value_stringId parsing for NAMETEXTID / TOOLTIPTEXTID configuration fields across several config loaders, allowing these fields to be specified via string aliases (and numeric IDs) rather than being treated as plain default numeric parsing.

Changes:

  • Switched multiple *TEXTID fields from value_default to value_stringId in trap/door, terrain, objects, magic, and computer-player config parsing.
  • Restored consistent parsing behavior for tooltip/name string IDs across these subsystems.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/config_trapdoor.c Restores value_stringId for door/trap name + tooltip text IDs.
src/config_terrain.c Restores value_stringId for slab/room tooltip + name text IDs.
src/config_objects.c Restores value_stringId for object tooltip text ID.
src/config_magic.c Restores value_stringId for power name + tooltip text IDs.
src/config_compp.c Restores value_stringId for computer-player tooltip text ID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/config_trapdoor.c
Comment on lines +302 to +303
{"NAMETEXTID", 0, field_t(struct TrapConfigStats, name_stridx), 0, INT32_MIN, UINT32_MAX, NULL, value_stringId, assign_default},
{"TOOLTIPTEXTID", 0, field_t(struct TrapConfigStats, tooltip_stridx), 0, INT32_MIN, UINT32_MAX, NULL, value_stringId, assign_tooltip_idx_trap},
Comment thread src/config_magic.c
Comment on lines +506 to +507
{"NAMETEXTID", 0, field_t(struct PowerConfigStats, name_stridx), 0, INT32_MIN,UINT32_MAX, NULL, value_stringId, assign_default},
{"TOOLTIPTEXTID", 0, field_t(struct PowerConfigStats, tooltip_stridx), 0, INT32_MIN,UINT32_MAX, NULL, value_stringId, assign_default},
@Loobinex
Loobinex merged commit 971bc46 into dkfans:master Jul 24, 2026
2 checks passed
@PieterVdc
PieterVdc deleted the trapname branch July 25, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants