Author Topic: purchaseexclusions in options.cfg  (Read 3359 times)

Offline LouisdeFuines

  • Commander
  • *****
  • Posts: 586
    • View Profile
purchaseexclusions in options.cfg
« on: March 23, 2014, 01:28:26 pm »
Hi,

by luck I found an entry in the options.cfg, I`m completely can`remember having seen before:

"purchaseexclusions:
  []"

Is this important in the options.cfg?

Offline Shoes

  • Commander
  • *****
  • Posts: 502
    • View Profile
Re: purchaseexclusions in options.cfg
« Reply #1 on: March 23, 2014, 01:49:34 pm »
It looks like you can exclude items from your purchase list like that. The author did not want to see pistols in the list of things he could purchase, so he wrote this up so he could remove them. Details : https://github.com/SupSuper/OpenXcom/pull/254

Offline LouisdeFuines

  • Commander
  • *****
  • Posts: 586
    • View Profile
Re: purchaseexclusions in options.cfg
« Reply #2 on: March 23, 2014, 02:15:50 pm »
Ah, great, thanks for the answer, Shoes!  :)

Offline Snickerdoodle

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: purchaseexclusions in options.cfg
« Reply #3 on: May 01, 2014, 08:23:27 am »
So, how do I actually use this feature? What is the syntax, and where do I find the item names to put there?

Edit: Never mind, I figured it out. This is my list a few months into the game:

Code: [Select]
purchaseexclusions:
  - STR_STINGRAY_LAUNCHER
  - STR_STINGRAY_MISSILES
  - STR_CANNON
  - STR_CANNON_ROUNDS_X50
  - STR_TANK_CANNON
  - STR_HWP_CANNON_SHELLS
  - STR_TANK_ROCKET_LAUNCHER
  - STR_HWP_ROCKETS
  - STR_PISTOL
  - STR_PISTOL_CLIP
  - STR_RIFLE
  - STR_RIFLE_CLIP
  - STR_AUTO_CANNON
  - STR_AC_AP_AMMO
  - STR_AC_HE_AMMO
  - STR_AC_I_AMMO
« Last Edit: May 01, 2014, 09:33:02 am by Snickerdoodle »