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

Added support to force careful disarming. #3071

Merged
merged 2 commits into from Aug 20, 2018
Merged

Conversation

b-Y-d
Copy link
Contributor

@b-Y-d b-Y-d commented Aug 20, 2018

yaml setting lockpick_force_disarm_careful: true, but should default to false.

Will add it to base.yaml and PR that too. Too inexperienced with github to do them at the same time.

yaml setting `lockpick_force_disarm_careful: true`, but should default to false.
pick.lic Outdated
@@ -391,10 +391,11 @@ class LockPicker
when 'Roundtime', *@disarm_careful
disarm_speed?(box, 'careful')
when *@disarm_quick
disarm_speed?(box, 'quick')
disarm_speed?(box, 'careful') if @settings.lockpick_force_disarm_careful
disarm_speed?(box, 'quick') if !@settings.lockpick_force_disarm_careful
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Consider using unless for the if !... cases

pick.lic Outdated
when *@disarm_normal
disarm_speed?(box, 'normal')
when *@disarm_identify_failed
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Was this when supposed to be removed?

Didn't notice I overwrote/deleted   when *@disarm_identify_failed
@b-Y-d
Copy link
Contributor Author

b-Y-d commented Aug 20, 2018

Fixed, and no that when was not supposed to be removed.

@rpherbig rpherbig merged commit 229e4cf into rpherbig:master Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants