OpenXcom Forum

Modding => Work In Progress => Topic started by: ibanix on July 04, 2014, 12:14:59 pm

Title: Better MedKit - help needed
Post by: ibanix on July 04, 2014, 12:14:59 pm
After being annoyed with my wounded Captain taking over a month to recover, I wanted to find a way to speed healing time up. Since that isn't currently exposed to Rulesets, I did the next best thing, and implemented and improved med-kit. It requires researching an alien autopsy first, for the nanotechnology.

The thing is, I can't seem to get this to work. The research topic isn't showing up for me. Can someone have a look and tell me what I did wrong? Thanks!
Title: Re: Better MedKit - help needed
Post by: moriarty on July 04, 2014, 01:02:25 pm
I've taken a quick look, and I can't see an error in the ruleset. does it work if you remove the dependencies and requirements?
Title: Re: Better MedKit - help needed
Post by: ibanix on July 06, 2014, 03:43:04 am
If I remove the dependencies on the Improved Med-Kit research, I am able to find the research topic and manufacture the Med Kits w/o any issues.

So something must be wrong here:

#    dependencies:
#       - STR_ETHEREAL_CORPSE
#       - STR_SNAKEMAN_CORPSE
#       - STR_MUTON_CORPSE
#       - STR_FLOATER_CORPSE
#       - STR_SECTOID_CORPSE
#    requires:
#       - STR_MEDI_KIT
#  - name: STR_FLOATER_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_ETHEREAL_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_SNAKEMAN_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_MUTON_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_FLOATER_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
Title: Re: Better MedKit - help needed
Post by: Deskulpa on July 06, 2014, 05:16:07 am
In my game take time to research the vanilla Medi Kit, look what i did, maybe will help you:

research:
  - name: STR_MEDI_KIT
    dependencies:
      - STR_SECTOID_MEDIC
      - STR_FLOATER_MEDIC
      - STR_EXAMINATION_ROOM
  - name: STR_EXAMINATION_ROOM
    unlocks:
      - STR_MEDI_KIT
  - name: STR_FLOATER_MEDIC
    getOneFree:
      - STR_MEDI_KIT
  - name: STR_SECTOID_MEDIC
    getOneFree:
      - STR_MEDI_KIT
Title: Re: Better MedKit - help needed
Post by: ibanix on July 06, 2014, 06:09:08 am
Is there a reason you use getOneFree: instead of unlocks: ?
Title: Re: Better MedKit - help needed
Post by: ibanix on July 06, 2014, 06:12:06 am
If I read your ruleset correctly, the Medi-Kit research would become available to research after you researched the Exam Room; or you'd get the Medi-Kit research topic free if you research a Sectoid or Floater medic. Is that right?
Title: Re: Better MedKit - help needed
Post by: Deskulpa on July 06, 2014, 03:30:42 pm
Yes, work for me.