Is it possible to mixinto/overide these?
Say, for example, I wanted to change the farming_call_handler, specifically:
This function
function FarmingCallHandler:choose_new_field_location(session, response)
stonehearth.selection:select_designation_region(stonehearth.constants.xz_region_reasons.NEW_FIELD)
:set_max_size(11)
:use_designation_marquee(Color4(55, 187, 56, 255))
:set_cursor(‘stonehearth:cursors:zone_farm’)
:set_find_support_filter(stonehearth.selection.valid_terrain_blocks_only_xz_region_support_filter({
grass = true,
dirt = true
}))
:done(function(selector, box)
local size = {
x = box.max.x - box.min.x,
y = box.max.z - box.min.z,
}
_radiant.call('stonehearth:create_new_field', box.min, size)
:done(function(r)
response:resolve({ field = r.field })
end)
:always(function()
selector:destroy()
end)
end)
:fail(function(selector)
selector:destroy()
response:reject('no region')
end)
:go()
end
More specifically, this part:
:set_find_support_filter(stonehearth.selection.valid_terrain_blocks_only_xz_region_support_filter({
grass = true,
dirt = true
}))
to
:set_find_support_filter(stonehearth.selection.valid_terrain_blocks_only_xz_region_support_filter({
rock = true,
grass = true,
dirt = true
}))
To, theoretically, be able to place a farm on stone if you’re using the mod that adds this functionality.