Skip to content

Fix typo in weapon wield message#11

Merged
samvelyan merged 1 commit intoNetHack-LE:mainfrom
BartekCupial:fix/typo_weld_event
Feb 13, 2025
Merged

Fix typo in weapon wield message#11
samvelyan merged 1 commit intoNetHack-LE:mainfrom
BartekCupial:fix/typo_weld_event

Conversation

@BartekCupial
Copy link

Description

Fixed a typo in the weapon wield event message where "wields" was incorrectly used instead of "welds". The message now correctly states that the weapon "welds itself to your hand" rather than "wields itself to your hand". Wielding cursed items didn't result in solving the environment.

Changes made

if (will_weld(wep)) {
    const char *tmp = xname(wep), *thestr = "The ";
    if (strncmp(tmp, thestr, 4) && !strncmp(The(tmp), thestr, 4))
        tmp = thestr;
    else
        tmp = "";
    pline("%s%s %s to your %s!", tmp, aobjnam(wep, "weld"),
          (wep->quan == 1L) ? "itself" : "themselves",
          bimanual(wep) ? (const char *) makeplural(body_part(HAND))
                       : body_part(HAND));
    set_bknown(wep, 1);
}

@github-actions github-actions bot added the core label Feb 13, 2025
Copy link
Collaborator

@samvelyan samvelyan left a comment

Choose a reason for hiding this comment

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

LGTM

@BartekCupial
Copy link
Author

I cannot merge this PR since I don't have write access.

@samvelyan samvelyan merged commit c63af14 into NetHack-LE:main Feb 13, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants