12 Object target_object = target.GetObject();
14 if ( target_object && target_object.IsFireplace() )
19 if ( fireplace_barrel && fireplace_barrel.IsOpen() && !fireplace_barrel.HasAshes() && !fireplace_barrel.IsBurning() )
22 if ( fireplace_barrel.IsCargoEmpty() && fireplace_barrel.GetInventory().AttachmentCount() > 0 )
32 override void OnExecuteServer(
ActionData action_data )
34 Object target_object = action_data.m_Target.GetObject();
37 string newTypeName =
"Fireplace";
39 bool found = action_data.m_Player.GetInventory().FindFirstFreeLocationForNewEntity( newTypeName,
FindInventoryLocationType.ANY, targetIL );
44 lambda.OverrideNewLocation( targetIL );
45 action_data.m_Player.ServerReplaceItemWithNew( lambda );
62 m_RemoveFromLocationPassed =
true;
71 super.CopyOldPropertiesToNew( old_item, new_item );
73 MiscGameplayFunctions.TransferInventory(old_item, new_item,
m_Player);
83 super.CreateNetworkObjectInfo(new_item);
84 GetGame().RemoteObjectTreeCreate(m_OldItem);