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

Protomechs #212

Merged
merged 39 commits into from Nov 13, 2018
Merged

Protomechs #212

merged 39 commits into from Nov 13, 2018

Conversation

neoancient
Copy link
Member

Adds protomechs as a construction option.

Protomechs handle crit slots differently than other units and required some custom classes for the build tab that work differently than other units and some modifications to drag and drop support for it. This is how MML has typically handled things in the past, and a lot of my work in the past year or two has involved consolidating nearly identical classes to remove redundant code. But in this case the functionality differs enough to make separate classes necessary.

Instead of adding another preview tab for protomechs I consolidated the preview tabs into a single one, since they were for all practical purposes identical. The various EquipmentTab classes are probably the largest outstanding example of redundant code, and in this case I wrote a generic version that can be used for most unit types (infantry have unique needs). Since switching to the new generic equipment tab is more that an incidental change it is currently only used by protomechs, and I intend to remove the individual mech, vee, and aerospace EquipmentTab classes in a future update.

Show kg/point instead of points/ton for protos.
They do not tie critical slots directly to equipment like other units
and could not use the same critical lists on the build tab.
Instead of recreating all the components, leave them where they are and
update the contents.
Also don't present the option to delete JJ or EDP, which are done in the
MP and armor panels.
Set movement mode to biped for new proto.
Conflicts:
	src/megameklab/com/util/EquipmentTableModel.java
	src/megameklab/com/util/UnitUtil.java
@neoancient neoancient merged commit af3d82a into master Nov 13, 2018
@neoancient neoancient deleted the protomechs branch November 13, 2018 17:33
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

1 participant