I tried to fix it for game version 0.12.20. But I have found several bugs which probably were in previous mod versions too, so I tried to fix them too... While I was fixing them I decided to add several changes for this mod which are not minor. I hope author will not by angry on me if I send it as unofficial update 1.3.8
Changes are those:
New features
- added config file which is used for some ingame parameters as radius from dispenser, replenishing speed, damages, etc.
- completely reworked dispenser. Now it does not give static amount of oxygen when player is close to it, but it depends on how far he is from it. When player creates several dispenser near to each other he will get even more oxygen per tick (there is still some maximum which he can reach per one tick). It means if you put 2 dispensers near each other you will get almost twice oxygen, but if you add third one you will not almost get any boost (you still get some minor)
- completely reworked tick check (how often is something happening). Now it checks twice per second (if it will creates lags, there is a config to change)
- reworked damages which are taken by player, enemies and spawners (because of tick changes)
- completely reworked how player checks if he is out of oxygen and out of bottles. The amount now is not integer but decimal (100.00 instead of 100). It was made because of dynamic dispensers. The player is always running out of oxygen, but this speed can be lessen if he stands near dispenser or even he can get some oxygen.
- by default bottles are not refilled when player stands near dispensers (in config it is possible to turn it back)
- added notification when bottle is used
- other minor changes which I do not remember
Fixes
- fixed bottle replenishing when per one tick were replenished bottle in main inventory and in belt too. Now first replenished are those in main inventory and then in belt. (I think similar were with emptying them too, but now it should be fixed too)
Known Bugs
- When there is an empty bottle in a belt and it is filled and there is no space to add to belt, this bottle will disappear (I think this bug were in previous versions too)
- Enemies still get static damage even if they are far away from dispensers. Maybe I'll change it in the future too, so it will work similar to oxygen replenishing.
- Unbalanced damages, speed of loosing or replenishing oxygen, too small or too big distance from dispensers etc. That is why there is a config file. Changes should by applied after game reload.
Mod
Just to add... I'm not a lua programmer and I do not want to keep on unofficial changes(not in a long term). I just wanted to fix this mod in a way I want to play it right now and just wanted to share those changes
.
Ah, yeah, and sorry for my English
Yeah, and a last thing... Author can use any of those changes in his official update without asking me, if he would like them.