Namespace: matrix

db. matrix

Companion plant matrix

Methods


<static> add(plant0, plant1, companion)

Used internally to add entries to the list of companions.
Parameters:
Name Type Description
plant0 String
plant1 String
companion Number 0 for incompatible, 1 for companion

<static> addPlant(plant)

Helper for adding entries.
Parameters:
Name Type Description
plant String

<static> getCompanionValue(plant0, plant1)

Get companionship value of two plants.
Parameters:
Name Type Description
plant0 String
plant1 String
Returns:
0 for incompatible, 1 for companion, undefined for neutral.
Type
Number

<static> getCompanionValueWithExactOrder(plant0, plant1)

Helper for getting a companionship value.
Parameters:
Name Type Description
plant0 String
plant1 String
Returns:
Type
Number