Tweak stun batons to use a battery instead of power cell (#8716)

* Allow baton/battery to be inserted into recharger

* Revert "Allow baton/battery to be inserted into recharger"

This reverts commit ccf1f3d1827bf45c49bb6ca4f5c97990d1afba6e.

* Refactor stun batons to use internal batteries
This commit is contained in:
themias
2022-06-11 21:20:03 -04:00
committed by GitHub
parent 093d65e92a
commit 1e02a97451
5 changed files with 19 additions and 39 deletions

View File

@@ -34,7 +34,7 @@ namespace Content.Server.Power.Components
/// </summary>
public virtual bool TryUseCharge(float chargeToUse)
{
if (chargeToUse >= CurrentCharge)
if (chargeToUse > CurrentCharge)
{
return false;
}