Module: Crop

Crops are what people plant in the ground

Methods


findMarketCropForCrop(crop, marketCrops)

Given a crop, it attempts to find a market crop from the given list of market crops by either the market_crop_id or a static list of crop names to symbols. Ideally this will all be done with the market_crop_id but the symbols are used for back support.

Parameters:
Name Type Description
crop crop

The crop requested to find the market crop for

marketCrops Array.<market_crop>

The list of market crops to look through

Returns:

The found market crop or null if not found.

Type
market_crop | null