Author Topic: [Suggestion] requires for pages  (Read 310 times)

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 228
    • View Profile
[Suggestion] requires for pages
« on: April 28, 2019, 09:21:25 pm »
Hi Guys!

The "pages" its very good in Ufopedia, but i needed "requires" too, because some ammo type need research, but the pages is there, before researched.

Example:

Code: [Select]
    pages:
      - text: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA1
        title: STR_HEAVY_PLASMA_BLASTER_V2
        ammoSlot: 0
        requires: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA1
      - text: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA2
        title: STR_HEAVY_PLASMA_BLASTER_V2
        ammoSlot: 1
        requires: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA2

Thank you!

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 2127
    • View Profile
Re: [Suggestion] requires for pages
« Reply #1 on: April 30, 2019, 01:07:49 am »
Changing number of pages in article based on research will be very hard. To make it correct way I would need refactor whole article handing, and nearly rewrite it from scratch.

But looking on your example, why not separate articles for each attack? Each page have nearly nothing in common with each other and have different research requirements. Goal of multi page articles was to handle one big thing that do not fit on one screen.