Made a fancier lasergun (#174)

Laserguns now have an internal capacitor that can be recharged by using it with a power cell

Makes the final fix for #138
This commit is contained in:
ScumbagDog
2019-04-01 20:06:43 +02:00
committed by Pieter-Jan Briers
parent b94e015314
commit 1af1ee2ad4
8 changed files with 148 additions and 38 deletions

View File

@@ -31,6 +31,7 @@ namespace Content.Server.GameObjects.Components.Power
base.DeductCharge(toDeduct);
_updateAppearance();
ChargeChanged();
}
public override void AddCharge(float charge)
@@ -38,6 +39,7 @@ namespace Content.Server.GameObjects.Components.Power
base.AddCharge(charge);
_updateAppearance();
ChargeChanged();
}
private void _updateAppearance()