int rewardType = rs.getInt("reward_type");
long price = rs.getLong("price");
int period = rs.getInt("period");
if (period == PERIOD_CURRENT)
{
procure.add(new CropProcure(cropId, canBuy, rewardType, startBuy, price));
}
else
{
procureNext.add(new CropProcure(cropId, canBuy, rewardType, startBuy, price));
}
}
castle.setCropProcure(procure, PERIOD_CURRENT);
castle.setCropProcure(procureNext, PERIOD_NEXT);
if (!procure.isEmpty() || !procureNext.isEmpty() || !production.isEmpty() || !productionNext.isEmpty())