This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import product | |
from typing import Dict, Tuple | |
import sys | |
melee_as = 3.9 | |
ranged_as = 2.9 | |
ranged_haste = 1.15 * 1.2 | |
auto_damage, steady_damage, raptor_damage, attack_damage = 1463, 1457, 1432, 1207 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def OCR(freq, prescaler): | |
return (16000000 / (prescaler * freq)) - 1 | |
def HZ(ocr, prescaler): | |
return (16000000 / (prescaler * (ocr+1))) | |
def checkBit(data, bit): | |
return bool(data & (1<<bit)) | |
def checkTimerValid(li): |