aliens

Author Topic: [SUGGESTION] Base Func Affect buy and sell  (Read 306 times)

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 606
    • View Profile
[SUGGESTION] Base Func Affect buy and sell
« 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.

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6798
  • OXCE developer
    • View Profile
    • My Wiki
Re: [SUGGESTION] Base Func Affect buy and sell
« Reply #1 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.

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 606
    • View Profile
Re: [SUGGESTION] Base Func Affect buy and sell
« Reply #2 on: April 08, 2021, 04:11:12 pm »
ho well , if its that complicated is really not worth the trouble

Offline krautbernd

  • Commander
  • *****
  • Posts: 761
    • View Profile
Re: [SUGGESTION] Base Func Affect buy and sell
« Reply #3 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)?

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6798
  • OXCE developer
    • View Profile
    • My Wiki
Re: [SUGGESTION] Base Func Affect buy and sell
« Reply #4 on: April 11, 2021, 02:14:59 pm »
That's already available.

For buy, not for sell.

Offline krautbernd

  • Commander
  • *****
  • Posts: 761
    • View Profile
Re: [SUGGESTION] Base Func Affect buy and sell
« Reply #5 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 :)

Offline Ethereal

  • Colonel
  • ****
  • Posts: 451
    • View Profile
Re: [SUGGESTION] Base Func Affect buy and sell
« Reply #6 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]