aliens

Author Topic: move few global fields from souce code into rulesets  (Read 3073 times)

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
move few global fields from souce code into rulesets
« on: December 08, 2014, 03:53:03 pm »
Hi,

Instead of hard coded values in source code

STR_BATTLESHIP
STR_SUPPLY_SHIP
STR_TERROR_SHIP

STR_ALIEN_INFILTRATION
STR_ALIEN_BASE
STR_ALIEN_RETALIATION
STR_ALIEN_SUPPLY
STR_ALIEN_TERROR

please consider adding those as global values inside ruleset just like alienFuel: STR_ELERIUM_115.

This could be an array of items that game would pick one value from list of available like below. This would work nice even in Vanilla TFTD.

Code: [Select]
alienBaseMissions:
  - STR_ALIEN_BASE
  - STR_ALIEN_BASE_ALTERNATIVE
alienBattleShipClassUfo:
  - STR_BATTLESHIP
  - STR_MOTHERSHIP

If not a list just make it a single string

Code: [Select]
alienBaseMissions: STR_ALIEN_BASE
alienBattleShipClassUfo: STR_BATTLESHIP

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: move few global fields from souce code into rulesets
« Reply #1 on: December 08, 2014, 04:06:35 pm »
kind of a redundant suggestion, this is all required for TFTD anyway.

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Re: move few global fields from souce code into rulesets
« Reply #2 on: December 08, 2014, 04:27:11 pm »
including several STR_BATTLESHIPS etc as stated in first post ?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: move few global fields from souce code into rulesets
« Reply #3 on: December 09, 2014, 02:03:07 am »
i won't be doing it like that.
just be patient and wait for the geoscape development.
« Last Edit: December 09, 2014, 06:44:50 am by Warboy1982 »

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Re: move few global fields from souce code into rulesets
« Reply #4 on: December 09, 2014, 05:01:38 pm »
sure we can wait :) Thanks