12class ActionBreakLongWoodenStick: ActionContinuousBase
14 void ActionBreakLongWoodenStick()
32 if (item.IsEmpty() && (!item.GetCompEM() || !item.GetCompEM().IsWorking()))
47 override void OnFinishProgressServer(
ActionData action_data )
49 ItemBase startingItem = action_data.m_MainItem;
55 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
59 EntityAI longStick = action_data.m_Player.SpawnEntityOnGroundRaycastDispersed(
"LongWoodenStick");
62 Class.CastTo(item_result, longStick);
64 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem, item_result);
69class BreakLongWoodenStick : ReplaceItemWithNewLambdaBase
73 void BreakLongWoodenStick(
EntityAI old_item,
string new_item_type,
PlayerBase player,
int count)
78 override void CopyOldPropertiesToNew(notnull
EntityAI old_item,
EntityAI new_item)
80 super.CopyOldPropertiesToNew(old_item, new_item);
83 Class.CastTo(sticks, new_item);
86 Class.CastTo(ingredient, old_item);
88 MiscGameplayFunctions.TransferItemProperties(ingredient, sticks);
90 sticks.SetQuantity(m_ItemCount);