Barotrauma 潜渊症

Barotrauma 潜渊症

50 个评价
Better Charging (WITHOUT DETERIORATION CHANGES)
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
307.823 KB
2024 年 10 月 15 日 下午 2:52
2024 年 11 月 14 日 上午 10:44
6 项改动说明 ( 查看 )

订阅以下载
Better Charging (WITHOUT DETERIORATION CHANGES)

在 heheboi 的 1 个合集中
Modded Server Preset
71 件物品
描述
WARNING NOTE
Original Better Charging currently features 1 status effect that makes all devices nearby detoriate extremely quick, probably as revenge after Moon's drama in undertow. This version removes this and will be maintained instead of original mod creator.


Better Charging is a mod that makes battery cell and oxygen tank charging better!

The aim of this mod was to make battery cells and oxygen tank charging more immersive, realistic and more interesting game play wise.

Better Battery cell charging!
No longer are battery cells free to charge, they now all have an energy cost! Battery cells will make the charging dock draw more power and draw charge from a battery if charged there!

In addition battery chargers now have a blinking red status led when charging that switches to solid green when done! Also a green power led on the left to tell you when the charger has power. Each battery cell will take 100KW while recharging and take 5 minutes.

Charging battery cells from batteries now shows the cells on the battery cell slots and draws charge from the battery. They will draw 500kW/minutes to charge total and take 2 minutes. Both charging methods take equal amounts of power overall.

Better Oxygen Tank charging!
Charging oxygen tanks now consumes hull oxygen and 100KW of power to refill each oxygen tank. Charging oxygen tanks takes 5 minutes and draws 2x the amount of oxygen that a person would use from the hull. While 5 minutes may sound slow, this still means one oxygen tank holder can provide enough oxygen for 6 crew!

All power consumption drops when charging is finished and increases if you charge more then one cell or oxygen tank at once.
59 条留言
Roadent 6 月 26 日 下午 3:32 
Alright, I checked out the implementation of the mod.

You're right - there is no way to apply the effects to the Diving Suit Locker without overriding the Diving Suits themselves. :(

Anyways, I found some outdated code that I'd suggest updating:

-Update the <StatusEffect type="OnFailure">. The Barotrauma devs have added an "electricshock" Affliction, as well as a 50% probability of stun. This applies to Batteries, Charging Docks, and both Oxygen Tank Shelves (small one and legacy one).

-For both oxygentankshelf and oxygentankshelf2, the Barotrauma devs have added a ItemsUseInventoryPlacement="true" attribute to the <ItemContainer> element. This makes the layout of the tanks in the Oxygen Tank Shelf be drawn according to their position in the inventory. Now that it's disabled, the tanks are always drawn, at least on oxygentankshelf2, left-to-right, which looks less pretty.
heheboi  [作者] 6 月 12 日 上午 7:21 
It is impossible to do with current system without lua or overriding suits and oxygen tanks, which I dont wanna do for compability reasons.
Roadent 6 月 12 日 上午 6:05 
What I meant by "pull electricity" is:

In vanilla, Oxygen Tank Shelves pull 30 kW of energy, and Diving Suit Lockers pull 10 kW of energy.

In this mod, Oxygen Tank Shelves pull 10 kW energy when idle, and then +100 kW of energy per each oxygen tank it's charging. So, 110 kW for 1 tank charging; 210 kW for 2 tanks; 310 kW for 3 tanks.

However, Diving Suit Lockers do not have that behavior. They always pull 10 kW, regardless of whether the Oxygen Tank within the Diving Suit is full or not. One would expect the Diving Suit Locker to also pull 110 kW if it's charging the Oxygen Tank within the Diving Suit.
heheboi  [作者] 6 月 12 日 上午 4:45 
Nah, I dont
Ozen (Лиса) 6 月 11 日 下午 11:25 
Author, maybe you know of a mod kinda reverting process. I mean to charge oxygen tanks at the station and then release oxygen to hull when powered. Like it's done in reality. Thank you in advance
heheboi  [作者] 6 月 11 日 上午 8:09 
they already pull electricity in vanilla.
Roadent 6 月 11 日 上午 6:11 
Diving Suit lockers do not pull electricity and lower hull oxygen when you insert a diving suit with a not-full oxygen tank inside the same way that Oxygen Tank Shelves do.

Would it be possible to program in that functionality as well?
Draconis🐊 6 月 4 日 上午 12:12 
Honestly this should be Pull Requested because it would make upgrading the O2 generator actually a big deal.
heheboi  [作者] 4 月 30 日 上午 3:50 
I dont understand why it shouldnt.
cursedsanti 4 月 29 日 下午 6:29 
still works?