Author Topic: Craft maxItems Variable  (Read 1467 times)

Offline Bee

  • Sergeant
  • **
  • Posts: 10
    • View Profile
Craft maxItems Variable
« on: December 17, 2022, 12:31:00 pm »
When designing a new craft, maxItems works fine for any value greater than 0, or 0 so long as there is no pilot / soldier variable. But the moment soldiers / pilots are added, maxItems: 0 (including fractions) fails to work, and instead gives unlimited item capacity. Is maxItems regulated by some other variable when soliders: 1 (or any number) and pilots: 1 (or any number) are used, thereby changing the expected behavior of a maxItems: 0 setting?
« Last Edit: December 17, 2022, 11:10:26 pm by Bee »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
Re: Craft maxItems Variable
« Reply #1 on: April 10, 2023, 02:39:21 pm »
It's the other way around.

"maxItems: 0" means "maxItems feature is turned off, i.e. there is no limit"

"soldiers: 0" means "it's an unmanned craft", which turns off (hides) the craft equipment button (regardless of the maxItems setting)