/////////////////////////////////////////////////////////////////////////// // Copyright (C) Wizardry and Steamworks 2011 - License: GNU GPLv3 // // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // // rights of fair usage, the disclaimer and warranty conditions. // /////////////////////////////////////////////////////////////////////////// // REQUIRES: integer, cap // a number representing the value of a certain cap // REQUIRES: integer, pad // some initial padding value you may want to pad with // PROVIDES: the random delay pool required to wait // between repeating a capped operation. integer minCapDodgeTimeI(integer cap, integer pad) { if(cap < 1) return pad; pad += cap >> 1; cap /= 10; return minCapDodgeTime(cap, pad); }