OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: LouisdeFuines on March 23, 2014, 01:28:26 pm

Title: purchaseexclusions in options.cfg
Post by: LouisdeFuines 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?
Title: Re: purchaseexclusions in options.cfg
Post by: Shoes 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
Title: Re: purchaseexclusions in options.cfg
Post by: LouisdeFuines on March 23, 2014, 02:15:50 pm
Ah, great, thanks for the answer, Shoes!  :)
Title: Re: purchaseexclusions in options.cfg
Post by: Snickerdoodle 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