Readjust radiation collectors. (#6255)
Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
This commit is contained in:
@@ -33,6 +33,9 @@ namespace Content.Server.Singularity.Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
|
public float ChargeModifier = 30000f;
|
||||||
|
|
||||||
bool IInteractHand.InteractHand(InteractHandEventArgs eventArgs)
|
bool IInteractHand.InteractHand(InteractHandEventArgs eventArgs)
|
||||||
{
|
{
|
||||||
var curTime = _gameTiming.CurTime;
|
var curTime = _gameTiming.CurTime;
|
||||||
@@ -67,7 +70,7 @@ namespace Content.Server.Singularity.Components
|
|||||||
// This still won't stop things being potentially hilarously unbalanced though.
|
// This still won't stop things being potentially hilarously unbalanced though.
|
||||||
if (_entMan.TryGetComponent<BatteryComponent>(Owner, out var batteryComponent))
|
if (_entMan.TryGetComponent<BatteryComponent>(Owner, out var batteryComponent))
|
||||||
{
|
{
|
||||||
batteryComponent.CurrentCharge += frameTime * radiation.RadsPerSecond * 3000f;
|
batteryComponent.CurrentCharge += frameTime * radiation.RadsPerSecond * ChargeModifier;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user