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:
committed by
Pieter-Jan Briers
parent
b94e015314
commit
1af1ee2ad4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user