OpenXcom Forum

OpenXcom => Suggestions => Topic started by: bladum on December 08, 2014, 03:53:03 pm

Title: move few global fields from souce code into rulesets
Post by: bladum 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
Title: Re: move few global fields from souce code into rulesets
Post by: Warboy1982 on December 08, 2014, 04:06:35 pm
kind of a redundant suggestion, this is all required for TFTD anyway.
Title: Re: move few global fields from souce code into rulesets
Post by: bladum on December 08, 2014, 04:27:11 pm
including several STR_BATTLESHIPS etc as stated in first post ?
Title: Re: move few global fields from souce code into rulesets
Post by: Warboy1982 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.
Title: Re: move few global fields from souce code into rulesets
Post by: bladum on December 09, 2014, 05:01:38 pm
sure we can wait :) Thanks