``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
21 lines
523 B
JavaScript
21 lines
523 B
JavaScript
import { LimitedUseResetTypeEnum } from './constants';
|
|
/**
|
|
*
|
|
* @param resetType
|
|
*/
|
|
export function renderLimitedUseResetAbbreviation(resetType) {
|
|
switch (resetType) {
|
|
case LimitedUseResetTypeEnum.LONG_REST:
|
|
return 'LR';
|
|
case LimitedUseResetTypeEnum.SHORT_REST:
|
|
return 'SR';
|
|
case LimitedUseResetTypeEnum.DAWN:
|
|
return 'D';
|
|
case LimitedUseResetTypeEnum.OTHER:
|
|
return 'O';
|
|
default:
|
|
// not implemented
|
|
}
|
|
return '';
|
|
}
|