Readjust radiation collectors. (#6255)

Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
This commit is contained in:
Pancake
2022-01-23 12:40:27 -08:00
committed by GitHub
parent 2daf7da83b
commit e54195575b

View File

@@ -33,6 +33,9 @@ namespace Content.Server.Singularity.Components
}
}
[ViewVariables(VVAccess.ReadWrite)]
public float ChargeModifier = 30000f;
bool IInteractHand.InteractHand(InteractHandEventArgs eventArgs)
{
var curTime = _gameTiming.CurTime;
@@ -67,7 +70,7 @@ namespace Content.Server.Singularity.Components
// This still won't stop things being potentially hilarously unbalanced though.
if (_entMan.TryGetComponent<BatteryComponent>(Owner, out var batteryComponent))
{
batteryComponent.CurrentCharge += frameTime * radiation.RadsPerSecond * 3000f;
batteryComponent.CurrentCharge += frameTime * radiation.RadsPerSecond * ChargeModifier;
}
}