3 private const float TIME_TO_CRAFT_KNIFE = 5;
5 override void CreateActionComponent()
21 m_Text =
"#STR_CraftStoneKnife0";
24 override void CreateConditionComponents()
33 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
36 Object targetObject = target.GetObject();
37 if ( targetObject.IsRock() )
45 override void OnFinishProgressServer(
ActionData action_data )
47 EntityAI item_ingredient = action_data.m_MainItem;
50 knife = action_data.m_Player.SpawnEntityOnGroundPos(
"StoneKnife", action_data.m_Player.GetPosition());
51 action_data.m_MainItem.Delete();
53 MiscGameplayFunctions.TransferItemProperties(item_ingredient, knife);