An effectiveness matrix between arbitrary types - mwg supplies the matrix, not a type
chart. Type names are whatever strings a game defines; an unset pairing multiplies by 1,
so a matrix only has to name the pairings that are not neutral.
Example
import { TypeMatrix } from'@datamoc/mwg/battle';
constmatrix = newTypeMatrix(); matrix.set('fire', 'grass', 2); // super effective matrix.set('fire', 'water', 0.5); // not very effective
An effectiveness matrix between arbitrary types -
mwgsupplies the matrix, not a type chart. Type names are whatever strings a game defines; an unset pairing multiplies by 1, so a matrix only has to name the pairings that are not neutral.Example