-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
EOC OMT search functions look for matching type #75836
EOC OMT search functions look for matching type #75836
Conversation
@Maleclypse I'm vaguely concerned about how it will interact with this:
|
4fe32ab
to
c4f221a
Compare
c4f221a
to
13df54e
Compare
I missed this in my GitHub feed so I’ll test this asap |
So yes, it's a 4 square terrain where I named each square after it's relation to the center. The EOC works as expected in a current game. I'll compile your PR and test it as well. |
Pulled your PR, compiled and set a message , |
Summary
None
Purpose of change
Ran into a small error with how EOCs search for OMTs, found out it had been worked around in other places...
Cataclysm-DDA/data/mods/Magiclysm/items/enchanted_boots.json
Lines 279 to 289 in 4314562
Describe the solution
Properly remove all mapgen-related suffixes when using the EOC functions
near_om_location
andat_om_location
, not just the cardinal direction ones. This includes directional line connections as well as mutables.Clean up all the duplicated json lines previously used to work around this issue.
Describe alternatives you've considered
This bug may be present in other calls to
oter_no_dir
but this is just trying to fix what I know is wrong, rather than an endless fishing expeditionTesting
Additional context
In draft until I push another commit for the json changesRemaining in draft for more testingThere were some existing checks for
river_c_not_sw
(etc) which I did not touch. These appear to be hardcoded definitions, not actual rotations. Weird stuff!