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

Autoequip hotkey in inventory screen #941

Merged
merged 8 commits into from Jan 2, 2016

Conversation

myk002
Copy link
Contributor

@myk002 myk002 commented Sep 4, 2014

Adds 'z' (default) hotkey to autoequip the current soldier. Complements the existing 'x' (clear), 'c' (copy), and 'v' (paste) hotkeys as per the discussion at: http://openxcom.org/forum/index.php?topic=2781.0

This PR lightly refactors the existing autoequip code so that it can be called from the InventoryState code. No functional changes were made to the autoequip code.

The nicest bit about this (I think) is that you can manually equip a soldier with a weapon, then hit 'z', and appropriate ammo will be added to the soldiers backpack/belt.

@SupSuper SupSuper merged commit 63900c1 into OpenXcom:master Jan 2, 2016
@myk002 myk002 deleted the autoequip_hotkey branch January 8, 2016 23:12
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