scripts
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Pun;
|
||||
using RecRoom.Core;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Consumable
|
||||
{
|
||||
// Token: 0x0200214C RID: 8524
|
||||
[Token(Token = "0x200214C")]
|
||||
[StructLayout(3)]
|
||||
public class CouponConsumableTool : ConsumableTool
|
||||
{
|
||||
// Token: 0x0600EB02 RID: 60162 RVA: 0x0037B500 File Offset: 0x00379700
|
||||
[Token(Token = "0x600EB02")]
|
||||
[Address(RVA = "0x179B180", Offset = "0x1799B80", VA = "0x18179B180", Slot = "13")]
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
Tool tool = this.tool;
|
||||
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.MNCLFHBBPHB);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent + action;
|
||||
tool.PostPickupEvent = actionEvent;
|
||||
}
|
||||
|
||||
// Token: 0x0600EB03 RID: 60163 RVA: 0x0037B544 File Offset: 0x00379744
|
||||
[Token(Token = "0x600EB03")]
|
||||
[Address(RVA = "0x179B570", Offset = "0x1799F70", VA = "0x18179B570", Slot = "14")]
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
Tool tool = this.tool;
|
||||
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.MNCLFHBBPHB);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent - action;
|
||||
tool.PostPickupEvent = actionEvent;
|
||||
if (!this.OEJHFGNAGFB)
|
||||
{
|
||||
OOCCCGPICOG cknfedppdoo = this.CKNFEDPPDOO;
|
||||
if (actionEvent != 0)
|
||||
{
|
||||
ConsumableManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
OOCCCGPICOG cknfedppdoo2 = this.CKNFEDPPDOO;
|
||||
instance.ActivateConsumable(cknfedppdoo2, true);
|
||||
NotificationManager instance2 = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
IDisposable disposable = instance2.Play(NotificationManager.IBIDFAOPIPC.Vital, "Coupon activated!", 3f, num, num);
|
||||
}
|
||||
}
|
||||
base.OnDestroy();
|
||||
}
|
||||
|
||||
// Token: 0x0600EB04 RID: 60164 RVA: 0x0037B5D8 File Offset: 0x003797D8
|
||||
[Token(Token = "0x600EB04")]
|
||||
[Address(RVA = "0x179B230", Offset = "0x1799C30", VA = "0x18179B230", Slot = "15")]
|
||||
protected override void FIENOGGFMIE(ConsumableInfo BJAHKKNDHKN)
|
||||
{
|
||||
ConsumableInfo <ENJFOPBELFF>k__BackingField;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
base.FIENOGGFMIE(BJAHKKNDHKN);
|
||||
<ENJFOPBELFF>k__BackingField = this.<ENJFOPBELFF>k__BackingField;
|
||||
if (<ENJFOPBELFF>k__BackingField == 0)
|
||||
{
|
||||
}
|
||||
num = 0;
|
||||
}
|
||||
while (<ENJFOPBELFF>k__BackingField == 0);
|
||||
TextMeshPro textMeshPro = this.mainText;
|
||||
this.OICOOGLDGMH = <ENJFOPBELFF>k__BackingField;
|
||||
textMeshPro.text = num;
|
||||
TextMeshPro textMeshPro2;
|
||||
TextMeshPro textMeshPro3;
|
||||
if (this.OICOOGLDGMH.DiscountType == CouponConsumableItem.OBDKMHPGAAN.PERCENTAGE)
|
||||
{
|
||||
textMeshPro2 = this.mainText;
|
||||
string text = textMeshPro2.m_text + "%";
|
||||
textMeshPro2.text = text;
|
||||
textMeshPro3 = this.subText;
|
||||
textMeshPro3.text = "discount";
|
||||
return;
|
||||
}
|
||||
while (textMeshPro3 != (ulong)2L)
|
||||
{
|
||||
}
|
||||
CurrencyManager instance = SingletonMonoBehaviour.Instance;
|
||||
string text2;
|
||||
textMeshPro2.text = text2;
|
||||
}
|
||||
|
||||
// Token: 0x0600EB05 RID: 60165 RVA: 0x0037B66C File Offset: 0x0037986C
|
||||
[Token(Token = "0x600EB05")]
|
||||
[Address(RVA = "0x179B450", Offset = "0x1799E50", VA = "0x18179B450")]
|
||||
private void MNCLFHBBPHB(Tool NBHJPDBHDHB)
|
||||
{
|
||||
ConsumableManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
OOCCCGPICOG cknfedppdoo = this.CKNFEDPPDOO;
|
||||
instance.ActivateConsumable(cknfedppdoo, true);
|
||||
NotificationManager instance2 = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
IDisposable disposable = instance2.Play(NotificationManager.IBIDFAOPIPC.Vital, "Coupon activated!", 3f, num, num);
|
||||
this.OEJHFGNAGFB = true;
|
||||
Action action = new Action(this.JBLHCCMIJGL);
|
||||
ISchedulerPromise schedulerPromise = this.InvokeNextEndOfFrame(action);
|
||||
}
|
||||
|
||||
// Token: 0x0600EB06 RID: 60166 RVA: 0x0037B6D0 File Offset: 0x003798D0
|
||||
[Token(Token = "0x600EB06")]
|
||||
[Address(RVA = "0x179B6F0", Offset = "0x179A0F0", VA = "0x18179B6F0")]
|
||||
public CouponConsumableTool()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600EB07 RID: 60167 RVA: 0x0037B6E4 File Offset: 0x003798E4
|
||||
[Token(Token = "0x600EB07")]
|
||||
[Address(RVA = "0x179B3F0", Offset = "0x1799DF0", VA = "0x18179B3F0")]
|
||||
[CompilerGenerated]
|
||||
private void JBLHCCMIJGL()
|
||||
{
|
||||
PhotonNetwork.Destroy(base.gameObject);
|
||||
}
|
||||
|
||||
// Token: 0x04009BA4 RID: 39844
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4009BA4")]
|
||||
[SerializeField]
|
||||
private TextMeshPro mainText;
|
||||
|
||||
// Token: 0x04009BA5 RID: 39845
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4009BA5")]
|
||||
[SerializeField]
|
||||
private TextMeshPro subText;
|
||||
|
||||
// Token: 0x04009BA6 RID: 39846
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4009BA6")]
|
||||
private CouponConsumableInfo OICOOGLDGMH;
|
||||
|
||||
// Token: 0x04009BA7 RID: 39847
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4009BA7")]
|
||||
private bool OEJHFGNAGFB;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user