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

Removed ability to pry open closed non-locked doors #21694

Conversation

Projects
None yet
7 participants
@Night-Pryanik
Copy link
Member

commented Aug 22, 2017

No need for prying non-locked doors.
Also, this closes the easy early mechanics grinding exploit.

Night-Pryanik added some commits Aug 22, 2017

@AMurkin

This comment has been minimized.

Copy link
Contributor

commented Aug 22, 2017

Suggestion: allow to select pry open action, but in case of closed non-locked door - just write a message to player. Something like when player try to close tile with himself.

@Night-Pryanik

This comment has been minimized.

Copy link
Member Author

commented Aug 22, 2017

Suggestion: allow to select pry open action, but in case of closed non-locked door - just write a message to player. Something like when player try to close tile with himself.

Done.

@John-Candlebury

This comment has been minimized.

Copy link
Contributor

commented Aug 22, 2017

A possible quality of life enhancement would be to open the door too. With a message like:

"You notice the door is unlocked, so you simply open it"

succ_action = _("You pry open the door.");
fail_action = _("You pry, but cannot pry open the door.");
} else if( type == t_door_c || type == t_door_c_peep ) {
p->add_msg_if_player( m_info, _( "This door is non-locked. No need to pry it." ) );

This comment has been minimized.

Copy link
@Intigracy

Intigracy Aug 22, 2017

The word you're looking for is unlocked

This comment has been minimized.

Copy link
@Night-Pryanik

Night-Pryanik Aug 22, 2017

Author Member

I just thought that "unlocked" means "was locked before", and "non-locked" is "wasn't locked at all". But I can change it, no problems.

This comment has been minimized.

Copy link
@Leland

Leland Aug 22, 2017

Contributor

Naw, "unlocked" just refers to an object's current state: not locked.

@Coolthulhu Coolthulhu self-assigned this Aug 23, 2017

@Coolthulhu

This comment has been minimized.

Copy link
Contributor

commented Aug 23, 2017

This must use one of the correct functions: at the moment you open the door by giving it a stern look (no move cost at all).

Looking at the crowbar function, it is horrible in general. It has horrible code like hardcoded window drops. Could use a total rewrite. It also uses 2D coords everywhere.

@Coolthulhu Coolthulhu removed their assignment Aug 23, 2017

} else if( type == t_door_c ) {
p->add_msg_if_player( m_info, _( "You notice the door is unlocked, so you simply open it." ) );
g->m.ter_set( dirx, diry, t_door_o );
p->moves -= 100;

This comment has been minimized.

Copy link
@codemime

codemime Aug 25, 2017

Member

p->mod_moves() would be preferable.

@Coolthulhu Coolthulhu self-assigned this Sep 2, 2017

@Coolthulhu Coolthulhu merged commit 2c49125 into CleverRaven:master Sep 2, 2017

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.4%) to 21.967%
Details
gorgon-ghprb Build finished.
Details

@Night-Pryanik Night-Pryanik deleted the Night-Pryanik:no-prying-of-closed-unlocked-doors branch Sep 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.