using System; using Cpp2IlInjected; using UnityEngine; namespace RecRoom.Consumable { // Token: 0x02002322 RID: 8994 [Token(Token = "0x2002322")] public abstract class ConsumableItem : MonoBehaviour, IComparable { // Token: 0x170024C2 RID: 9410 // (get) Token: 0x0600E676 RID: 58998 RVA: 0x0035502C File Offset: 0x0035322C [Token(Token = "0x170024C2")] public string KENGPMDDCML { [Token(Token = "0x600E676")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")] get { return this.friendlyName; } } // Token: 0x170024C3 RID: 9411 // (get) Token: 0x0600E677 RID: 58999 RVA: 0x00355040 File Offset: 0x00353240 [Token(Token = "0x170024C3")] public ConsumableManager.KIDKMAOBOIG GMMAAAGFAKO { [Token(Token = "0x600E677")] [Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")] get { return this.category; } } // Token: 0x170024C4 RID: 9412 // (get) Token: 0x0600E678 RID: 59000 RVA: 0x00355054 File Offset: 0x00353254 [Token(Token = "0x170024C4")] public string HAKADJAKPDO { [Token(Token = "0x600E678")] [Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")] get { return this.guidString; } } // Token: 0x170024C5 RID: 9413 // (get) Token: 0x0600E679 RID: 59001 RVA: 0x00355068 File Offset: 0x00353268 [Token(Token = "0x170024C5")] public int KFAAPLBOPPF { [Token(Token = "0x600E679")] [Address(RVA = "0x4730E0", Offset = "0x471EE0", VA = "0x1804730E0")] get { return this.limitCount; } } // Token: 0x170024C6 RID: 9414 // (get) Token: 0x0600E67A RID: 59002 RVA: 0x0035507C File Offset: 0x0035327C [Token(Token = "0x170024C6")] public ConsumableManager.FFCJLEMFFAJ NLFGJKJJFFO { [Token(Token = "0x600E67A")] [Address(RVA = "0x436510", Offset = "0x435310", VA = "0x180436510")] get { return this.limitType; } } // Token: 0x170024C7 RID: 9415 // (get) Token: 0x0600E67B RID: 59003 RVA: 0x00355090 File Offset: 0x00353290 [Token(Token = "0x170024C7")] public bool IPAFOLPNGFD { [Token(Token = "0x600E67B")] [Address(RVA = "0x43A970", Offset = "0x439770", VA = "0x18043A970")] get { return this.autoActivateNextItem; } } // Token: 0x170024C8 RID: 9416 // (get) Token: 0x0600E67C RID: 59004 RVA: 0x003550A4 File Offset: 0x003532A4 [Token(Token = "0x170024C8")] public Transform MLDAPHCKOKF { [Token(Token = "0x600E67C")] [Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")] get { return this.visualRoot; } } // Token: 0x170024C9 RID: 9417 // (get) Token: 0x0600E67D RID: 59005 RVA: 0x003550B8 File Offset: 0x003532B8 [Token(Token = "0x170024C9")] public ConsumableTool MIJHIIPIIGO { [Token(Token = "0x600E67D")] [Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")] get { return this.consumableTool; } } // Token: 0x170024CA RID: 9418 // (get) Token: 0x0600E67E RID: 59006 RVA: 0x003550CC File Offset: 0x003532CC [Token(Token = "0x170024CA")] public GameObject IMNJKLMBGEO { [Token(Token = "0x600E67E")] [Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290")] get { return this.effectPrefab; } } // Token: 0x0600E67F RID: 59007 RVA: 0x003550E0 File Offset: 0x003532E0 [Token(Token = "0x600E67F")] [Address(RVA = "0x11FFF40", Offset = "0x11FED40", VA = "0x1811FFF40", Slot = "4")] public int CompareTo(ConsumableItem HPKICPNGMDJ) { int num2; do { int num = 0; if (HPKICPNGMDJ == num) { return 0; } ConsumableManager.KIDKMAOBOIG kidkmaoboig = this.category; } while (num2 != 0); string text = this.friendlyName; string text2 = HPKICPNGMDJ.friendlyName; return text.CompareTo(text2); } // Token: 0x0600E680 RID: 59008 RVA: 0x00355124 File Offset: 0x00353324 [Token(Token = "0x600E680")] [Address(RVA = "0x11FFFF0", Offset = "0x11FEDF0", VA = "0x1811FFFF0", Slot = "5")] public virtual ConsumableInfo ToConsumableInfo() { /* An exception occurred when decompiling this method (0600E680) ICSharpCode.Decompiler.DecompilerException: Error decompiling RecRoom.Consumable.ConsumableInfo RecRoom.Consumable.ConsumableItem::ToConsumableInfo() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:GenericConsumableInfo(var_1_05, newobj:GenericConsumableInfo(GenericConsumableInfo::.ctor)) } 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 1660 */; } // Token: 0x0600E681 RID: 59009 RVA: 0x00355138 File Offset: 0x00353338 [Token(Token = "0x600E681")] [Address(RVA = "0x169A950", Offset = "0x1699750", VA = "0x18169A950")] protected void DKBOALDPDAN(ref T DBDDKLHPNNA) where T : ConsumableInfo { string name = base.gameObject.name; ConsumableTool consumableTool = this.consumableTool; if (consumableTool != 0) { string name2 = consumableTool.name; } } // Token: 0x0600E682 RID: 59010 RVA: 0x0035516C File Offset: 0x0035336C [Token(Token = "0x600E682")] [Address(RVA = "0x1200070", Offset = "0x11FEE70", VA = "0x181200070")] protected ConsumableItem() { Guid guid = Guid.NewGuid(); string text; this.guidString = text; this.limitCount = (int)((ulong)1L); base..ctor(); } // Token: 0x0400984F RID: 38991 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400984F")] [SerializeField] protected string friendlyName; // Token: 0x04009850 RID: 38992 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4009850")] [SerializeField] protected ConsumableManager.KIDKMAOBOIG category; // Token: 0x04009851 RID: 38993 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4009851")] [SerializeField] [Tooltip("This guid is auto generated at the time of the prefab creation and should never change if you do not want to break an existing players consumables.")] protected string guidString; // Token: 0x04009852 RID: 38994 [FieldOffset(Offset = "0x30")] [Token(Token = "0x4009852")] [SerializeField] [Header("Usage limits.")] protected int limitCount; // Token: 0x04009853 RID: 38995 [FieldOffset(Offset = "0x34")] [Token(Token = "0x4009853")] [SerializeField] protected ConsumableManager.FFCJLEMFFAJ limitType; // Token: 0x04009854 RID: 38996 [FieldOffset(Offset = "0x38")] [Token(Token = "0x4009854")] [SerializeField] protected bool autoActivateNextItem; // Token: 0x04009855 RID: 38997 [FieldOffset(Offset = "0x40")] [Token(Token = "0x4009855")] [SerializeField] [Header("Visual for the boxes.")] protected Transform visualRoot; // Token: 0x04009856 RID: 38998 [FieldOffset(Offset = "0x48")] [Token(Token = "0x4009856")] [SerializeField] [Tooltip("If there is a custom consumable tool to activate the effect mapping, assign it here. This tool will replace the default tool and will be spawned whenever necessary.")] protected ConsumableTool consumableTool; // Token: 0x04009857 RID: 38999 [FieldOffset(Offset = "0x50")] [Token(Token = "0x4009857")] [SerializeField] [Tooltip("This prefab will be spawned under the ConsumableEffect to add additional functionality.")] protected GameObject effectPrefab; } }