3 private const float TIME_TO_CRAFT_KNIFE = 5;
5 override void CreateActionComponent()
21 m_Text =
"#STR_CraftBoneKnife0";
24 override void CreateConditionComponents()
33 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
36 Object targetObject = target.GetObject();
37 if ( targetObject.IsRock() )
44 override void OnFinishProgressServer(
ActionData action_data )
46 EntityAI item_ingredient = action_data.m_MainItem;
49 knife = action_data.m_Player.SpawnEntityOnGroundPos(
"BoneKnife", action_data.m_Player.GetPosition());
50 action_data.m_MainItem.AddQuantity(-1);
52 MiscGameplayFunctions.TransferItemProperties(item_ingredient, knife);
56 override string GetSoundCategory(
ActionData action_data)
58 return "BoneKnife_stone";