101 lines
3.4 KiB
C#
101 lines
3.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using Photon.Realtime;
|
|
using RecRoom.Activities.Quest.Goblin2;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Consumable
|
|
{
|
|
// Token: 0x02002158 RID: 8536
|
|
[Token(Token = "0x2002158")]
|
|
[StructLayout(3)]
|
|
public class PotionConsumableTool : ConsumableTool
|
|
{
|
|
// Token: 0x0600EB2E RID: 60206 RVA: 0x0037C0F0 File Offset: 0x0037A2F0
|
|
[Token(Token = "0x600EB2E")]
|
|
[Address(RVA = "0x17B0E00", Offset = "0x17AF800", VA = "0x1817B0E00", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
Tool tool = this.tool;
|
|
ActionEvent<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PDEEFICICFG);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent + action;
|
|
tool.PostReleaseEvent = actionEvent;
|
|
Potion potion = this.potion;
|
|
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
|
potion.AOFFBPHMBBP += jiclaajlnce;
|
|
}
|
|
|
|
// Token: 0x0600EB2F RID: 60207 RVA: 0x0037C154 File Offset: 0x0037A354
|
|
[Token(Token = "0x600EB2F")]
|
|
[Address(RVA = "0x17B0FB0", Offset = "0x17AF9B0", VA = "0x1817B0FB0", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
Tool tool = this.tool;
|
|
ActionEvent<Tool> postReleaseEvent = tool.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.PDEEFICICFG);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent - action;
|
|
tool.PostReleaseEvent = actionEvent;
|
|
Potion potion = this.potion;
|
|
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
|
potion.AOFFBPHMBBP -= jiclaajlnce;
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0600EB30 RID: 60208 RVA: 0x0037C1B8 File Offset: 0x0037A3B8
|
|
[Token(Token = "0x600EB30")]
|
|
[Address(RVA = "0x17B10B0", Offset = "0x17AFAB0", VA = "0x1817B10B0")]
|
|
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();
|
|
PhotonNetwork.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600EB31 RID: 60209 RVA: 0x0037C220 File Offset: 0x0037A420
|
|
[Token(Token = "0x600EB31")]
|
|
[Address(RVA = "0x17B0F00", Offset = "0x17AF900", VA = "0x1817B0F00")]
|
|
private void BHFMPLDIHFG(Potion GCEPCEDMAHI, Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
OOCCCGPICOG cknfedppdoo = this.CKNFEDPPDOO;
|
|
if (IEKDDPPNFPF != 0 && IEKDDPPNFPF.IsLocal)
|
|
{
|
|
ConsumableManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
OOCCCGPICOG cknfedppdoo2 = this.CKNFEDPPDOO;
|
|
instance.ActivateConsumable(cknfedppdoo2, true);
|
|
this.OEJHFGNAGFB = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600EB32 RID: 60210 RVA: 0x0037C264 File Offset: 0x0037A464
|
|
[Token(Token = "0x600EB32")]
|
|
[Address(RVA = "0x17B11C0", Offset = "0x17AFBC0", VA = "0x1817B11C0")]
|
|
public PotionConsumableTool()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04009BBA RID: 39866
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4009BBA")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
protected Potion potion;
|
|
|
|
// Token: 0x04009BBB RID: 39867
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4009BBB")]
|
|
private bool OEJHFGNAGFB;
|
|
}
|
|
}
|