misc: calcTournamentTerm ts 이식
This commit is contained in:
@@ -14,3 +14,4 @@ export { isValidObjKey } from "./isValidObjKey";
|
|||||||
export { nextExpLevelRemain } from "./nextExpLevelRemain";
|
export { nextExpLevelRemain } from "./nextExpLevelRemain";
|
||||||
export { postFilterNationCommandGen } from "./postFilterNationCommandGen";
|
export { postFilterNationCommandGen } from "./postFilterNationCommandGen";
|
||||||
export { isTechLimited, convTechLevel, getMaxRelativeTechLevel } from "./techLevel";
|
export { isTechLimited, convTechLevel, getMaxRelativeTechLevel } from "./techLevel";
|
||||||
|
export { calcTournamentTerm } from "./tournament";
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import { clamp } from 'lodash-es';
|
||||||
|
export function calcTournamentTerm(turnTerm: number): number{
|
||||||
|
return clamp(turnTerm, 5, 120);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user