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

jsonizes zones into item_category #35176

Merged
merged 2 commits into from
Nov 3, 2019

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: Features "Moves zone types into JSON for item category"

Purpose of change

This is on the way to completing #26380
Allowing item categories to have their sort zones be defined via JSON.

Describe the solution

adds a member to item_category that is a zone_type_id, and gets that in zone_manager::get_near_zone_type_for_item()

Testing

created a zone, the spawned some items and autosorted into that zone. the items properly got sorted.

Additional context

relies on #35147 as a prerequisite

@KorGgenT KorGgenT added [JSON] Changes (can be) made in JSON Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones [C++] Changes (can be) made in C++. Previously named `Code` labels Oct 31, 2019
src/clzones.cpp Outdated Show resolved Hide resolved
@ZhilkinSerg ZhilkinSerg merged commit 33fcb6e into CleverRaven:master Nov 3, 2019
Ramza13 pushed a commit to Ramza13/Cataclysm-DDA that referenced this pull request Nov 5, 2019
* add zones to item categories

* move zones from hardcode to JSON
@KorGgenT KorGgenT deleted the item-category-zone branch August 13, 2020 04:20
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` Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants