Omega Drill


Adds a large, Powerful Drill.

Content
8 hours ago
0.15 - 2.0
55.9K
Mining

b the fix for fluid mining

2 years ago
local apply=require("prototypes.phase-j.apply_setting");
    local function register(inobj)
        data:extend{inobj}
    end






    --input_fluid_patch_shadow_sprites need to add after
    data.raw["mining-drill"]["omega-drill"].input_fluid_patch_shadow_sprites.north.draw_as_shadow=true;
    data.raw["mining-drill"]["omega-drill"].input_fluid_patch_shadow_sprites.east.draw_as_shadow=true;
    data.raw["mining-drill"]["omega-drill"].input_fluid_patch_shadow_sprites.south.draw_as_shadow=true;
    data.raw["mining-drill"]["omega-drill"].input_fluid_patch_shadow_sprites.draw_as_shadow=true;


    local graphic_data=
    {
        graphics_set=
        {
            animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].animations),
        },
        wet_mining_graphics_set=
        {
            animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_shadow_sprites),
            working_visualisations=
            {
                {
                    always_draw=true,
                    secondary_draw_order=-48,
                    north_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].animations.north),
                    east_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].animations.east),
                    south_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].animations.south),
                    west_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].animations.west),
                },
                {
                    always_draw=true,
                    north_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_sprites.north),
                    east_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_sprites.east),
                    south_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_sprites.south),
                    west_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_sprites.west),
                },
                {
                    always_draw=true,
                    secondary_draw_order=-47,
                    north_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_sprites.north),
                    east_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_sprites.east),
                    south_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_sprites.south),
                    west_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_sprites.west),
                },--[[ this is bad so I delete it here.
                {
                    always_draw=true,
                    apply_tint="input-fluid-flow-color",
                    north_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_flow_sprites[1].north),
                    east_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_flow_sprites[1].east),
                    south_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_flow_sprites[1].south),
                    west_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_flow_sprites[1].west),
                },]]
                {
                    always_draw=true,
                    secondary_draw_order=-46,
                    apply_tint="input-fluid-base-color",
                    north_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_base_sprites[1].north),
                    east_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_base_sprites[1].east),
                    south_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_base_sprites[1].south),
                    west_animation=table.deepcopy(data.raw["mining-drill"]["omega-drill"].input_fluid_patch_window_base_sprites[1].west),
                },
            },
        },
        animations="setnil",
    };




    apply(graphic_data,data.raw["mining-drill"]["omega-drill"]);
1 year, 3 months ago

Is this for the missing graphic when using fluid mining?
If so: Where do i put this part (or copy it into?)

1 year, 1 month ago

I think this bug cropped up within a week of me stopping checking the comments. Fantastic.

Fixed in 2.3. Lemme know if there's something wrong.

New response