mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
TM/HM constants named after moves
This commit is contained in:
parent
66ebe56adc
commit
405889193e
203 changed files with 330 additions and 302 deletions
|
|
@ -22,12 +22,16 @@ _tms1 = 0 ; TM01-TM24 (24)
|
|||
_tms2 = 0 ; TM25-TM48 (24)
|
||||
_tms3 = 0 ; TM49-TM50 + HM01-HM05 (7/24)
|
||||
rept _NARG
|
||||
if (\1) < 24 + 1
|
||||
_tms1 = _tms1 | (1 << ((\1) - 1))
|
||||
elif (\1) < 48 + 1
|
||||
_tms2 = _tms2 | (1 << ((\1) - 1 - 24))
|
||||
if DEF(\1_TMNUM)
|
||||
if \1_TMNUM < 24 + 1
|
||||
_tms1 = _tms1 | (1 << ((\1_TMNUM) - 1))
|
||||
elif \1_TMNUM < 48 + 1
|
||||
_tms2 = _tms2 | (1 << ((\1_TMNUM) - 1 - 24))
|
||||
else
|
||||
_tms3 = _tms3 | (1 << ((\1) - 1 - 48))
|
||||
_tms3 = _tms3 | (1 << ((\1_TMNUM) - 1 - 48))
|
||||
endc
|
||||
else
|
||||
fail "\1 is not a TM or HM move"
|
||||
endc
|
||||
shift
|
||||
endr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue