Author Topic: [DONE] [Suggestion] Random manufacturing  (Read 2774 times)

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 2179
    • View Profile
Re: [DONE] [Suggestion] Random manufacturing
« Reply #30 on: February 01, 2019, 11:10:35 pm »
This should be map not vector, this mean empty is `{}` not `[]`.

Clue should be this part:
Code: [Select]
    producedItems:               # empty
      {}
where previously was:

Code: [Select]
    producedItems:
      SOME_ITEM: 3

Offline Nord

  • Commander
  • *****
  • Posts: 994
  • The Gate will open... someday.
    • View Profile
Re: [DONE] [Suggestion] Random manufacturing
« Reply #31 on: February 02, 2019, 04:34:32 am »
So, if we have 70% for no production and 30% for item1 production, how should it look like?

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 5742
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: [DONE] [Suggestion] Random manufacturing
« Reply #32 on: February 02, 2019, 11:44:13 am »
Code: [Select]
    producedItems:
      {}                   # empty
    randomProducedItems:
      -
        - 70
        - {}               # empty
      -
        - 30
        - STR_MOTION_SCANNER: 3

or

Code: [Select]
    producedItems: {}                # empty
    randomProducedItems:
      - [70, {}]                     # empty
      - [30, {STR_MOTION_SCANNER: 3}]

Offline Nord

  • Commander
  • *****
  • Posts: 994
  • The Gate will open... someday.
    • View Profile
Re: [DONE] [Suggestion] Random manufacturing
« Reply #33 on: February 02, 2019, 03:33:11 pm »
Great, thanks.