Open sootysax opened 8 years ago
Check the documentation for the map, if the map-author bothered to make one.
Or, after having the map loaded, check your LOG.TXT and look for the lines:
...
SoilMod: Herbicide avoidance: 'maize' dislikes 'herbicide2' (B)
SoilMod: Herbicide avoidance: 'sugarBeet' dislikes 'herbicide3' (C)
SoilMod: Herbicide avoidance: 'grass' dislikes 'n/a' (-)
SoilMod: Herbicide avoidance: 'dryGrass' dislikes 'n/a' (-)
...
which will tell you, if the map-author has added this to his SampleModMap.LUA script, in the LoadFinished
method:
-- Check that SoilMod v2.x is available...
if modSoilMod2 ~= nil then
-- Add/change fruit-type's dislike regarding herbicide-type...
modSoilMod2.setFruitTypeHerbicideAvoidance("alfalfa", "B") -- make 'alfalfa' dislike herbicide-B
modSoilMod2.setFruitTypeHerbicideAvoidance("clover", "C") -- make 'clover' dislike herbicide-C
modSoilMod2.setFruitTypeHerbicideAvoidance("klee", "-") -- change 'klee' to not be affected by any of the herbicide types.
end
It should be added before the line self:finishLoadingTask();
as in the version 1.x?
It can be added after, like so:
function SampleModMap:loadCareerMap01Finished(node, arguments)
[...code omitted...]
trcScreenFlip();
if startedRepeat then
endFrameRepeatMode();
end
self:finishLoadingTask();
-- Check that SoilMod v2.x is available...
if modSoilMod2 ~= nil then
-- Add/change fruit-type's dislike regarding herbicide-type...
modSoilMod2.setFruitTypeHerbicideAvoidance("alfalfa", "B") -- make 'alfalfa' dislike herbicide-B
modSoilMod2.setFruitTypeHerbicideAvoidance("clover", "C") -- make 'clover' dislike herbicide-C
modSoilMod2.setFruitTypeHerbicideAvoidance("klee", "-") -- change 'klee' to not be affected by any of the herbicide types.
--modSoilMod2.setFruitTypeHerbicideAvoidance("rape", "-")
end
end;
Thank you. I added the hops.
Wondering if additional undefined crops have a default like/dislike set for herbicides?
The Lakeside Farm map I am playing has Sorghum in addition to Rye, and Oats and am not sure what to spray Sorghum with.