2022-06-01 19:59:58 +10:00
|
|
|
namespace Content.Shared.Weapons.Ranged.Components;
|
|
|
|
|
|
2023-08-22 18:14:33 -07:00
|
|
|
public abstract partial class BatteryAmmoProviderComponent : AmmoProviderComponent
|
2022-06-01 19:59:58 +10:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How much battery it costs to fire once.
|
|
|
|
|
/// </summary>
|
2023-11-19 15:17:53 -05:00
|
|
|
[DataField("fireCost"), ViewVariables(VVAccess.ReadWrite)]
|
2022-06-01 19:59:58 +10:00
|
|
|
public float FireCost = 100;
|
|
|
|
|
|
|
|
|
|
// Batteries aren't predicted which means we need to track the battery and manually count it ourselves woo!
|
|
|
|
|
|
2023-11-19 15:17:53 -05:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2022-06-01 19:59:58 +10:00
|
|
|
public int Shots;
|
|
|
|
|
|
2023-11-19 15:17:53 -05:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2022-06-01 19:59:58 +10:00
|
|
|
public int Capacity;
|
|
|
|
|
}
|