<mamecheat version="1">

  <cheat desc="Infinite Credits">
    <script state="run">
      <action>maincpu.pb@F07D7=99</action>
    </script>
  </cheat>

  <cheat desc="Select Team PLAYER"> <comment>The LEACHES Team can cause graphical glitches</comment>
    <parameter>
      <item value="0x00">CHANTA</item>
      <item value="0x01">DORA GUN DAN</item>
      <item value="0x02">EASOU SHUNTU</item>
      <item value="0x03">FUPAI HOUIRUS</item>
      <item value="0x04">GIHAI ANCOUS</item>
      <item value="0x05">HANCHAN TOITSU Q DAN</item>
      <item value="0x06">LEACHES</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@F1049=param</action>
    </script>
  </cheat>

  <cheat desc="Select Team CPU">
    <parameter>
      <item value="0x00">CHANTA</item>
      <item value="0x01">DORA GUN DAN</item>
      <item value="0x02">EASOU SHUNTU</item>
      <item value="0x03">FUPAI HOUIRUS</item>
      <item value="0x04">GIHAI ANCOUS</item>
      <item value="0x05">HANCHAN TOITSU Q DAN</item>
      <item value="0x06">LEACHES</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@F104D=param</action>
    </script>
  </cheat>

  <cheat desc="Select Starting Stage">
    <parameter min="1" max="6" step="1"/>
    <script state="run">
      <action condition="(maincpu.pb@F07D7==00)">maincpu.pb@F07D7=(param-1)</action>
    </script>
  </cheat>

  <cheat desc="Always Winning Hand"> <comment>Be sure to enable this cheat before the Mahjong game starts</comment>
    <script state="run">
      <action>maincpu.pd@F0692=00300030</action>
      <action>maincpu.pd@F0696=00310031</action>
      <action>maincpu.pd@F069A=00310034</action>
      <action>maincpu.pd@F069E=00340034</action>
      <action>maincpu.pd@F06A2=00350035</action>
      <action>maincpu.pd@F06A6=00350036</action>
      <action>maincpu.pd@F06AA=00360036</action>
      <action>maincpu.pb@F336B=36</action>
    </script>
  </cheat>

  <cheat desc="Watch ALL 14 tiles - Player">
    <script state="run">
      <output format="%02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
        <argument count="14">maincpu.pb@(F0693 + 0x02*argindex)</argument>
      </output>
    </script>
  </cheat>

  <cheat desc="Watch ALL 14 tiles - C.P.U.">
    <script state="run">
      <output format="%02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X">
        <argument count="14">maincpu.pb@(F06B3 + 0x02*argindex)</argument>
      </output>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="Here is the look-up list for the above watches."/>
  <cheat desc="value     common name    chinese"/>
  <cheat desc="01h-09h   1-9 'chars'    1-9 'wan'"/>
  <cheat desc="11h-19h   1-9 'dots'     1-9 'tung'"/>
  <cheat desc="21h-29h   1-9 'bamboo'   1-9 'tiao'"/>
  <cheat desc="31h-34h   East,South,West+North 'wind'"/>
  <cheat desc="35h-37h   White,Green+Red 'dragon'"/>
  <cheat desc="FFh       - no tile -"/>

</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
