export const ResinCap = 160 ; export const ResinsPerMinute = 1 / 8 ; export function getResinRecharge ( ms ) { return ( ms / 60000 ) * ResinsPerMinute ; } export function clampResin ( value ) { return Math . max ( 0 , Math . min ( ResinCap , value ) ) ; } export function roundResin ( value ) { return Math . floor ( clampResin ( value ) ) ; }