There are bound to be small mistakes here. I'm trying to make some code to add to isValid, to determine if the starting plot has food. That way i can overwrite normalizeAddFoodBonuses() with no detriment to the map.
arrayX and arrayY are meant to store the x/y values of all the plots in the starting city fat-cross. arrayBonus is meant to hold all the bonus indexes that represent acceptable food. Now all I want is for loops to go through each array and check the plot for food. If they get to last plot and they have not continued yet, I want it to return false for isValid.
Now don't laugh about the mistakes I made here, I have no clue
arrayX and arrayY are meant to store the x/y values of all the plots in the starting city fat-cross. arrayBonus is meant to hold all the bonus indexes that represent acceptable food. Now all I want is for loops to go through each array and check the plot for food. If they get to last plot and they have not continued yet, I want it to return false for isValid.
Now don't laugh about the mistakes I made here, I have no clue
Code:
arrayX = [x-1, x, x+1, x-2, x-1, x, x+1, x+2, x-2, x-1, x, x+1, x+2, x-2, x-1, x, x+1, x+2, x-1, x, x+1]
arrayY = [y-2, y-2, y-2, y-1, y-1, y-1, y-1, y-1, y, y, y, y, y, y+1, y+1, y+1, y+1, y+1, y+2, y+2, y+2]
arrayBonus = [10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
for iY in range(arrayX):
for iX in range(arrayY):
pPlot = map.plot(iX,iY)
pBonus = pPlot.getBonusType(-1):
if (pBonus in arrayBonus)
continue
if (iX = x+1 and iY = y+2)
return false