print("register fruit type: Hafer"); local oatHudFile = Utils.getFilename("oatHud.dds", g_currentModDirectory); FruitUtil.registerFruitType("oat", g_i18n:getText("oat"), true, true, false, 0, 4, 6, 8, true, 0.25, 1.2, 0.05, true, oatHudFile, {0.5, 0.5, 0, 1}); -- Stroh Anfang FruitUtil.registerFruitTypeWindrow(FruitUtil.FRUITTYPE_OAT, "barley_windrow", g_i18n:getText("straw"), 0.04, 3, false, Utils.getFilename("mods/Breitheim_NBK_ohneVerfaulen/hud_fill_straw.dds", getUserProfileAppPath())); -- Stroh Ende local origSowingMachineLoad = SowingMachine.load; local orig TrailerLoad = Trailer.load; SowingMachine.load = function (self, xmlFile) if origSowingMachineLoad ~= nil then origSowingMachineLoad(self, xmlFile); end; for k,v in pairs(self.seeds) do fruitTypeDesc = FruitUtil.fruitTypes["wheat"]; if v == fruitTypeDesc.index then table.insert(self.seeds, FruitUtil.fruitTypes["oat"].index); end; end end; -- for chopped_straw by webalizer FruitUtil.registerFruitType("choppedStraw", g_i18n:getText("choppedStraw"), false, false, true, 1, 100, 2, 1, 1, nil); FruitUtil.registerFruitTypePreparing(FruitUtil.FRUITTYPE_CHOPPEDSTRAW,"choppedStraw_haulm", 8, 8, 9); if g_i18n.globalI18N.texts.choppedStraw == nil then g_i18n.globalI18N.texts.choppedStraw = g_i18n:getText("choppedStraw"); end;