aliens

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

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3358
    • 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: 1748
  • The Gate is open.
    • 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?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9114
    • View Profile
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: 1748
  • The Gate is open.
    • View Profile
Re: [DONE] [Suggestion] Random manufacturing
« Reply #33 on: February 02, 2019, 03:33:11 pm »
Great, thanks.