9 override void CreateConditionComponents ()
15 override bool HasTarget () {
return false; }
24 override bool ActionConditionContinue (
ActionData action_data ) {
return true; }
26 override void OnExecuteClient (
ActionData action_data )
31 override void OnExecuteServer (
ActionData action_data )
33 if ( !
GetGame().IsMultiplayer() )
36 ItemBase old_item = action_data.m_MainItem;
37 if (old_item.ConfigIsExisting(
"ChangeIntoOnDetach"))
39 string str = old_item.ChangeIntoOnDetach();
43 lambda.SetTransferParams(
true,
true,
true,
false, 1);
44 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);