Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add looks_like support for fields #37726

Merged
merged 1 commit into from
Feb 9, 2020

Conversation

ZhilkinSerg
Copy link
Contributor

@ZhilkinSerg ZhilkinSerg commented Feb 5, 2020

Summary

SUMMARY: Infrastructure "Add looks_like support for fields"

Purpose of change

Allow easy tile fallback for fields.

Describe the solution

Add looks_like support for fields in a similar fashion to terrain and furniture.

Testing

Make a new field with looks_like property, spawn it through debug menu and see that it has same tile as its lookalike.

Make a new field using copy-from, spawn it through debug menu and see that it has same tile as its parent field type.

Additional context

Prerequisite for #37706 which can be merged after or together current PR.

We should probably allow different tiles for different field levels, but that's out-of-scope in current PR.

@ZhilkinSerg ZhilkinSerg added SDL: Tiles / Sound Tiles visual interface and sounds. [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Feb 5, 2020
@ifreund ifreund added the (P2 - High) High priority (for ex. important bugfixes) label Feb 8, 2020
@ifreund
Copy link
Contributor

ifreund commented Feb 8, 2020

calling this high priority since all the tests are failing without it

@BevapDin BevapDin merged commit e55f98d into CleverRaven:master Feb 9, 2020
@ZhilkinSerg ZhilkinSerg deleted the fields-looks-like branch February 9, 2020 10:21
fengjixuchui added a commit to fengjixuchui/Cataclysm-DDA that referenced this pull request Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. (P2 - High) High priority (for ex. important bugfixes) SDL: Tiles / Sound Tiles visual interface and sounds.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants