OpenXcom Forum

Modding => OpenXcom Extended => Topic started by: bulletdesigner on April 08, 2021, 01:26:22 pm

Title: [SUGGESTION] Base Func Affect buy and sell
Post by: bulletdesigner on April 08, 2021, 01:26:22 pm
So basically a request that building affect the buy and sell price of items.

EX:
  - type: STR_MARKET
    provideBaseFunc: [MARKET]

  - type: STR_RIFLE
    costBuy: 5000
    costSell: 2750
    PRICEBaseFunc: [MARKET]
    costBuyBaseFunc: 4500
    costSellBaseFunc: 3000

By this we can get like a new maket building, or a new reciclatron that can sell specific itens  for a new price crazy price.
Hope is note a great deal of work to insert this options.
Title: Re: [SUGGESTION] Base Func Affect buy and sell
Post by: Meridian on April 08, 2021, 01:46:03 pm
It is a lot of work.

But more importantly, it is a stupendously large amount of overhead... calculating a price for every item on-the-fly, and based on arbitrary combination of arbitrary base services, will not perform... unless you're willing to wait a couple of seconds each time you open a Purchase GUI, Sell GUI, etc.

Not worth it at this complexity/granularity.
Title: Re: [SUGGESTION] Base Func Affect buy and sell
Post by: bulletdesigner on April 08, 2021, 04:11:12 pm
ho well , if its that complicated is really not worth the trouble
Title: Re: [SUGGESTION] Base Func Affect buy and sell
Post by: krautbernd on April 11, 2021, 01:56:42 pm
@Meridian
Purely out of interest, would the overhead and complexity be comparable in regards to base services (WORKS, PSILAB etc.) affecting item availability (only buy/sell, not price)?
Title: Re: [SUGGESTION] Base Func Affect buy and sell
Post by: Meridian on April 11, 2021, 02:14:59 pm
That's already available.

For buy, not for sell.
Title: Re: [SUGGESTION] Base Func Affect buy and sell
Post by: krautbernd on April 11, 2021, 03:53:39 pm
Code: [Select]
requiresBuyBaseFuncI somehow totally missed that, I only remember requiresBuy being a thing.

Thanks for the heads-up, that answers my question :)
Title: Re: [SUGGESTION] Base Func Affect buy and sell
Post by: Ethereal on April 13, 2021, 01:57:14 am
By the way, it would be nice to have buyAddCoefficient in addition to sellPriceCoefficient.
It would look really good.

Code: [Select]
sellPriceCoefficient: [100, 90, 80, 65, 50]
buyAddCoefficient: [100, 125, 150, 175, 200]