CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.65k stars 4.18k forks source link

stairs and ladders should check for different flags #75401

Open Consoleable opened 3 months ago

Consoleable commented 3 months ago

Is your feature request related to a problem? Please describe.

Rephrasing: #75398 Zombies should be able to climb stairs but not ladders, and characters with no hands or broken arms may not be able to climb ladders. Quadrupeds should be able to climb stairs, but might not be able to climb ladders.

Solution you would like.

Some way to check for tags for vertical ascents/descents when using one or the other. This way, zombies can be lured from basements but climbing ladders offers some mitigation, and injured characters would have trouble using ladders.

Perhaps a "LADDERS" or "NOLADDERS" tag to add to creatures?

Describe alternatives you have considered.

No response

Additional context

No response

PGR-14 commented 3 months ago

We could also add in an additional flag for only going down stairs, for stuff like crawling zombies , & vise versa for cows & other bovines

Karol1223 commented 3 months ago

Handling this via monster flags is an absolutely atrocious idea - sincerely, the guy who spends 80% of contributing time in monster JSON currently.

Doing this via terrain/furniture flags + monster path setting for ladders (we already have one for stairs, they'd need to be split) that defaults to false would probably be acceptable, but doing this through monster flags would be a nightmare.

TheMurderUnicorn commented 1 month ago

We already have a flag for this called DIFFICULT_Z marking the terrain as difficult, which afaik prevents at least things like dogs from climbing ladders, and I believe applies to zombies as well. https://cdda-guide.nornagon.net/json_flag/DIFFICULT_Z image

I also thought we factored needing both arms to climb, but firstly, I could not find evidence of that, and secondarily, I believe you can climb a lot of ladders irl even with broken arms. Broken legs would be the more severe hindrance and I don't think we check for that.

Night-Pryanik commented 4 weeks ago

I also thought we factored needing both arms to climb

AFAIK this is only checked for climbing downspouts, ropes (#56018), and chainlink fences (#58376).