OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Biggieboy on April 17, 2018, 01:59:57 pm

Title: Resources for building
Post by: Biggieboy on April 17, 2018, 01:59:57 pm
Is it posible for resources for buliding?

Example UFO powersource for Large general store or Large Living room building

Thank you!
Title: Re: Resources for building
Post by: Meridian on April 17, 2018, 02:04:44 pm
Yes, in OXCE.
Title: Re: Resources for building
Post by: Biggieboy on April 17, 2018, 02:06:18 pm
Yes.

Great!

How is it possible? Can you show me example code?

Thank you!
Title: Re: Resources for building
Post by: Meridian on April 17, 2018, 02:07:29 pm
Copypaste from documentation:

Code: [Select]
facilities:
  - type: STR_SOME_FACILITY
    buildCostItems:
      STR_ITEM:
        build: 10           #how many items of type `STR_ITEM` are require to build.
        refund: 6           #how many items are returned when facility is dismantled.
    provideBaseFunc: [ A ]  #List of custom IDs that this bulding provide for base.
    requiresBaseFunc: [ ]   #List of custom IDs that are require to build this building in base.
    forbidenBaseFunc: [ B ] #List of custom IDs that are forbiden by this building.
    trainingRooms: 0        #Number of solder that can be train in that building, require langue strings.
    refundValue: 0          #how much mony is returned when facility is dismantled.
Title: Re: Resources for building
Post by: Biggieboy on April 17, 2018, 02:55:42 pm
Copypaste from documentation:

Code: [Select]
facilities:
  - type: STR_SOME_FACILITY
    buildCostItems:
      STR_ITEM:
        build: 10           #how many items of type `STR_ITEM` are require to build.
        refund: 6           #how many items are returned when facility is dismantled.
    provideBaseFunc: [ A ]  #List of custom IDs that this bulding provide for base.
    requiresBaseFunc: [ ]   #List of custom IDs that are require to build this building in base.
    forbidenBaseFunc: [ B ] #List of custom IDs that are forbiden by this building.
    trainingRooms: 0        #Number of solder that can be train in that building, require langue strings.
    refundValue: 0          #how much mony is returned when facility is dismantled.

Great, thank you, its working!