crafting.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. class BurlapSack: Inventory_Base
  2. {
  3. override void SetActions()
  4. {
  5. super.SetActions();
  6. AddAction(ActionCoverHeadTarget);
  7. AddAction(ActionCoverHeadSelf);
  8. }
  9. };
  10. class GorkaHelmetVisor: Inventory_Base
  11. {
  12. override protected void InitGlobalExclusionValues()
  13. {
  14. super.InitGlobalExclusionValues();
  15. AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_2);
  16. AddSingleExclusionValueGlobal(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
  17. }
  18. };
  19. class ChickenFeather: Inventory_Base
  20. {
  21. override void SetActions()
  22. {
  23. super.SetActions();
  24. AddAction(ActionCraftBoltsFeather);
  25. }
  26. };
  27. class LongWoodenStick: Inventory_Base
  28. {
  29. override void SetActions()
  30. {
  31. super.SetActions();
  32. AddAction(ActionClapBearTrapWithThisItem);
  33. AddAction(ActionBreakLongWoodenStick);
  34. AddAction(ActionAttachToConstruction);
  35. }
  36. };
  37. class SharpWoodenStick: LongWoodenStick
  38. {
  39. override void SetActions()
  40. {
  41. super.SetActions();
  42. AddAction(ActionClapBearTrapWithThisItem);
  43. AddAction(ActionCookOnStick);
  44. }
  45. }
  46. class Rope: Inventory_Base
  47. {
  48. ref InventoryLocation m_TargetLocation = new InventoryLocation;
  49. override void SetActions()
  50. {
  51. super.SetActions();
  52. AddAction(ActionRestrainTarget);
  53. AddAction(ActionCraftRopeBelt);
  54. AddAction(ActionRestrainSelf);
  55. }
  56. InventoryLocation GetTargetLocation()
  57. {
  58. return m_TargetLocation;
  59. }
  60. void SetTargetLocation(InventoryLocation targetLocation)
  61. {
  62. m_TargetLocation.CopyLocationFrom(targetLocation, true);
  63. }
  64. override bool CanAssignToQuickbar()
  65. {
  66. return (!GetInventory().IsAttachment());
  67. }
  68. };
  69. class Spear : Inventory_Base
  70. {
  71. override void SetActions()
  72. {
  73. super.SetActions();
  74. AddAction(ActionClapBearTrapWithThisItem);
  75. }
  76. };
  77. class SpearStone : Spear
  78. {
  79. };
  80. class SpearBone : Spear
  81. {
  82. };
  83. class Fabric : Inventory_Base
  84. {
  85. override void SetActions()
  86. {
  87. super.SetActions();
  88. AddAction(ActionRepairTentPart);
  89. AddAction(ActionAttachToConstruction);
  90. AddAction(ActionRepairCarChassis);
  91. }
  92. };