<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="52">
  <CheatEntries>
    <CheatEntry>
      <ID>22</ID>
      <Description>"Jotun: Valhalla Edition"</Description>
      <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]

{$lua}
  LaunchMonoDataCollector()
{$asm}

define(pUntouch,FlashWhenDamaged:StartFlash+3e)

alloc(newmem,$1000,pUntouch)
alloc(tUntouch,1)

registersymbol(pUntouch)
registersymbol(tUntouch)

label(codeOne)
label(codeTwo)
label(return)

tUntouch:
  db 0

newmem:
  cmp byte ptr [tUntouch],0
  je codeOne
  mov dword ptr [rax+60],1
  jmp codeTwo

codeOne:
  mov dword ptr [rax+60],0

codeTwo:
  movsxd  rax,dword ptr [rax+60]
  test eax,eax
  jmp return

pUntouch:
  jmp newmem
  nop

return:

[DISABLE]

pUntouch:
  db 48 63 40 60 85 C0

unregistersymbol(pUntouch)
unregistersymbol(tUntouch)

dealloc(newmem)
dealloc(tUntouch)
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>26</ID>
          <Description>"Infinite Health"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]

define(pHP,PlaySoundWhenDamaged:PlaySound+1d)
alloc(newmem,$1000,pHP)

label(code)
label(return)

newmem:

code:
  movss xmm0,[rax+50]
  movss [rax+58],xmm0
  jmp return

pHP:
  jmp newmem

return:
registersymbol(pHP)

[DISABLE]

pHP:
  db F3 0F 10 40 58

unregistersymbol(pHP)
dealloc(newmem)
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>21</ID>
          <Description>"Infinite God Powers"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]

BaseGodPower:ActivatePower+13e:
  db 90 90

[DISABLE]

BaseGodPower:ActivatePower+13e:
  db FF C8
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>11</ID>
          <Description>"Quick Kills"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]

define(eHP,DeathBehaviour:CanExecute+18)
//define(bHP,PhaseManager:&lt;BossHealthChanged&gt;b__8_0+26)

alloc(newmemOne,$1000,eHP)
//alloc(newmemTwo,$1000,bHP)

registersymbol(eHP)
//registersymbol(bHP)

label(codeOne)
//label(codeTwo)
label(returnOne)
//label(returnTwo)
label(eQK)

newmemOne:
  movss xmm0,[rax+58]
  comiss xmm0,[eQK]
  jbe codeOne
  movss xmm0,[eQK]
  movss [rax+58],xmm0

codeOne:
  movss xmm0,[rax+58]
  jmp returnOne

eQK:
  dd (float)1

eHP:
  jmp newmemOne

returnOne:

//newmemTwo:

//codeTwo:
//  xorps xmm1,xmm1
//  movss [rax+58],xmm1
//  jmp returnTwo

//bHP:
//  jmp newmemTwo

//returnTwo:

[DISABLE]

eHP:
  db F3 0F 10 40 58

//bHP:
//  db F3 0F 10 48 58

unregistersymbol(eHP)
//unregistersymbol(bHP)

dealloc(newmemOne)
//dealloc(newmemTwo)
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>23</ID>
              <Description>"Bosses are disabled in the script because it glitched on the first boss. need to fix for bosses."</Description>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>18</ID>
          <Description>"Untouchable"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]

tUntouch:
  db 1

[DISABLE]

tUntouch:
  db 0
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>27</ID>
              <Description>"sets isInvulnerable to 1 not sure if leaving it set to 0 will miss things up or not."</Description>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
  <Comments>Created by: Outrun
https://opencheattables.com</Comments>
</CheatTable>
