Alt Token Cover v0.7.0 made some changes and now can display cover icons on a per-user basis. As such, I don't think Tactical Grid's display of cover icons is necessary if ATC is installed. So I recommend just removing tokencover (and tokenvisibility, which stopped handling cover awhile ago) from the options in computeCoverBonus. Otherwise, I think the two modules will just end up displaying the same cover icons repeatedly.
If you did want to keep it or access cover calculations for other reasons, you can do that a few different ways:
Hi! I am the dev for Alt. Token Cover module.
Alt Token Cover v0.7.0 made some changes and now can display cover icons on a per-user basis. As such, I don't think Tactical Grid's display of cover icons is necessary if ATC is installed. So I recommend just removing
tokencover
(andtokenvisibility
, which stopped handling cover awhile ago) from the options incomputeCoverBonus
. Otherwise, I think the two modules will just end up displaying the same cover icons repeatedly.If you did want to keep it or access cover calculations for other reasons, you can do that a few different ways:
token.tokencover. coverPercentFromAttacker(attackingToken)
This will get you the percent cover for the token.token.tokencover. coverTypesFromAttacker(attackingToken)
This will get you one or more defined CoverTypes, which represent system-specific rules for cover.attackingToken.tokencover.coverCalculator.targetCover(targetToken)
This is the old, deprecated way to get an enumerated cover type: none (0), low (1), medium (2), high (3).