Skip to content

Blocking Fields#86820

Open
Maleclypse wants to merge 3 commits intoCleverRaven:masterfrom
Maleclypse:Field-Weakness-
Open

Blocking Fields#86820
Maleclypse wants to merge 3 commits intoCleverRaven:masterfrom
Maleclypse:Field-Weakness-

Conversation

@Maleclypse
Copy link
Copy Markdown
Member

Summary

Features "Fields that block movement"

Purpose of change

Probably changing the name to blocks_mtype but the goal is to have fields that can block specific monster types from crossing the field.

Describe the solution

Mirrored and reversed immune_type in fields

Describe alternatives you've considered

I'd also like a flag based system to block PC's and NPCs but that's followup.

Testing

Tested with mon_zombies. Seemed like it was working until one zombie stepped into a field and broke the line. Remembered that zombies have stumble movement that often causes problems in tests like this. Closed out game and restarted with Feral pipe people. Ferals couldn't cross. Remove the field I added to fd_webs and then retested ferals walked into webs got stuck and then exited.

Additional context

@github-actions github-actions Bot added [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. <Enhancement / Feature> New features, or enhancements on existing astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels May 2, 2026
Comment thread src/field_type.cpp Outdated
Comment thread src/field_type.cpp Outdated
Comment thread src/field_type.cpp Outdated
Comment thread src/field_type.h Outdated
Comment thread src/monmove.cpp Outdated
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
@github-actions github-actions Bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` <Enhancement / Feature> New features, or enhancements on existing Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. json-styled JSON lint passed, label assigned by github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant