1
0

KnappingComponent.cs 939 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.Rocks;
  3. [RegisterComponent]
  4. public sealed partial class KnappingComponent : Component
  5. {
  6. /// <summary>
  7. /// Amount of hits needed to complete the craft
  8. /// </summary>
  9. [DataField("hitsRequired")]
  10. public int HitsRequired = 3;
  11. /// <summary>
  12. /// Prototype that the knapping will result
  13. /// </summary>
  14. [DataField("resultPrototype")]
  15. public string ResultPrototype = "SharpenedFlint";
  16. /// <summary>
  17. /// If true, allow the user to knap into a boulder. takes longer
  18. /// </summary>
  19. [DataField("allowRockKnapping")]
  20. public bool AllowRockKnapping = true;
  21. /// <summary>
  22. /// time that each knapping hit takes
  23. /// </summary>
  24. [DataField("hitTime")]
  25. public float HitTime = 2.0f;
  26. /// <summary>
  27. /// amount of hits already done
  28. /// </summary>
  29. [DataField("currentHits")]
  30. public int CurrentHits = 0;
  31. }