Files
2026-04-10 22:50:51 +02:00

88 lines
4.4 KiB
C#

using System;
using Cpp2IlInjected;
using RecRoom.Storefronts;
namespace RecRoom.Consumable
{
// Token: 0x0200231D RID: 8989
[Token(Token = "0x200231D")]
[Serializable]
public class CouponConsumableInfo : ConsumableInfo
{
// Token: 0x0600E658 RID: 58968 RVA: 0x003548C4 File Offset: 0x00352AC4
[Token(Token = "0x600E658")]
[Address(RVA = "0x1205F50", Offset = "0x1204D50", VA = "0x181205F50")]
public string LNNFKDMOFDP()
{
HHOLBEMEIPH discountType = this.DiscountType;
if (discountType == HHOLBEMEIPH.PERCENTAGE)
{
int couponValue = this.CouponValue;
return string.Format("{0}%", couponValue);
}
if (discountType == HHOLBEMEIPH.EXACT_AMOUNT)
{
string tokenStringFormatted = Storefront.GetTokenStringFormatted((long)this.CouponValue);
return string.Format("-{0}", tokenStringFormatted);
}
return string.Empty;
}
// Token: 0x0600E659 RID: 58969 RVA: 0x00354910 File Offset: 0x00352B10
[Token(Token = "0x600E659")]
[Address(RVA = "0x1205EA0", Offset = "0x1204CA0", VA = "0x181205EA0")]
public long JNLBKGLHNAF(long DENMLCGOKNK)
{
/*
An exception occurred when decompiling this method (0600E659)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 RecRoom.Consumable.CouponConsumableInfo::JNLBKGLHNAF(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1E:
stloc:int32(var_3_1F, ldc.i4:int32(0))
stloc:int32(var_4_21, ldc.i4:int32(0))
stloc:int32(var_5_24, ldc.i4:int32(0))
stloc:float32(var_6_30, call:float32(Mathf::Clamp, ldloc:int32[exp:float32](var_4_21), ldloc:int32[exp:float32](var_5_24), ldloc:int32[exp:float32](var_3_1F)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
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 123
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 1663
*/;
}
// Token: 0x0600E65A RID: 58970 RVA: 0x00354950 File Offset: 0x00352B50
[Token(Token = "0x600E65A")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public CouponConsumableInfo()
{
}
// Token: 0x04009840 RID: 38976
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4009840")]
public HHOLBEMEIPH DiscountType;
// Token: 0x04009841 RID: 38977
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x4009841")]
public DGOHCPBKOHD StorefrontType;
// Token: 0x04009842 RID: 38978
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4009842")]
public ACDKILABNNC CurrencyType;
// Token: 0x04009843 RID: 38979
[FieldOffset(Offset = "0x4C")]
[Token(Token = "0x4009843")]
public int CouponValue;
}
}