Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Observations in 'glyphs', 'inv_glyphs' now fixed to correspond to description of an object class instead of the name of object class. #176

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

cdmatters
Copy link
Contributor

@cdmatters cdmatters commented Jun 23, 2021

Prior to this commit, the glyph id for a 'Scroll of Identify' always had the same id.
After this commit, the glyph id for a scroll called 'KERNOD_WELL' always has the same id.
This mirrors the behaviour of tiles (for builds that use them).

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 23, 2021
@cdmatters cdmatters requested a review from heiner June 23, 2021 12:05
Copy link
Contributor

@heiner heiner left a comment

Choose a reason for hiding this comment

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

Looks good modulo the clang-formatting.

Perhaps could not use the extra glyph variable but fine either way.

Thanks for finding this!

win/rl/winrl.cc Outdated
inventory_.emplace_back(
rl_inventory_item{ obj_to_glyph(otmp, rn2_on_display_rng),
rl_inventory_item{ shuffled_glyph(glyph),
Copy link
Contributor

Choose a reason for hiding this comment

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

It's fine to do shuffled_glyph(obj_to_glyph(otmp, rn2_on_display_rng)).

description of an object class instead of the name of object class.

Prior to this commit, the glyph id for a 'Scroll of Identify' always had the
same id. After this commit, the glyph id for a scroll called 'KERNOD_WELL'
always has the same id. This mirrors the behaviour of tiles, for builds
that use them.
@cdmatters cdmatters merged commit 1d3b4bd into master Jun 23, 2021
@cdmatters cdmatters deleted the eric/fix-glyphs branch June 23, 2021 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants