oh dear
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Activities.Quest.Goblin2;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Consumable
|
||||
{
|
||||
// Token: 0x02002348 RID: 9032
|
||||
[Token(Token = "0x2002348")]
|
||||
public class PotionConsumableTool : ConsumableTool
|
||||
{
|
||||
// Token: 0x0600E74B RID: 59211 RVA: 0x003583D4 File Offset: 0x003565D4
|
||||
[Token(Token = "0x600E74B")]
|
||||
[Address(RVA = "0x139CF20", Offset = "0x139BD20", VA = "0x18139CF20", Slot = "13")]
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
Tool tool = this.tool;
|
||||
MFBGLIHGCGO<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
||||
Action<Tool> action = new Action(this.PDEEFICICFG);
|
||||
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postReleaseEvent, action);
|
||||
tool.PostReleaseEvent = mfbglihgcgo;
|
||||
Potion potion = this.potion;
|
||||
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
||||
potion.AOFFBPHMBBP += jiclaajlnce;
|
||||
}
|
||||
|
||||
// Token: 0x0600E74C RID: 59212 RVA: 0x00358438 File Offset: 0x00356638
|
||||
[Token(Token = "0x600E74C")]
|
||||
[Address(RVA = "0x139D0D0", Offset = "0x139BED0", VA = "0x18139D0D0", Slot = "14")]
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
Tool tool = this.tool;
|
||||
MFBGLIHGCGO<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
||||
Action<Tool> action = new Action(this.PDEEFICICFG);
|
||||
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(postReleaseEvent, action);
|
||||
tool.PostReleaseEvent = mfbglihgcgo;
|
||||
Potion potion = this.potion;
|
||||
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
||||
potion.AOFFBPHMBBP -= jiclaajlnce;
|
||||
base.OnDestroy();
|
||||
}
|
||||
|
||||
// Token: 0x0600E74D RID: 59213 RVA: 0x0035849C File Offset: 0x0035669C
|
||||
[Token(Token = "0x600E74D")]
|
||||
[Address(RVA = "0x139D1D0", Offset = "0x139BFD0", VA = "0x18139D1D0")]
|
||||
private void PDEEFICICFG(Tool NBHJPDBHDHB)
|
||||
{
|
||||
if (!this.OEJHFGNAGFB && !this.tool.NDKHDFJHGPP)
|
||||
{
|
||||
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = this.tool.<FLFJCIPBAPA>k__BackingField;
|
||||
int num = 0;
|
||||
if (<FLFJCIPBAPA>k__BackingField != num && this.tool.<FLFJCIPBAPA>k__BackingField.<EPECNEBCMLG>k__BackingField == PlayerSpawnedEquipment.IILDIBHEIDO.GiftBox)
|
||||
{
|
||||
base.LHBLHBEIFKA();
|
||||
KKPBCOOONNK.HMLHHNMGNAA(base.gameObject);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E74E RID: 59214 RVA: 0x00358504 File Offset: 0x00356704
|
||||
[Token(Token = "0x600E74E")]
|
||||
[Address(RVA = "0x139D020", Offset = "0x139BE20", VA = "0x18139D020")]
|
||||
private void BHFMPLDIHFG(Potion GCEPCEDMAHI, AGAJMBPABDL IEKDDPPNFPF)
|
||||
{
|
||||
OOCCCGPICOG cknfedppdoo = this.CKNFEDPPDOO;
|
||||
if (IEKDDPPNFPF != 0 && IEKDDPPNFPF.DMKCIEPGGAB)
|
||||
{
|
||||
ConsumableManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
OOCCCGPICOG cknfedppdoo2 = this.CKNFEDPPDOO;
|
||||
instance.ActivateConsumable(cknfedppdoo2, true);
|
||||
this.OEJHFGNAGFB = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E74F RID: 59215 RVA: 0x00358548 File Offset: 0x00356748
|
||||
[Token(Token = "0x600E74F")]
|
||||
[Address(RVA = "0x139D2E0", Offset = "0x139C0E0", VA = "0x18139D2E0")]
|
||||
public PotionConsumableTool()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040098C9 RID: 39113
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x40098C9")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
||||
protected Potion potion;
|
||||
|
||||
// Token: 0x040098CA RID: 39114
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x40098CA")]
|
||||
private bool OEJHFGNAGFB;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user