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"]);