3 private const float TIME_TO_BREAK_STICKS = 5.0;
5 override void CreateActionComponent()
24 override void CreateConditionComponents()
32 if (item.IsEmpty() && (!item.GetCompEM() || !item.GetCompEM().IsWorking()))
42 override bool HasTarget()
47 override void OnFinishProgressServer(
ActionData action_data )
49 ItemBase startingItem = action_data.m_MainItem;
52 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
56 EntityAI longStick = action_data.m_Player.SpawnEntityOnGroundPos(
"LongWoodenStick", action_data.m_Player.GetPosition());
59 Class.CastTo(item_result, longStick);
61 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem, item_result);
75 override void CopyOldPropertiesToNew(notnull
EntityAI old_item,
EntityAI new_item)
77 super.CopyOldPropertiesToNew(old_item, new_item);
80 Class.CastTo(sticks, new_item);
83 Class.CastTo(ingredient, old_item);
85 MiscGameplayFunctions.TransferItemProperties(ingredient, sticks);