Skip to content

Variable equipment size, part 2#2007

Merged
neoancient merged 5 commits intomasterfrom
variable_size
Jun 15, 2020
Merged

Variable equipment size, part 2#2007
neoancient merged 5 commits intomasterfrom
variable_size

Conversation

@neoancient
Copy link
Member

This builds on #1902 by using the size field in Mounted to consolidate cargo, liquid cargo, communications gear, ladders, and BA mission equipment to one MiscType each. This allows BA mission equipment in any arbitrary size (in 1 kg lots) and liquid cargo as a single equipment mount rather than a multiple of single-ton mounts with a possible half-ton. Because cargo and communications equipment size determine the number of critical slots on a mech, the slot count has been changed to query Mounted instead of the EquipmentType, which accounts for most of the changes. There are also some changes in MtfFile that allocate any additional critical slots needed after the size has been set, and the code that sets the size has been moved to the correct place.

@neoancient neoancient changed the title Variable size Variable equipment size, part 2 Jun 15, 2020
@github-actions
Copy link

Build scan available at https://gradle.com/s/gnawhypye4cim

MiscType.theaters=theaters
MiscType.theater=theater No newline at end of file
MiscType.theater=theater
MiscType.tons=tons
Copy link
Member

Choose a reason for hiding this comment

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

Did we really not have a token for "ton" and "tons?

Copy link
Member Author

Choose a reason for hiding this comment

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

We might. I didn'tcheck because I thought the advantages of keeping this in one place were worth the possibility of duplication.

@NickAragua
Copy link
Member

That poor MiscType class, heh.

@neoancient neoancient merged commit 6cb9f95 into master Jun 15, 2020
@neoancient neoancient deleted the variable_size branch June 15, 2020 14:57
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.

2 participants