OpenXcom Forum
Modding => Work In Progress => Topic started by: The Reaver of Darkness on August 12, 2016, 02:49:41 am
-
I was making my own version of the medi-kit and during testing I discovered a few strange effects:
1.) When I set the wound recovery to 3, it allowed a soldier to be brought to negative fatal wounds, which caused the soldier to heal more each turn, even going above his max health.
2.) When the ruleset states "flatRate: false", it shows the correct time unit cost but charges the flat rate time unit cost. For instance, if it costs 30% of TU and a soldier with 51 max TU tries to use it, it'll say that it costs 15 TU but it will charge 30 TU to use.
-
Could you post the ruleset in question.
Also do you experience the same errors with this Medikit Mod (https://www.openxcom.com/mod/advanced-medikit)?
-
Could you post the ruleset in question.
Also do you experience the same errors with this Medikit Mod (https://www.openxcom.com/mod/advanced-medikit)?
I already altered it so that it doesn't trigger the bugs.
The Advanced Medi-kit mod doesn't do it because it's not using percentage time unit cost or healing more than one fatal wound.
-
2.) When the ruleset states "flatRate: false", it shows the correct time unit cost but charges the flat rate time unit cost. For instance, if it costs 30% of TU and a soldier with 51 max TU tries to use it, it'll say that it costs 15 TU but it will charge 30 TU to use.
If you are modding for 1.0 than it's a know bug.
If you are using a recent nighly it is possible you've found a bug (the problem was supposed to be solved since 2016-01-23)
I
-
(the problem was supposed to be solved since 2016-01-23)
I probably just need to update my OpenXcom. Thanks.
-
The medi-kit bug with the negative fatal wounds is still in the game. You can get negative fatal wounds, and they cause the soldier to heal each turn, even above their max health. This was tested on Nightly version 2017-11-09.
-
That sounds like a bug. Have you reported it on the bugtracker yet?
-
I didn't know we had a bug tracker. I will post it there.
-
This almost makes me want to reproduce this bug somehow, and make some sort of endlessly regenerating alien. ;D
-
This almost makes me want to reproduce this bug somehow, and make some sort of endlessly regenerating alien. ;D
It's easy to do using normal functions, at least in OXCE+. Can't remember if it works in vanilla, but probably not.
-
It's easy to do using normal functions, at least in OXCE+. Can't remember if it works in vanilla, but probably not.
yup, regeneration is build in functionality in OXCE without any hacks. Even more, using scripts it can have very specific behavior (regen only then close to max or min hp or if not hit this turn)