游戏王残局简化版

普常量.lua at [0e02c7118c]
Login

普常量.lua at [0e02c7118c]

File 残局文料/普常量.lua artifact a780aab93e part of check-in 0e02c7118c


local k1_0 = {}
k1_0.MIN_ID=1000
k1_0.MAX_ID=268435455
k1_0.MAX_COUNTER=65535
k1_0.MAX_PARAMETER=0xffff
k1_0.LOCATION_DECK=0x01
k1_0.LOCATION_HAND=0x02
k1_0.LOCATION_MZONE=0x04
k1_0.LOCATION_SZONE=0x08
k1_0.LOCATION_GRAVE=0x10
k1_0.LOCATION_REMOVED=0x20
k1_0.LOCATION_EXTRA=0x40
k1_0.LOCATION_OVERLAY=0x80
k1_0.LOCATION_ONFIELD=0x0c
k1_0.LOCATION_DECKBOT=0x10001
k1_0.LOCATION_DECKSHF=0x20001
k1_0.SEQ_DECKTOP=0
k1_0.SEQ_DECKBOTTOM=1
k1_0.SEQ_DECKSHUFFLE=2
k1_0.LOCATION_FZONE=0x100
k1_0.LOCATION_PZONE=0x200
k1_0.POS_FACEUP_ATTACK=0x1
k1_0.POS_FACEDOWN_ATTACK=0x2
k1_0.POS_FACEUP_DEFENSE=0x4
k1_0.POS_FACEDOWN_DEFENSE=0x8
k1_0.POS_FACEUP=0x5
k1_0.POS_FACEDOWN=0xa
k1_0.POS_ATTACK=0x3
k1_0.POS_DEFENSE=0xc
k1_0.NO_FLIP_EFFECT=0x10000
k1_0.TYPE_MONSTER=0x1
k1_0.TYPE_SPELL=0x2
k1_0.TYPE_TRAP=0x4
k1_0.TYPE_NORMAL=0x10
k1_0.TYPE_EFFECT=0x20
k1_0.TYPE_FUSION=0x40
k1_0.TYPE_RITUAL=0x80
k1_0.TYPE_TRAPMONSTER=0x100
k1_0.TYPE_SPIRIT=0x200
k1_0.TYPE_UNION=0x400
k1_0.TYPE_DUAL=0x800
k1_0.TYPE_TUNER=0x1000
k1_0.TYPE_SYNCHRO=0x2000
k1_0.TYPE_TOKEN=0x4000
k1_0.TYPE_QUICKPLAY=0x10000
k1_0.TYPE_CONTINUOUS=0x20000
k1_0.TYPE_EQUIP=0x40000
k1_0.TYPE_FIELD=0x80000
k1_0.TYPE_COUNTER=0x100000
k1_0.TYPE_FLIP=0x200000
k1_0.TYPE_TOON=0x400000
k1_0.TYPE_XYZ=0x800000
k1_0.TYPE_PENDULUM=0x1000000
k1_0.TYPE_SPSUMMON=0x2000000
k1_0.TYPE_LINK=0x4000000
k1_0.TYPES_TOKEN_MONSTER=0x4011
k1_0.TYPES_NORMAL_TRAP_MONSTER=0x111
k1_0.TYPES_EFFECT_TRAP_MONSTER=0x121
k1_0.ATTRIBUTE_ALL=0x7f
k1_0.ATTRIBUTE_EARTH=0x01
k1_0.ATTRIBUTE_WATER=0x02
k1_0.ATTRIBUTE_FIRE=0x04
k1_0.ATTRIBUTE_WIND=0x08
k1_0.ATTRIBUTE_LIGHT=0x10
k1_0.ATTRIBUTE_DARK=0x20
k1_0.ATTRIBUTE_DIVINE=0x40
k1_0.RACE_ALL=0x3ffffff
k1_0.RACE_WARRIOR=0x1
k1_0.RACE_SPELLCASTER=0x2
k1_0.RACE_FAIRY=0x4
k1_0.RACE_FIEND=0x8
k1_0.RACE_ZOMBIE=0x10
k1_0.RACE_MACHINE=0x20
k1_0.RACE_AQUA=0x40
k1_0.RACE_PYRO=0x80
k1_0.RACE_ROCK=0x100
k1_0.RACE_WINDBEAST=0x200
k1_0.RACE_PLANT=0x400
k1_0.RACE_INSECT=0x800
k1_0.RACE_THUNDER=0x1000
k1_0.RACE_DRAGON=0x2000
k1_0.RACE_BEAST=0x4000
k1_0.RACE_BEASTWARRIOR=0x8000
k1_0.RACE_DINOSAUR=0x10000
k1_0.RACE_FISH=0x20000
k1_0.RACE_SEASERPENT=0x40000
k1_0.RACE_REPTILE=0x80000
k1_0.RACE_PSYCHO=0x100000
k1_0.RACE_DIVINE=0x200000
k1_0.RACE_CREATORGOD=0x400000
k1_0.RACE_WYRM=0x800000
k1_0.RACE_CYBERSE=0x1000000
k1_0.RACE_ILLUSION=0x2000000
k1_0.REASON_DESTROY=0x1
k1_0.REASON_RELEASE=0x2
k1_0.REASON_TEMPORARY=0x4
k1_0.REASON_MATERIAL=0x8
k1_0.REASON_SUMMON=0x10
k1_0.REASON_BATTLE=0x20
k1_0.REASON_EFFECT=0x40
k1_0.REASON_COST=0x80
k1_0.REASON_ADJUST=0x100
k1_0.REASON_LOST_TARGET=0x200
k1_0.REASON_RULE=0x400
k1_0.REASON_SPSUMMON=0x800
k1_0.REASON_DISSUMMON=0x1000
k1_0.REASON_FLIP=0x2000
k1_0.REASON_DISCARD=0x4000
k1_0.REASON_RDAMAGE=0x8000
k1_0.REASON_RRECOVER=0x10000
k1_0.REASON_RETURN=0x20000
k1_0.REASON_FUSION=0x40000
k1_0.REASON_SYNCHRO=0x80000
k1_0.REASON_RITUAL=0x100000
k1_0.REASON_XYZ=0x200000
k1_0.REASON_REPLACE=0x1000000
k1_0.REASON_DRAW=0x2000000
k1_0.REASON_REDIRECT=0x4000000
k1_0.REASON_REVEAL=0x8000000
k1_0.REASON_LINK=0x10000000
k1_0.REASON_LOST_OVERLAY=0x20000000
k1_0.LOCATION_REASON_TOFIELD=0x1
k1_0.LOCATION_REASON_CONTROL=0x2
k1_0.SUMMON_TYPE_NORMAL=0x10000000
k1_0.SUMMON_TYPE_ADVANCE=0x11000000
k1_0.SUMMON_TYPE_DUAL=0x12000000
k1_0.SUMMON_TYPE_FLIP=0x20000000
k1_0.SUMMON_TYPE_SPECIAL=0x40000000
k1_0.SUMMON_TYPE_FUSION=0x43000000
k1_0.SUMMON_TYPE_RITUAL=0x45000000
k1_0.SUMMON_TYPE_SYNCHRO=0x46000000
k1_0.SUMMON_TYPE_XYZ=0x49000000
k1_0.SUMMON_TYPE_PENDULUM=0x4a000000
k1_0.SUMMON_TYPE_LINK=0x4c000000
k1_0.SUMMON_VALUE_SELF=0x1
k1_0.SUMMON_VALUE_BLACK_GARDEN=0x10
k1_0.SUMMON_VALUE_SYNCHRO_MATERIAL=0x11
k1_0.SUMMON_VALUE_DARK_SANCTUARY=0x12
k1_0.SUMMON_VALUE_MONSTER_REBORN=0x13
k1_0.SUMMON_VALUE_LV=0x1000
k1_0.SUMMON_VALUE_GLADIATOR=0x2000
k1_0.SUMMON_VALUE_EVOLTILE=0x4000
k1_0.SUMMON_VALUE_NOUVELLEZ=0x8000
k1_0.STATUS_DISABLED=0x0001
k1_0.STATUS_TO_ENABLE=0x0002
k1_0.STATUS_TO_DISABLE=0x0004
k1_0.STATUS_PROC_COMPLETE=0x0008
k1_0.STATUS_SET_TURN=0x0010
k1_0.STATUS_NO_LEVEL=0x0020
k1_0.STATUS_BATTLE_RESULT=0x0040
k1_0.STATUS_SPSUMMON_STEP=0x0080
k1_0.STATUS_FORM_CHANGED=0x0100
k1_0.STATUS_SUMMONING=0x0200
k1_0.STATUS_EFFECT_ENABLED=0x0400
k1_0.STATUS_SUMMON_TURN=0x0800
k1_0.STATUS_DESTROY_CONFIRMED=0x1000
k1_0.STATUS_LEAVE_CONFIRMED=0x2000
k1_0.STATUS_BATTLE_DESTROYED=0x4000
k1_0.STATUS_COPYING_EFFECT=0x8000
k1_0.STATUS_CHAINING=0x10000
k1_0.STATUS_SUMMON_DISABLED=0x20000
k1_0.STATUS_ACTIVATE_DISABLED=0x40000
k1_0.STATUS_EFFECT_REPLACED=0x80000
k1_0.STATUS_FUTURE_FUSION=0x100000
k1_0.STATUS_ATTACK_CANCELED=0x200000
k1_0.STATUS_INITIALIZING=0x400000
k1_0.STATUS_TO_HAND_WITHOUT_CONFIRM=0x800000
k1_0.STATUS_JUST_POS=0x1000000
k1_0.STATUS_CONTINUOUS_POS=0x2000000
k1_0.STATUS_FORBIDDEN=0x4000000
k1_0.STATUS_ACT_FROM_HAND=0x8000000
k1_0.STATUS_OPPO_BATTLE=0x10000000
k1_0.STATUS_FLIP_SUMMON_TURN=0x20000000
k1_0.STATUS_SPSUMMON_TURN=0x40000000
k1_0.ASSUME_CODE=1
k1_0.ASSUME_TYPE=2
k1_0.ASSUME_LEVEL=3
k1_0.ASSUME_RANK=4
k1_0.ASSUME_ATTRIBUTE=5
k1_0.ASSUME_RACE=6
k1_0.ASSUME_ATTACK=7
k1_0.ASSUME_DEFENSE=8
k1_0.LINK_MARKER_BOTTOM_LEFT=0x001
k1_0.LINK_MARKER_BOTTOM=0x002
k1_0.LINK_MARKER_BOTTOM_RIGHT=0x004
k1_0.LINK_MARKER_LEFT=0x008
k1_0.LINK_MARKER_RIGHT=0x020
k1_0.LINK_MARKER_TOP_LEFT=0x040
k1_0.LINK_MARKER_TOP=0x080
k1_0.LINK_MARKER_TOP_RIGHT=0x100
k1_0.COUNTER_WITHOUT_PERMIT=0x1000
k1_0.COUNTER_NEED_ENABLE=0x2000
k1_0.PHASE_DRAW=0x01
k1_0.PHASE_STANDBY=0x02
k1_0.PHASE_MAIN1=0x04
k1_0.PHASE_BATTLE_START=0x08
k1_0.PHASE_BATTLE_STEP=0x10
k1_0.PHASE_DAMAGE=0x20
k1_0.PHASE_DAMAGE_CAL=0x40
k1_0.PHASE_BATTLE=0x80
k1_0.PHASE_MAIN2=0x100
k1_0.PHASE_END=0x200
k1_0.PLAYER_NONE=2
k1_0.PLAYER_ALL=3
k1_0.CHAININFO_CHAIN_COUNT=0x01
k1_0.CHAININFO_TRIGGERING_EFFECT=0x02
k1_0.CHAININFO_TRIGGERING_PLAYER=0x04
k1_0.CHAININFO_TRIGGERING_CONTROLER=0x08
k1_0.CHAININFO_TRIGGERING_LOCATION=0x10
k1_0.CHAININFO_TRIGGERING_SEQUENCE=0x20
k1_0.CHAININFO_TARGET_CARDS=0x40
k1_0.CHAININFO_TARGET_PLAYER=0x80
k1_0.CHAININFO_TARGET_PARAM=0x100
k1_0.CHAININFO_DISABLE_REASON=0x200
k1_0.CHAININFO_DISABLE_PLAYER=0x400
k1_0.CHAININFO_CHAIN_ID=0x800
k1_0.CHAININFO_TYPE=0x1000
k1_0.CHAININFO_EXTTYPE=0x2000
k1_0.CHAININFO_TRIGGERING_POSITION=0x4000
k1_0.CHAININFO_TRIGGERING_CODE=0x8000
k1_0.CHAININFO_TRIGGERING_CODE2=0x10000
k1_0.CHAININFO_TRIGGERING_LEVEL=0x40000
k1_0.CHAININFO_TRIGGERING_RANK=0x80000
k1_0.CHAININFO_TRIGGERING_ATTRIBUTE=0x100000
k1_0.CHAININFO_TRIGGERING_RACE=0x200000
k1_0.CHAININFO_TRIGGERING_ATTACK=0x400000
k1_0.CHAININFO_TRIGGERING_DEFENSE=0x800000
k1_0.RESET_SELF_TURN=0x10000000
k1_0.RESET_OPPO_TURN=0x20000000
k1_0.RESET_PHASE=0x40000000
k1_0.RESET_CHAIN=0x80000000
k1_0.RESET_EVENT=0x1000
k1_0.RESET_CARD=0x2000
k1_0.RESET_CODE=0x4000
k1_0.RESET_COPY=0x8000
k1_0.RESET_DISABLE=0x00010000
k1_0.RESET_TURN_SET=0x00020000
k1_0.RESET_TOGRAVE=0x00040000
k1_0.RESET_REMOVE=0x00080000
k1_0.RESET_TEMP_REMOVE=0x00100000
k1_0.RESET_TOHAND=0x00200000
k1_0.RESET_TODECK=0x00400000
k1_0.RESET_LEAVE=0x00800000
k1_0.RESET_TOFIELD=0x01000000
k1_0.RESET_CONTROL=0x02000000
k1_0.RESET_OVERLAY=0x04000000
k1_0.RESET_MSCHANGE=0x08000000
k1_0.RESETS_STANDARD=0x1fe0000
k1_0.RESETS_REDIRECT=0xc7e0000
k1_0.RESETS_WITHOUT_TEMP_REMOVE=0x56e0000
k1_0.EFFECT_TYPE_SINGLE=0x0001
k1_0.EFFECT_TYPE_FIELD=0x0002
k1_0.EFFECT_TYPE_EQUIP=0x0004
k1_0.EFFECT_TYPE_ACTIONS=0x0008
k1_0.EFFECT_TYPE_ACTIVATE=0x0010
k1_0.EFFECT_TYPE_FLIP=0x0020
k1_0.EFFECT_TYPE_IGNITION=0x0040
k1_0.EFFECT_TYPE_TRIGGER_O=0x0080
k1_0.EFFECT_TYPE_QUICK_O=0x0100
k1_0.EFFECT_TYPE_TRIGGER_F=0x0200
k1_0.EFFECT_TYPE_QUICK_F=0x0400
k1_0.EFFECT_TYPE_CONTINUOUS=0x0800
k1_0.EFFECT_TYPE_XMATERIAL=0x1000
k1_0.EFFECT_TYPE_GRANT=0x2000
k1_0.EFFECT_TYPE_TARGET=0x4000
k1_0.EFFECT_FLAG_INITIAL=0x0001
k1_0.EFFECT_FLAG_FUNC_VALUE=0x0002
k1_0.EFFECT_FLAG_COUNT_LIMIT=0x0004
k1_0.EFFECT_FLAG_FIELD_ONLY=0x0008
k1_0.EFFECT_FLAG_CARD_TARGET=0x0010
k1_0.EFFECT_FLAG_IGNORE_RANGE=0x0020
k1_0.EFFECT_FLAG_ABSOLUTE_TARGET=0x0040
k1_0.EFFECT_FLAG_IGNORE_IMMUNE=0x0080
k1_0.EFFECT_FLAG_SET_AVAILABLE=0x0100
k1_0.EFFECT_FLAG_CANNOT_NEGATE=0x0200
k1_0.EFFECT_FLAG_CANNOT_DISABLE=0x0400
k1_0.EFFECT_FLAG_PLAYER_TARGET=0x0800
k1_0.EFFECT_FLAG_BOTH_SIDE=0x1000
k1_0.EFFECT_FLAG_COPY_INHERIT=0x2000
k1_0.EFFECT_FLAG_DAMAGE_STEP=0x4000
k1_0.EFFECT_FLAG_DAMAGE_CAL=0x8000
k1_0.EFFECT_FLAG_DELAY=0x10000
k1_0.EFFECT_FLAG_SINGLE_RANGE=0x20000
k1_0.EFFECT_FLAG_UNCOPYABLE=0x40000
k1_0.EFFECT_FLAG_OATH=0x80000
k1_0.EFFECT_FLAG_SPSUM_PARAM=0x100000
k1_0.EFFECT_FLAG_REPEAT=0x200000
k1_0.EFFECT_FLAG_NO_TURN_RESET=0x400000
k1_0.EFFECT_FLAG_EVENT_PLAYER=0x800000
k1_0.EFFECT_FLAG_OWNER_RELATE=0x1000000
k1_0.EFFECT_FLAG_CANNOT_INACTIVATE=0x2000000
k1_0.EFFECT_FLAG_CLIENT_HINT=0x4000000
k1_0.EFFECT_FLAG_CONTINUOUS_TARGET=0x8000000
k1_0.EFFECT_FLAG_LIMIT_ZONE=0x10000000
k1_0.EFFECT_FLAG_COF=0x20000000
k1_0.EFFECT_FLAG_CVAL_CHECK=0x40000000
k1_0.EFFECT_FLAG_IMMEDIATELY_APPLY=0x80000000
k1_0.EFFECT_FLAG2_REPEAT_UPDATE=0x0001
k1_0.EFFECT_FLAG2_COF=0x0002
k1_0.EFFECT_FLAG2_WICKED=0x0004
k1_0.EFFECT_FLAG2_OPTION=0x0008
k1_0.EFFECT_IMMUNE_EFFECT=1
k1_0.EFFECT_DISABLE=2
k1_0.EFFECT_CANNOT_DISABLE=3
k1_0.EFFECT_SET_CONTROL=4
k1_0.EFFECT_CANNOT_CHANGE_CONTROL=5
k1_0.EFFECT_CANNOT_ACTIVATE=6
k1_0.EFFECT_CANNOT_TRIGGER=7
k1_0.EFFECT_DISABLE_EFFECT=8
k1_0.EFFECT_DISABLE_CHAIN=9
k1_0.EFFECT_DISABLE_TRAPMONSTER=10
k1_0.EFFECT_CANNOT_INACTIVATE=12
k1_0.EFFECT_CANNOT_DISEFFECT=13
k1_0.EFFECT_CANNOT_CHANGE_POSITION=14
k1_0.EFFECT_TRAP_ACT_IN_HAND=15
k1_0.EFFECT_TRAP_ACT_IN_SET_TURN=16
k1_0.EFFECT_REMAIN_FIELD=17
k1_0.EFFECT_MONSTER_SSET=18
k1_0.EFFECT_CANNOT_SUMMON=20
k1_0.EFFECT_CANNOT_FLIP_SUMMON=21
k1_0.EFFECT_CANNOT_SPECIAL_SUMMON=22
k1_0.EFFECT_CANNOT_MSET=23
k1_0.EFFECT_CANNOT_SSET=24
k1_0.EFFECT_CANNOT_DRAW=25
k1_0.EFFECT_CANNOT_DISABLE_SUMMON=26
k1_0.EFFECT_CANNOT_DISABLE_SPSUMMON=27
k1_0.EFFECT_SET_SUMMON_COUNT_LIMIT=28
k1_0.EFFECT_EXTRA_SUMMON_COUNT=29
k1_0.EFFECT_SPSUMMON_CONDITION=30
k1_0.EFFECT_REVIVE_LIMIT=31
k1_0.EFFECT_SUMMON_PROC=32
k1_0.EFFECT_LIMIT_SUMMON_PROC=33
k1_0.EFFECT_SPSUMMON_PROC=34
k1_0.EFFECT_EXTRA_SET_COUNT=35
k1_0.EFFECT_SET_PROC=36
k1_0.EFFECT_LIMIT_SET_PROC=37
k1_0.EFFECT_DIVINE_LIGHT=38
k1_0.EFFECT_CANNOT_DISABLE_FLIP_SUMMON=39
k1_0.EFFECT_INDESTRUCTABLE=40
k1_0.EFFECT_INDESTRUCTABLE_EFFECT=41
k1_0.EFFECT_INDESTRUCTABLE_BATTLE=42
k1_0.EFFECT_UNRELEASABLE_SUM=43
k1_0.EFFECT_UNRELEASABLE_NONSUM=44
k1_0.EFFECT_DESTROY_SUBSTITUTE=45
k1_0.EFFECT_CANNOT_RELEASE=46
k1_0.EFFECT_INDESTRUCTABLE_COUNT=47
k1_0.EFFECT_UNRELEASABLE_EFFECT=48
k1_0.EFFECT_DESTROY_REPLACE=50
k1_0.EFFECT_RELEASE_REPLACE=51
k1_0.EFFECT_SEND_REPLACE=52
k1_0.EFFECT_CANNOT_DISCARD_HAND=55
k1_0.EFFECT_CANNOT_DISCARD_DECK=56
k1_0.EFFECT_CANNOT_USE_AS_COST=57
k1_0.EFFECT_CANNOT_PLACE_COUNTER=58
k1_0.EFFECT_CANNOT_TO_GRAVE_AS_COST=59
k1_0.EFFECT_LEAVE_FIELD_REDIRECT=60
k1_0.EFFECT_TO_HAND_REDIRECT=61
k1_0.EFFECT_TO_DECK_REDIRECT=62
k1_0.EFFECT_TO_GRAVE_REDIRECT=63
k1_0.EFFECT_REMOVE_REDIRECT=64
k1_0.EFFECT_CANNOT_TO_HAND=65
k1_0.EFFECT_CANNOT_TO_DECK=66
k1_0.EFFECT_CANNOT_REMOVE=67
k1_0.EFFECT_CANNOT_TO_GRAVE=68
k1_0.EFFECT_CANNOT_TURN_SET=69
k1_0.EFFECT_CANNOT_BE_BATTLE_TARGET=70
k1_0.EFFECT_CANNOT_BE_EFFECT_TARGET=71
k1_0.EFFECT_IGNORE_BATTLE_TARGET=72
k1_0.EFFECT_CANNOT_DIRECT_ATTACK=73
k1_0.EFFECT_DIRECT_ATTACK=74
k1_0.EFFECT_DUAL_STATUS=75
k1_0.EFFECT_EQUIP_LIMIT=76
k1_0.EFFECT_DUAL_SUMMONABLE=77
k1_0.EFFECT_UNION_LIMIT=78
k1_0.EFFECT_REVERSE_DAMAGE=80
k1_0.EFFECT_REVERSE_RECOVER=81
k1_0.EFFECT_CHANGE_DAMAGE=82
k1_0.EFFECT_REFLECT_DAMAGE=83
k1_0.EFFECT_CANNOT_ATTACK=85
k1_0.EFFECT_CANNOT_ATTACK_ANNOUNCE=86
k1_0.EFFECT_CANNOT_CHANGE_POS_E=87
k1_0.EFFECT_ACTIVATE_COST=90
k1_0.EFFECT_SUMMON_COST=91
k1_0.EFFECT_SPSUMMON_COST=92
k1_0.EFFECT_FLIPSUMMON_COST=93
k1_0.EFFECT_MSET_COST=94
k1_0.EFFECT_SSET_COST=95
k1_0.EFFECT_ATTACK_COST=96
k1_0.EFFECT_UPDATE_ATTACK=100
k1_0.EFFECT_SET_ATTACK=101
k1_0.EFFECT_SET_ATTACK_FINAL=102
k1_0.EFFECT_SET_BASE_ATTACK=103
k1_0.EFFECT_UPDATE_DEFENSE=104
k1_0.EFFECT_SET_DEFENSE=105
k1_0.EFFECT_SET_DEFENSE_FINAL=106
k1_0.EFFECT_SET_BASE_DEFENSE=107
k1_0.EFFECT_REVERSE_UPDATE=108
k1_0.EFFECT_SWAP_AD=109
k1_0.EFFECT_SWAP_BASE_AD=110
k1_0.EFFECT_SET_BASE_ATTACK_FINAL=111
k1_0.EFFECT_SET_BASE_DEFENSE_FINAL=112
k1_0.EFFECT_ADD_CODE=113
k1_0.EFFECT_CHANGE_CODE=114
k1_0.EFFECT_ADD_TYPE=115
k1_0.EFFECT_REMOVE_TYPE=116
k1_0.EFFECT_CHANGE_TYPE=117
k1_0.EFFECT_ADD_RACE=120
k1_0.EFFECT_REMOVE_RACE=121
k1_0.EFFECT_CHANGE_RACE=122
k1_0.EFFECT_ADD_ATTRIBUTE=125
k1_0.EFFECT_REMOVE_ATTRIBUTE=126
k1_0.EFFECT_CHANGE_ATTRIBUTE=127
k1_0.EFFECT_UPDATE_LEVEL=130
k1_0.EFFECT_CHANGE_LEVEL=131
k1_0.EFFECT_UPDATE_RANK=132
k1_0.EFFECT_CHANGE_RANK=133
k1_0.EFFECT_UPDATE_LSCALE=134
k1_0.EFFECT_CHANGE_LSCALE=135
k1_0.EFFECT_UPDATE_RSCALE=136
k1_0.EFFECT_CHANGE_RSCALE=137
k1_0.EFFECT_SET_POSITION=140
k1_0.EFFECT_SELF_DESTROY=141
k1_0.EFFECT_SELF_TOGRAVE=142
k1_0.EFFECT_DOUBLE_TRIBUTE=150
k1_0.EFFECT_DECREASE_TRIBUTE=151
k1_0.EFFECT_DECREASE_TRIBUTE_SET=152
k1_0.EFFECT_EXTRA_RELEASE=153
k1_0.EFFECT_TRIBUTE_LIMIT=154
k1_0.EFFECT_EXTRA_RELEASE_SUM=155
k1_0.EFFECT_TRIPLE_TRIBUTE=156
k1_0.EFFECT_ADD_EXTRA_TRIBUTE=157
k1_0.EFFECT_EXTRA_RELEASE_NONSUM=158
k1_0.EFFECT_PUBLIC=160
k1_0.EFFECT_COUNTER_PERMIT=0x10000
k1_0.EFFECT_COUNTER_LIMIT=0x20000
k1_0.EFFECT_RCOUNTER_REPLACE=0x30000
k1_0.EFFECT_LPCOST_CHANGE=170
k1_0.EFFECT_LPCOST_REPLACE=171
k1_0.EFFECT_SKIP_DP=180
k1_0.EFFECT_SKIP_SP=181
k1_0.EFFECT_SKIP_M1=182
k1_0.EFFECT_SKIP_BP=183
k1_0.EFFECT_SKIP_M2=184
k1_0.EFFECT_CANNOT_BP=185
k1_0.EFFECT_CANNOT_M2=186
k1_0.EFFECT_CANNOT_EP=187
k1_0.EFFECT_SKIP_TURN=188
k1_0.EFFECT_DEFENSE_ATTACK=190
k1_0.EFFECT_MUST_ATTACK=191
k1_0.EFFECT_FIRST_ATTACK=192
k1_0.EFFECT_ATTACK_ALL=193
k1_0.EFFECT_EXTRA_ATTACK=194
k1_0.EFFECT_MUST_BE_ATTACKED=195
k1_0.EFFECT_ONLY_BE_ATTACKED=196
k1_0.EFFECT_ATTACK_DISABLED=197
k1_0.EFFECT_NO_BATTLE_DAMAGE=200
k1_0.EFFECT_AVOID_BATTLE_DAMAGE=201
k1_0.EFFECT_REFLECT_BATTLE_DAMAGE=202
k1_0.EFFECT_PIERCE=203
k1_0.EFFECT_BATTLE_DESTROY_REDIRECT=204
k1_0.EFFECT_BATTLE_DAMAGE_TO_EFFECT=205
k1_0.EFFECT_BOTH_BATTLE_DAMAGE=206
k1_0.EFFECT_ALSO_BATTLE_DAMAGE=207
k1_0.EFFECT_CHANGE_BATTLE_DAMAGE=208
k1_0.EFFECT_TOSS_COIN_REPLACE=220
k1_0.EFFECT_TOSS_DICE_REPLACE=221
k1_0.EFFECT_FUSION_MATERIAL=230
k1_0.EFFECT_CHAIN_MATERIAL=231
k1_0.EFFECT_EXTRA_SYNCHRO_MATERIAL=232
k1_0.EFFECT_XYZ_MATERIAL=233
k1_0.EFFECT_FUSION_SUBSTITUTE=234
k1_0.EFFECT_CANNOT_BE_FUSION_MATERIAL=235
k1_0.EFFECT_CANNOT_BE_SYNCHRO_MATERIAL=236
k1_0.EFFECT_SYNCHRO_MATERIAL_CUSTOM=237
k1_0.EFFECT_CANNOT_BE_XYZ_MATERIAL=238
k1_0.EFFECT_CANNOT_BE_LINK_MATERIAL=239
k1_0.EFFECT_SYNCHRO_LEVEL=240
k1_0.EFFECT_RITUAL_LEVEL=241
k1_0.EFFECT_XYZ_LEVEL=242
k1_0.EFFECT_EXTRA_RITUAL_MATERIAL=243
k1_0.EFFECT_NONTUNER=244
k1_0.EFFECT_OVERLAY_REMOVE_REPLACE=245
k1_0.EFFECT_SCRAP_CHIMERA=246
k1_0.EFFECT_TUNE_MAGICIAN_X=247
k1_0.EFFECT_TUNE_MAGICIAN_F=248
k1_0.EFFECT_PRE_MONSTER=250
k1_0.EFFECT_MATERIAL_CHECK=251
k1_0.EFFECT_DISABLE_FIELD=260
k1_0.EFFECT_USE_EXTRA_MZONE=261
k1_0.EFFECT_USE_EXTRA_SZONE=262
k1_0.EFFECT_MAX_MZONE=263
k1_0.EFFECT_MAX_SZONE=264
k1_0.EFFECT_MUST_USE_MZONE=265
k1_0.EFFECT_HAND_LIMIT=270
k1_0.EFFECT_DRAW_COUNT=271
k1_0.EFFECT_SPIRIT_DONOT_RETURN=280
k1_0.EFFECT_SPIRIT_MAYNOT_RETURN=281
k1_0.EFFECT_CHANGE_ENVIRONMENT=290
k1_0.EFFECT_NECRO_VALLEY=291
k1_0.EFFECT_FORBIDDEN=292
k1_0.EFFECT_NECRO_VALLEY_IM=293
k1_0.EFFECT_REVERSE_DECK=294
k1_0.EFFECT_REMOVE_BRAINWASHING=295
k1_0.EFFECT_BP_TWICE=296
k1_0.EFFECT_UNIQUE_CHECK=297
k1_0.EFFECT_MATCH_KILL=300
k1_0.EFFECT_SYNCHRO_CHECK=310
k1_0.EFFECT_QP_ACT_IN_NTPHAND=311
k1_0.EFFECT_MUST_BE_SMATERIAL=312
k1_0.EFFECT_TO_GRAVE_REDIRECT_CB=313
k1_0.EFFECT_CHANGE_INVOLVING_BATTLE_DAMAGE=314
k1_0.EFFECT_CHANGE_RANK_FINAL=315
k1_0.EFFECT_MUST_BE_FMATERIAL=316
k1_0.EFFECT_MUST_BE_XMATERIAL=317
k1_0.EFFECT_MUST_BE_LMATERIAL=318
k1_0.EFFECT_SPSUMMON_PROC_G=320
k1_0.EFFECT_SPSUMMON_COUNT_LIMIT=330
k1_0.EFFECT_LEFT_SPSUMMON_COUNT=331
k1_0.EFFECT_CANNOT_SELECT_BATTLE_TARGET=332
k1_0.EFFECT_CANNOT_SELECT_EFFECT_TARGET=333
k1_0.EFFECT_ADD_SETCODE=334
k1_0.EFFECT_NO_EFFECT_DAMAGE=335
k1_0.EFFECT_UNSUMMONABLE_CARD=336
k1_0.EFFECT_DISABLE_CHAIN_FIELD=337
k1_0.EFFECT_DISCARD_COST_CHANGE=338
k1_0.EFFECT_HAND_SYNCHRO=339
k1_0.EFFECT_ADD_FUSION_CODE=340
k1_0.EFFECT_ADD_FUSION_SETCODE=341
k1_0.EFFECT_RISE_TO_FULL_HEIGHT=342
k1_0.EFFECT_ONLY_ATTACK_MONSTER=343
k1_0.EFFECT_MUST_ATTACK_MONSTER=344
k1_0.EFFECT_PATRICIAN_OF_DARKNESS=345
k1_0.EFFECT_EXTRA_ATTACK_MONSTER=346
k1_0.EFFECT_UNION_STATUS=347
k1_0.EFFECT_OLDUNION_STATUS=348
k1_0.EFFECT_ADD_FUSION_ATTRIBUTE=349
k1_0.EFFECT_REMOVE_FUSION_ATTRIBUTE=350
k1_0.EFFECT_CHANGE_FUSION_ATTRIBUTE=351
k1_0.EFFECT_EXTRA_FUSION_MATERIAL=352
k1_0.EFFECT_TUNER_MATERIAL_LIMIT=353
k1_0.EFFECT_ADD_LINK_CODE=354
k1_0.EFFECT_ADD_LINK_SETCODE=355
k1_0.EFFECT_ADD_LINK_ATTRIBUTE=356
k1_0.EFFECT_ADD_LINK_RACE=357
k1_0.EFFECT_EXTRA_LINK_MATERIAL=358
k1_0.EFFECT_QP_ACT_IN_SET_TURN=359
k1_0.EFFECT_EXTRA_PENDULUM_SUMMON=360
k1_0.EFFECT_MATERIAL_LIMIT=361
k1_0.EFFECT_SET_BATTLE_ATTACK=362
k1_0.EFFECT_SET_BATTLE_DEFENSE=363
k1_0.EFFECT_OVERLAY_RITUAL_MATERIAL=364
k1_0.EFFECT_CHANGE_GRAVE_ATTRIBUTE=365
k1_0.EFFECT_CHANGE_GRAVE_RACE=366
k1_0.EFFECT_ACTIVATION_COUNT_LIMIT=367
k1_0.EFFECT_LIMIT_SPECIAL_SUMMON_POSITION=368
k1_0.EFFECT_TUNER=369
k1_0.EFFECT_KAISER_COLOSSEUM=370
k1_0.EFFECT_REPLACE_DAMAGE=371
k1_0.EFFECT_FLAG_EFFECT=0x20000000
k1_0.EVENT_STARTUP=1000
k1_0.EVENT_FLIP=1001
k1_0.EVENT_FREE_CHAIN=1002
k1_0.EVENT_DESTROY=1010
k1_0.EVENT_REMOVE=1011
k1_0.EVENT_TO_HAND=1012
k1_0.EVENT_TO_DECK=1013
k1_0.EVENT_TO_GRAVE=1014
k1_0.EVENT_LEAVE_FIELD=1015
k1_0.EVENT_CHANGE_POS=1016
k1_0.EVENT_RELEASE=1017
k1_0.EVENT_DISCARD=1018
k1_0.EVENT_LEAVE_FIELD_P=1019
k1_0.EVENT_CHAIN_SOLVING=1020
k1_0.EVENT_CHAIN_ACTIVATING=1021
k1_0.EVENT_CHAIN_SOLVED=1022
k1_0.EVENT_CHAIN_ACTIVATED=1023
k1_0.EVENT_CHAIN_NEGATED=1024
k1_0.EVENT_CHAIN_DISABLED=1025
k1_0.EVENT_CHAIN_END=1026
k1_0.EVENT_CHAINING=1027
k1_0.EVENT_BECOME_TARGET=1028
k1_0.EVENT_DESTROYED=1029
k1_0.EVENT_MOVE=1030
k1_0.EVENT_LEAVE_GRAVE=1031
k1_0.EVENT_LEAVE_DECK=1032
k1_0.EVENT_ADJUST=1040
k1_0.EVENT_BREAK_EFFECT=1050
k1_0.EVENT_SUMMON_SUCCESS=1100
k1_0.EVENT_FLIP_SUMMON_SUCCESS=1101
k1_0.EVENT_SPSUMMON_SUCCESS=1102
k1_0.EVENT_SUMMON=1103
k1_0.EVENT_FLIP_SUMMON=1104
k1_0.EVENT_SPSUMMON=1105
k1_0.EVENT_MSET=1106
k1_0.EVENT_SSET=1107
k1_0.EVENT_BE_MATERIAL=1108
k1_0.EVENT_BE_PRE_MATERIAL=1109
k1_0.EVENT_DRAW=1110
k1_0.EVENT_DAMAGE=1111
k1_0.EVENT_RECOVER=1112
k1_0.EVENT_PREDRAW=1113
k1_0.EVENT_SUMMON_NEGATED=1114
k1_0.EVENT_FLIP_SUMMON_NEGATED=1115
k1_0.EVENT_SPSUMMON_NEGATED=1116
k1_0.EVENT_CONTROL_CHANGED=1120
k1_0.EVENT_EQUIP=1121
k1_0.EVENT_ATTACK_ANNOUNCE=1130
k1_0.EVENT_BE_BATTLE_TARGET=1131
k1_0.EVENT_BATTLE_START=1132
k1_0.EVENT_BATTLE_CONFIRM=1133
k1_0.EVENT_PRE_DAMAGE_CALCULATE=1134
k1_0.EVENT_DAMAGE_CALCULATING=1135
k1_0.EVENT_PRE_BATTLE_DAMAGE=1136
k1_0.EVENT_BATTLE_END=1137
k1_0.EVENT_BATTLED=1138
k1_0.EVENT_BATTLE_DESTROYING=1139
k1_0.EVENT_BATTLE_DESTROYED=1140
k1_0.EVENT_DAMAGE_STEP_END=1141
k1_0.EVENT_ATTACK_DISABLED=1142
k1_0.EVENT_BATTLE_DAMAGE=1143
k1_0.EVENT_TOSS_DICE=1150
k1_0.EVENT_TOSS_COIN=1151
k1_0.EVENT_TOSS_COIN_NEGATE=1152
k1_0.EVENT_TOSS_DICE_NEGATE=1153
k1_0.EVENT_LEVEL_UP=1200
k1_0.EVENT_PAY_LPCOST=1201
k1_0.EVENT_DETACH_MATERIAL=1202
k1_0.EVENT_RETURN_TO_GRAVE=1203
k1_0.EVENT_TURN_END=1210
k1_0.EVENT_PHASE=0x1000
k1_0.EVENT_PHASE_START=0x2000
k1_0.EVENT_ADD_COUNTER=0x10000
k1_0.EVENT_REMOVE_COUNTER=0x20000
k1_0.EVENT_CUSTOM=0x10000000
k1_0.CATEGORY_DESTROY=0x1
k1_0.CATEGORY_RELEASE=0x2
k1_0.CATEGORY_REMOVE=0x4
k1_0.CATEGORY_TOHAND=0x8
k1_0.CATEGORY_TODECK=0x10
k1_0.CATEGORY_TOGRAVE=0x20
k1_0.CATEGORY_DECKDES=0x40
k1_0.CATEGORY_HANDES=0x80
k1_0.CATEGORY_SUMMON=0x100
k1_0.CATEGORY_SPECIAL_SUMMON=0x200
k1_0.CATEGORY_TOKEN=0x400
k1_0.CATEGORY_GRAVE_ACTION=0x800
k1_0.CATEGORY_POSITION=0x1000
k1_0.CATEGORY_CONTROL=0x2000
k1_0.CATEGORY_DISABLE=0x4000
k1_0.CATEGORY_DISABLE_SUMMON=0x8000
k1_0.CATEGORY_DRAW=0x10000
k1_0.CATEGORY_SEARCH=0x20000
k1_0.CATEGORY_EQUIP=0x40000
k1_0.CATEGORY_DAMAGE=0x80000
k1_0.CATEGORY_RECOVER=0x100000
k1_0.CATEGORY_ATKCHANGE=0x200000
k1_0.CATEGORY_DEFCHANGE=0x400000
k1_0.CATEGORY_COUNTER=0x800000
k1_0.CATEGORY_COIN=0x1000000
k1_0.CATEGORY_DICE=0x2000000
k1_0.CATEGORY_LEAVE_GRAVE=0x4000000
k1_0.CATEGORY_GRAVE_SPSUMMON=0x8000000
k1_0.CATEGORY_NEGATE=0x10000000
k1_0.CATEGORY_ANNOUNCE=0x20000000
k1_0.CATEGORY_FUSION_SUMMON=0x40000000
k1_0.CATEGORY_TOEXTRA=0x80000000
k1_0.HINT_EVENT=1
k1_0.HINT_MESSAGE=2
k1_0.HINT_SELECTMSG=3
k1_0.HINT_OPSELECTED=4
k1_0.HINT_EFFECT=5
k1_0.HINT_RACE=6
k1_0.HINT_ATTRIB=7
k1_0.HINT_CODE=8
k1_0.HINT_NUMBER=9
k1_0.HINT_CARD=10
k1_0.HINT_ZONE=11
k1_0.CHINT_TURN=1
k1_0.CHINT_CARD=2
k1_0.CHINT_RACE=3
k1_0.CHINT_ATTRIBUTE=4
k1_0.CHINT_NUMBER=5
k1_0.CHINT_DESC=6
k1_0.OPCODE_ADD=0x40000000
k1_0.OPCODE_SUB=0x40000001
k1_0.OPCODE_MUL=0x40000002
k1_0.OPCODE_DIV=0x40000003
k1_0.OPCODE_AND=0x40000004
k1_0.OPCODE_OR=0x40000005
k1_0.OPCODE_NEG=0x40000006
k1_0.OPCODE_NOT=0x40000007
k1_0.OPCODE_ISCODE=0x40000100
k1_0.OPCODE_ISSETCARD=0x40000101
k1_0.OPCODE_ISTYPE=0x40000102
k1_0.OPCODE_ISRACE=0x40000103
k1_0.OPCODE_ISATTRIBUTE=0x40000104
k1_0.DOUBLE_DAMAGE=0x80000000
k1_0.HALF_DAMAGE=0x80000001
k1_0.HINTMSG_RELEASE=500
k1_0.HINTMSG_DISCARD=501
k1_0.HINTMSG_DESTROY=502
k1_0.HINTMSG_REMOVE=503
k1_0.HINTMSG_TOGRAVE=504
k1_0.HINTMSG_RTOHAND=505
k1_0.HINTMSG_ATOHAND=506
k1_0.HINTMSG_TODECK=507
k1_0.HINTMSG_SUMMON=508
k1_0.HINTMSG_SPSUMMON=509
k1_0.HINTMSG_SET=510
k1_0.HINTMSG_FMATERIAL=511
k1_0.HINTMSG_SMATERIAL=512
k1_0.HINTMSG_XMATERIAL=513
k1_0.HINTMSG_FACEUP=514
k1_0.HINTMSG_FACEDOWN=515
k1_0.HINTMSG_ATTACK=516
k1_0.HINTMSG_DEFENSE=517
k1_0.HINTMSG_EQUIP=518
k1_0.HINTMSG_REMOVEXYZ=519
k1_0.HINTMSG_CONTROL=520
k1_0.HINTMSG_DESREPLACE=521
k1_0.HINTMSG_FACEUPATTACK=522
k1_0.HINTMSG_FACEUPDEFENSE=523
k1_0.HINTMSG_FACEDOWNATTACK=524
k1_0.HINTMSG_FACEDOWNDEFENSE=525
k1_0.HINTMSG_CONFIRM=526
k1_0.HINTMSG_TOFIELD=527
k1_0.HINTMSG_POSCHANGE=528
k1_0.HINTMSG_SELF=529
k1_0.HINTMSG_OPPO=530
k1_0.HINTMSG_TRIBUTE=531
k1_0.HINTMSG_DEATTACHFROM=532
k1_0.HINTMSG_LMATERIAL=533
k1_0.HINTMSG_ATTACKTARGET=549
k1_0.HINTMSG_EFFECT=550
k1_0.HINTMSG_TARGET=551
k1_0.HINTMSG_COIN=552
k1_0.HINTMSG_DICE=553
k1_0.HINTMSG_CARDTYPE=554
k1_0.HINTMSG_OPTION=555
k1_0.HINTMSG_RESOLVEEFFECT=556
k1_0.HINTMSG_SELECT=560
k1_0.HINTMSG_POSITION=561
k1_0.HINTMSG_ATTRIBUTE=562
k1_0.HINTMSG_RACE=563
k1_0.HINTMSG_CODE=564
k1_0.HINGMSG_NUMBER=565
k1_0.HINGMSG_LVRANK=567
k1_0.HINTMSG_RESOLVECARD=568
k1_0.HINTMSG_ZONE=569
k1_0.HINTMSG_DISABLEZONE=570
k1_0.HINTMSG_TOZONE=571
k1_0.HINTMSG_COUNTER=572
k1_0.HINTMSG_DISABLE=573
k1_0.HINTMSG_OPERATECARD=574
k1_0.SELECT_HEADS=60
k1_0.SELECT_TAILS=61
k1_0.TIMING_DRAW_PHASE=0x1
k1_0.TIMING_STANDBY_PHASE=0x2
k1_0.TIMING_MAIN_END=0x4
k1_0.TIMING_BATTLE_START=0x8
k1_0.TIMING_BATTLE_END=0x10
k1_0.TIMING_END_PHASE=0x20
k1_0.TIMING_SUMMON=0x40
k1_0.TIMING_SPSUMMON=0x80
k1_0.TIMING_FLIPSUMMON=0x100
k1_0.TIMING_MSET=0x200
k1_0.TIMING_SSET=0x400
k1_0.TIMING_POS_CHANGE=0x800
k1_0.TIMING_ATTACK=0x1000
k1_0.TIMING_DAMAGE_STEP=0x2000
k1_0.TIMING_DAMAGE_CAL=0x4000
k1_0.TIMING_CHAIN_END=0x8000
k1_0.TIMING_DRAW=0x10000
k1_0.TIMING_DAMAGE=0x20000
k1_0.TIMING_RECOVER=0x40000
k1_0.TIMING_DESTROY=0x80000
k1_0.TIMING_REMOVE=0x100000
k1_0.TIMING_TOHAND=0x200000
k1_0.TIMING_TODECK=0x400000
k1_0.TIMING_TOGRAVE=0x800000
k1_0.TIMING_BATTLE_PHASE=0x1000000
k1_0.TIMING_EQUIP=0x2000000
k1_0.TIMING_BATTLE_STEP_END=0x4000000
k1_0.TIMING_BATTLED=0x8000000
k1_0.TIMINGS_CHECK_MONSTER=0x1c0
k1_0.GLOBALFLAG_DECK_REVERSE_CHECK=0x1
k1_0.GLOBALFLAG_BRAINWASHING_CHECK=0x2
k1_0.GLOBALFLAG_SCRAP_CHIMERA=0x4
k1_0.GLOBALFLAG_DELAYED_QUICKEFFECT=0x8
k1_0.GLOBALFLAG_DETACH_EVENT=0x10
k1_0.GLOBALFLAG_MUST_BE_SMATERIAL=0x20
k1_0.GLOBALFLAG_SPSUMMON_COUNT=0x40
k1_0.GLOBALFLAG_XMAT_COUNT_LIMIT=0x80
k1_0.GLOBALFLAG_SELF_TOGRAVE=0x100
k1_0.GLOBALFLAG_SPSUMMON_ONCE=0x200
k1_0.GLOBALFLAG_TUNE_MAGICIAN=0x400
k1_0.EFFECT_COUNT_CODE_OATH=0x10000000
k1_0.EFFECT_COUNT_CODE_DUEL=0x20000000
k1_0.EFFECT_COUNT_CODE_CHAIN=0x40000000
k1_0.EFFECT_COUNT_CODE_SINGLE=0x1
k1_0.DUEL_TEST_MODE=0x01
k1_0.DUEL_ATTACK_FIRST_TURN=0x02
k1_0.DUEL_OLD_REPLAY=0x04
k1_0.DUEL_OBSOLETE_RULING=0x08
k1_0.DUEL_PSEUDO_SHUFFLE=0x10
k1_0.DUEL_TAG_MODE=0x20
k1_0.DUEL_SIMPLE_AI=0x40
k1_0.DUEL_RETURN_DECK_TOP=0x80
k1_0.ACTIVITY_SUMMON=1
k1_0.ACTIVITY_NORMALSUMMON=2
k1_0.ACTIVITY_SPSUMMON=3
k1_0.ACTIVITY_FLIPSUMMON=4
k1_0.ACTIVITY_ATTACK=5
k1_0.ACTIVITY_BATTLE_PHASE=6
k1_0.ACTIVITY_CHAIN=7
k1_0.CARD_MARINE_DOLPHIN=78734254
k1_0.CARD_TWINKLE_MOSS=13857930
k1_0.CARD_QUESTION=38723936
return k1_0