190 lines
7.7 KiB
C#
190 lines
7.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000134 RID: 308
|
|
[Token(Token = "0x2000134")]
|
|
public class PlayerStatsData
|
|
{
|
|
// Token: 0x06000F48 RID: 3912 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F48")]
|
|
[Address(RVA = "0xCABAA0", Offset = "0xCAA2A0", VA = "0x180CABAA0")]
|
|
public float GetPhysicalPower(float power)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000F49 RID: 3913 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F49")]
|
|
[Address(RVA = "0xCABA80", Offset = "0xCAA280", VA = "0x180CABA80")]
|
|
public float GetMagicPower(float power)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000F4A RID: 3914 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F4A")]
|
|
[Address(RVA = "0xCABA60", Offset = "0xCAA260", VA = "0x180CABA60")]
|
|
public float GetFirePhysicalPower()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000F4B RID: 3915 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F4B")]
|
|
[Address(RVA = "0xCABAE0", Offset = "0xCAA2E0", VA = "0x180CABAE0")]
|
|
public float GetThunderModeStageTimeScale()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000F4C RID: 3916 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F4C")]
|
|
[Address(RVA = "0xCABAC0", Offset = "0xCAA2C0", VA = "0x180CABAC0")]
|
|
public float GetThunderModePlayerTimeScale()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000F4D RID: 3917 RVA: 0x0002473C File Offset: 0x0002293C
|
|
[Token(Token = "0x6000F4D")]
|
|
[Address(RVA = "0xCABB30", Offset = "0xCAA330", VA = "0x180CABB30")]
|
|
public void IncreaseCursePercent(float delta)
|
|
{
|
|
float num = this.cursePercent;
|
|
int num2 = 0;
|
|
float num3 = Mathf.Clamp(num, (float)num2, 0.6f);
|
|
this.cursePercent = num3;
|
|
}
|
|
|
|
// Token: 0x06000F4E RID: 3918 RVA: 0x00024768 File Offset: 0x00022968
|
|
[Token(Token = "0x6000F4E")]
|
|
[Address(RVA = "0xCABA10", Offset = "0xCAA210", VA = "0x180CABA10")]
|
|
public int ApplyCursePunish()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000F4E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 PlayerStatsData::ApplyCursePunish()
|
|
|
|
---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
|
|
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
|
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 112
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06000F4F RID: 3919 RVA: 0x000247B0 File Offset: 0x000229B0
|
|
[Token(Token = "0x6000F4F")]
|
|
[Address(RVA = "0xCABB60", Offset = "0xCAA360", VA = "0x180CABB60")]
|
|
public void OnBeatingGame(BeatingGameData data)
|
|
{
|
|
float healthPoint = data.healthPoint;
|
|
this.currentHealthyPoint = healthPoint;
|
|
float manaPoint = data.manaPoint;
|
|
this.currentManaPoint = manaPoint;
|
|
int magicIndex = data.magicIndex;
|
|
this.currentMagicIndex = magicIndex;
|
|
this.cursePercent = 0f;
|
|
}
|
|
|
|
// Token: 0x06000F50 RID: 3920 RVA: 0x000247F8 File Offset: 0x000229F8
|
|
[Token(Token = "0x6000F50")]
|
|
[Address(RVA = "0xCABB90", Offset = "0xCAA390", VA = "0x180CABB90")]
|
|
public PlayerStatsData()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001A51 RID: 6737
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001A51")]
|
|
public float currentMoney;
|
|
|
|
// Token: 0x04001A52 RID: 6738
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x4001A52")]
|
|
public float cursePercent;
|
|
|
|
// Token: 0x04001A53 RID: 6739
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001A53")]
|
|
public float currentHealthyPoint;
|
|
|
|
// Token: 0x04001A54 RID: 6740
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001A54")]
|
|
public float currentManaPoint;
|
|
|
|
// Token: 0x04001A55 RID: 6741
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001A55")]
|
|
public int currentMagicIndex;
|
|
|
|
// Token: 0x04001A56 RID: 6742
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4001A56")]
|
|
public int healthyLevel = (int)((ulong)1L);
|
|
|
|
// Token: 0x04001A57 RID: 6743
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001A57")]
|
|
public int manaLevel = (int)((ulong)1L);
|
|
|
|
// Token: 0x04001A58 RID: 6744
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x4001A58")]
|
|
public int staminaLevel = (int)((ulong)1L);
|
|
|
|
// Token: 0x04001A59 RID: 6745
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4001A59")]
|
|
public int strengthLevel = (int)((ulong)1L);
|
|
|
|
// Token: 0x04001A5A RID: 6746
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x4001A5A")]
|
|
public int intelligenceLevel = (int)((ulong)1L);
|
|
|
|
// Token: 0x04001A5B RID: 6747
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4001A5B")]
|
|
public int dexterityLevel = (int)((ulong)1L);
|
|
|
|
// Token: 0x04001A5C RID: 6748
|
|
[FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x4001A5C")]
|
|
public int secretMagicLevel = (int)((ulong)1L);
|
|
|
|
// Token: 0x04001A5D RID: 6749
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4001A5D")]
|
|
public int iceMagicLevel;
|
|
|
|
// Token: 0x04001A5E RID: 6750
|
|
[FieldOffset(Offset = "0x44")]
|
|
[Token(Token = "0x4001A5E")]
|
|
public int fireMagicLevel;
|
|
|
|
// Token: 0x04001A5F RID: 6751
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4001A5F")]
|
|
public int thunderMagicLevel;
|
|
|
|
// Token: 0x04001A60 RID: 6752
|
|
[FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x4001A60")]
|
|
public int manaAbsorbLevel;
|
|
|
|
// Token: 0x04001A61 RID: 6753
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4001A61")]
|
|
public int windMagicLevel;
|
|
}
|