203 lines
6.4 KiB
C#
203 lines
6.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Gestures;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Consumable
|
|
{
|
|
// Token: 0x02002343 RID: 9027
|
|
[Token(Token = "0x2002343")]
|
|
public class HandPotionConsumableEffect : ConsumableEffect
|
|
{
|
|
// Token: 0x0600E73A RID: 59194 RVA: 0x00357E68 File Offset: 0x00356068
|
|
[Token(Token = "0x600E73A")]
|
|
[Address(RVA = "0x139BAE0", Offset = "0x139A8E0", VA = "0x18139BAE0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.<CEKFDODGELA>k__BackingField.Add((uint)3);
|
|
}
|
|
|
|
// Token: 0x0600E73B RID: 59195 RVA: 0x00357E90 File Offset: 0x00356090
|
|
[Token(Token = "0x600E73B")]
|
|
[Address(RVA = "0x139BD80", Offset = "0x139AB80", VA = "0x18139BD80", Slot = "16")]
|
|
protected override void IEKANKBCIBP(ConsumableItem ALMOGLHMFHL, bool CPNHCODHDAD)
|
|
{
|
|
base.IEKANKBCIBP(ALMOGLHMFHL, CPNHCODHDAD);
|
|
if (ALMOGLHMFHL == 0)
|
|
{
|
|
}
|
|
int num = 0;
|
|
if (ALMOGLHMFHL != num)
|
|
{
|
|
if (CPNHCODHDAD)
|
|
{
|
|
PlayerHand playerHand = this.myHand;
|
|
string text = ALMOGLHMFHL.friendlyName + " activated";
|
|
base.KOEKICOBBKF(text);
|
|
}
|
|
PlayerHand playerHand2 = this.myHand;
|
|
IILCGFIHJLP<PlayerHand, Tool> pickupToolEvent = playerHand2.PickupToolEvent;
|
|
Action<PlayerHand, Tool> action = new Action(this.MADAMADCJNN);
|
|
IILCGFIHJLP<PlayerHand, Tool> iilcgfihjlp = IILCGFIHJLP.BPJDFPACLMK(pickupToolEvent, action);
|
|
playerHand2.PickupToolEvent = iilcgfihjlp;
|
|
PlayerHand playerHand3 = this.myHand;
|
|
IILCGFIHJLP<PlayerHand, Tool> releaseToolEvent = playerHand3.ReleaseToolEvent;
|
|
Action<PlayerHand, Tool> action2 = new Action(this.OGHNKALGNEJ);
|
|
IILCGFIHJLP<PlayerHand, Tool> iilcgfihjlp2 = IILCGFIHJLP.BPJDFPACLMK(releaseToolEvent, action2);
|
|
playerHand3.ReleaseToolEvent = iilcgfihjlp2;
|
|
PlayerHandGestures gestures = this.myHand._gestures;
|
|
PlayerHandGestures.OGGNBMJDKKO oggnbmjdkko = new PlayerHandGestures.OGGNBMJDKKO(this.NAABCHABGKF);
|
|
gestures.HPOKCPNGHEF += oggnbmjdkko;
|
|
this.myHand._gestures.SuppressHighFive();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E73C RID: 59196 RVA: 0x00357F80 File Offset: 0x00356180
|
|
[Token(Token = "0x600E73C")]
|
|
[Address(RVA = "0x139BB40", Offset = "0x139A940", VA = "0x18139BB40", Slot = "17")]
|
|
protected override void HHBCNEEODDB(ConsumableItem ALMOGLHMFHL, bool CPNHCODHDAD)
|
|
{
|
|
base.HHBCNEEODDB(ALMOGLHMFHL, CPNHCODHDAD);
|
|
if (ALMOGLHMFHL == 0)
|
|
{
|
|
}
|
|
int num = 0;
|
|
if (ALMOGLHMFHL != num)
|
|
{
|
|
if (CPNHCODHDAD)
|
|
{
|
|
PlayerHand playerHand = this.myHand;
|
|
string text = ALMOGLHMFHL.friendlyName + " deactivated";
|
|
base.KOEKICOBBKF(text);
|
|
}
|
|
PlayerHand playerHand2 = this.myHand;
|
|
IILCGFIHJLP<PlayerHand, Tool> pickupToolEvent = playerHand2.PickupToolEvent;
|
|
Action<PlayerHand, Tool> action = new Action(this.MADAMADCJNN);
|
|
IILCGFIHJLP<PlayerHand, Tool> iilcgfihjlp = IILCGFIHJLP.GMNMHGMFGOL(pickupToolEvent, action);
|
|
playerHand2.PickupToolEvent = iilcgfihjlp;
|
|
PlayerHand playerHand3 = this.myHand;
|
|
IILCGFIHJLP<PlayerHand, Tool> releaseToolEvent = playerHand3.ReleaseToolEvent;
|
|
Action<PlayerHand, Tool> action2 = new Action(this.OGHNKALGNEJ);
|
|
IILCGFIHJLP<PlayerHand, Tool> iilcgfihjlp2 = IILCGFIHJLP.GMNMHGMFGOL(releaseToolEvent, action2);
|
|
playerHand3.ReleaseToolEvent = iilcgfihjlp2;
|
|
PlayerHandGestures gestures = this.myHand._gestures;
|
|
PlayerHandGestures.OGGNBMJDKKO oggnbmjdkko = new PlayerHandGestures.OGGNBMJDKKO(this.NAABCHABGKF);
|
|
gestures.HPOKCPNGHEF -= oggnbmjdkko;
|
|
this.myHand._gestures.UnsuppressHighFive();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E73D RID: 59197 RVA: 0x00358070 File Offset: 0x00356270
|
|
[Token(Token = "0x600E73D")]
|
|
[Address(RVA = "0x139BFC0", Offset = "0x139ADC0", VA = "0x18139BFC0")]
|
|
private void MADAMADCJNN(PlayerHand ONFJHABGCIP, Tool EGFEJGHDNAI)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
Dictionary<string, GameObject>.ValueCollection valueCollection = base.PGHKOFAMNJA();
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x0600E73E RID: 59198 RVA: 0x00358098 File Offset: 0x00356298
|
|
[Token(Token = "0x600E73E")]
|
|
[Address(RVA = "0x139C560", Offset = "0x139B360", VA = "0x18139C560")]
|
|
private void OGHNKALGNEJ(PlayerHand ONFJHABGCIP, Tool EGFEJGHDNAI)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
Dictionary<string, GameObject>.ValueCollection valueCollection = base.PGHKOFAMNJA();
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x0600E73F RID: 59199 RVA: 0x003580BC File Offset: 0x003562BC
|
|
[Token(Token = "0x600E73F")]
|
|
[Address(RVA = "0x139C0E0", Offset = "0x139AEE0", VA = "0x18139C0E0")]
|
|
private void NAABCHABGKF(PlayerHand JEDDOIPMCMC, PlayerHand GBEAALMHMBE, PlayerHandGestures.FHEGMOCKLHA LDMFCILCLPG, [Optional] Player JKICGKMBIMP, [Optional] Player LDFLMCNJOIF)
|
|
{
|
|
PlayerHand playerHand = this.myHand;
|
|
if (!(JEDDOIPMCMC == playerHand))
|
|
{
|
|
PlayerHand playerHand2 = this.myHand;
|
|
if (!(GBEAALMHMBE == playerHand2))
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
if (LDMFCILCLPG == PlayerHandGestures.FHEGMOCKLHA.Highfive)
|
|
{
|
|
ConsumableItem consumableItem = base.PHILEFGALDN();
|
|
if (consumableItem == 0)
|
|
{
|
|
}
|
|
int num = 0;
|
|
if (consumableItem != num)
|
|
{
|
|
int num2 = 0;
|
|
bool flag = GBEAALMHMBE == num2;
|
|
PlayerHand playerHand3 = this.myHand;
|
|
if (flag)
|
|
{
|
|
Transform transform = playerHand3.transform;
|
|
}
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform2 = GBEAALMHMBE.transform;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
Vector3 vector4;
|
|
float z4 = vector4.z;
|
|
int num3 = 0;
|
|
bool flag2;
|
|
if (flag2)
|
|
{
|
|
PooledParticle pooledParticle = GlobalPool.ONCPNMDGGKG.Acquire<PooledParticle>(num3);
|
|
int num4 = 0;
|
|
if (pooledParticle != num4)
|
|
{
|
|
Transform transform3 = pooledParticle.transform;
|
|
}
|
|
}
|
|
int num5 = 0;
|
|
if (consumableItem != num5)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E740 RID: 59200 RVA: 0x003581B0 File Offset: 0x003563B0
|
|
[Token(Token = "0x600E740")]
|
|
[Address(RVA = "0x139C680", Offset = "0x139B480", VA = "0x18139C680")]
|
|
public HandPotionConsumableEffect()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040098BE RID: 39102
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x40098BE")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private PlayerHand myHand;
|
|
}
|
|
}
|