-
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
Prone move mode #46750
Prone move mode #46750
Conversation
… down, sleep action automatically puts in lie down mode
How about prone, instead of lying down? |
It would be cleaner if the variables were renamed to "prone" instead of lying down, IMO. And also would there be a greater penalty moving onto furniture while prone? |
Also, acid should hurt your whole body when you're prone. |
Co-authored-by: Binrui Dong <[email protected]>
it is already done by
|
From what I'm seeing it isn't currently supported even for crouching. Each furniture has a specified in json move cost that comes from it and that's it. I think adding it would be out of scope for this PR |
Done |
Both legs broken, w/out splints, should also result in prone move mode by default. |
Done |
You might want to do a search in the code for "downed". For instance, this indicates a need to take a look at |
Ok I see. Although I wonder why |
@actual-nh are you also suggesting to (in some cases) change creature current move mode to prone upon being downed? Taking a quick look I think it would be doable unless |
I was more making a general suggestion that "downed" and "prone" should have something to do with one another, but that is indeed one way to do it - although keeping in mind "downed", as an involuntary status, does appear to imply a greater degree of immobility (e.g., dodge should be reduced but not eliminated by being prone - rolling). |
I agree |
From what I'm seeing and from the given examples(ie being on fire) "downed" is used rather universally. It fulfilled the role of indicator that character was just lying down, that got swept of their feet, got knocked down etc. Wide range from "just sitting" to "incapacitated". Dunno if i want to get into that |
Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>
Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>
Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>
Do you get up when you wake up automatically as well? |
Discussed previously, added in yesterday's commit |
Translating the PR Validator message into English: the |
I'm not sure if this PR is good to cover this, but proning through broken glass should more than likely mess the player up. Perhaps we could check if the player has any uncovered limbs and apply bleeding/brute damage when a move is made into broken glass? Essentially the same principle as acid damaging the player's body when prone. |
!you.is_prone() ) { | ||
you.set_movement_mode( move_mode_id( "prone" ) ); | ||
you.add_msg_if_player( m_bad, | ||
_( "Your broken legs can't hold your weight and you fall down in pain." ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's pain mentioned in message, maybe then actually add some pain on this event?
add_msg_if_player( m_bad, _( "Your broken legs cannot hold you and you fall down." ) ); | ||
set_movement_mode( move_mode_id( "prone" ) ); | ||
} else if( is_on_ground() ) { | ||
add_msg_if_player( m_warning, _( "You cannot fight while on the ground." ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in the future we should allow fighting (defending only?) while lying down, if your arms ain't broken.
I'm not sure how difficult it would be to add in or if it is out of scope but weapon bipods should work while prone anywhere. It would be nice to not have to dig an embankment every time I want to use a bipod. |
Co-authored-by: Anton Burmistrov <[email protected]>
Definitely out of scope :) |
Co-authored-by: Anton Burmistrov <[email protected]>
Co-authored-by: Anton Burmistrov <[email protected]>
@J-Cieplinski could you please resolve conflicts? |
@Night-Pryanik I've resolved using git functionality as I don't have a project set up on my machine right now. However I think that |
Wow, playing with UndeadPeople tileset, and it missing an indication my char is prone messed with me several times last night. |
Did tileset author/maintainer add overlay for new move mode?
|
Not yet, as far as I can see... @SomeDeadGuy I hope you get to it, when possible... |
Summary
Features "Added prone move mode"
Purpose of change
Prompted by #45817
Describe the solution
Added lying down to the game and sleeping makes you automatically lie down at the beginning.
Decreased movement and sound made when prone.
Decreased creature visibility when prone
Added "CRUTCHES" flag for weapons
Added Crutches item (need to be balanced for the game)
Added "CRUTCHES" flag to walking cane weapon
If both of player's legs are broken and he has no crutches equipped movement causes character to go prone
Testing
In-game testing
Additional context
Unless it is possible to modify(decrease) the eyesight/eye-level of character when lying down then I think it ready for merge.