Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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 '';
|
||||
}
|
||||
Reference in New Issue
Block a user