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 filters for walls and floors #60

Open
TanyaPegasus opened this issue Aug 15, 2024 · 0 comments
Open

Add filters for walls and floors #60

TanyaPegasus opened this issue Aug 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TanyaPegasus
Copy link
Member

These are categories people are often asking about, and wanting to search by, and are relatively easy to create filters for.

Floors:
Object files will contain floor=1
Search returns 68 objects (including some uncraftable floors, and some categories which should already be filtered out elsewhere).

Walls:
Slightly more complicated. Objects will contain either wallLayer=1 or floorHugging=1
This is the same filter that can be found in OneLife here:
https://github.com/twohoursonelife/OneLife/blob/b1278179558869c0c07003785e8f083231a0f4ab/gameSource/objectBank.cpp#L617-L620

The use case for this filter in the game is a little different, so this search does also return some potentially unwanted items. If we don't mind showing all items that are potentially insulating as well as literal walls etc, we can stop there. That would keep the feature the same as what would be returned in game.

An additional 119 items (less if not including categories and uncraftables), can be filtered out if we also check that the object name contains "wall", "door", "arch", or "fence".
These items include variations of hitched horses, shelters, the freestanding shelves, silk farms, clothing racks, bell towers, ovens, kilns, and sign panels,

@TanyaPegasus TanyaPegasus added the enhancement New feature or request label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant