scripts
This commit is contained in:
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Pun;
|
||||
using Photon.Realtime;
|
||||
using RecRoom.Activities.Quest.Goblin2;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Avatar.Outfit
|
||||
{
|
||||
// Token: 0x020021C6 RID: 8646
|
||||
[Token(Token = "0x20021C6")]
|
||||
[StructLayout(3)]
|
||||
public class PermanentHairDyeTool : MonoBehaviourPun
|
||||
{
|
||||
// Token: 0x0600EE3C RID: 60988 RVA: 0x00387748 File Offset: 0x00385948
|
||||
[Token(Token = "0x600EE3C")]
|
||||
[Address(RVA = "0x1D12910", Offset = "0x1D11310", VA = "0x181D12910", Slot = "13")]
|
||||
protected override void Awake()
|
||||
{
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Tool tool = this.tool;
|
||||
num = 0;
|
||||
if (tool.NDKHDFJHGPP || this.tool.InstantiationParameters == 0 || !this.tool.InstantiationParameters.TryGetValue("ColorGuid", num))
|
||||
{
|
||||
goto IL_95;
|
||||
}
|
||||
HairColorVault hairColorVault = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.HairColorVault;
|
||||
if (num == 0 || num != 0)
|
||||
{
|
||||
ColorVault.ColorToGuid dyeColor = hairColorVault.GetDyeColor(num);
|
||||
this.MEBLCMDDKCK = dyeColor;
|
||||
int num2 = 0;
|
||||
if (ColorVault.ColorToGuid.BDBLGMKABNK(dyeColor, num2))
|
||||
{
|
||||
goto IL_E8;
|
||||
}
|
||||
if (num == 0 || num != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Debug.LogError("Can not find dye color for " + num);
|
||||
PhotonNetwork.Destroy(base.gameObject);
|
||||
IL_95:
|
||||
Tool tool2 = this.tool;
|
||||
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool2.PostResetEvent;
|
||||
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.FICCBKGGJOE);
|
||||
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> actionEvent = postResetEvent + action;
|
||||
tool2.PostResetEvent = actionEvent;
|
||||
Potion potion = this.potion;
|
||||
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
||||
potion.AOFFBPHMBBP += jiclaajlnce;
|
||||
return;
|
||||
IL_E8:
|
||||
HairDyeRenderSetup hairDyeRenderSetup = this.hairDyeRenderSetup;
|
||||
ColorVault.ColorToGuid meblcmddkck = this.MEBLCMDDKCK;
|
||||
hairDyeRenderSetup.SetupRenderers(meblcmddkck);
|
||||
OutfitManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
ColorVault.ColorToGuid meblcmddkck2 = this.MEBLCMDDKCK;
|
||||
HairColorVault hairColorVault2 = instance.HairColorVault;
|
||||
string guidString = meblcmddkck2.guidString;
|
||||
hairColorVault2.AddUnlockedHairDye(guidString);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600EE3D RID: 60989 RVA: 0x00387888 File Offset: 0x00385A88
|
||||
[Token(Token = "0x600EE3D")]
|
||||
[Address(RVA = "0x1D12E40", Offset = "0x1D11840", VA = "0x181D12E40", Slot = "14")]
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
Tool tool = this.tool;
|
||||
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool.PostResetEvent;
|
||||
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.FICCBKGGJOE);
|
||||
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> actionEvent = postResetEvent - action;
|
||||
tool.PostResetEvent = actionEvent;
|
||||
Potion potion = this.potion;
|
||||
Potion.JICLAAJLNCE jiclaajlnce = new Potion.JICLAAJLNCE(this.BHFMPLDIHFG);
|
||||
potion.AOFFBPHMBBP -= jiclaajlnce;
|
||||
base.OnDestroy();
|
||||
}
|
||||
|
||||
// Token: 0x0600EE3E RID: 60990 RVA: 0x003878EC File Offset: 0x00385AEC
|
||||
[Token(Token = "0x600EE3E")]
|
||||
[Address(RVA = "0x1D12DC0", Offset = "0x1D117C0", VA = "0x181D12DC0")]
|
||||
private void FICCBKGGJOE(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
||||
{
|
||||
PhotonNetwork.Destroy(base.gameObject);
|
||||
}
|
||||
|
||||
// Token: 0x0600EE3F RID: 60991 RVA: 0x00387908 File Offset: 0x00385B08
|
||||
[Token(Token = "0x600EE3F")]
|
||||
[Address(RVA = "0x1D12C70", Offset = "0x1D11670", VA = "0x181D12C70")]
|
||||
private void BHFMPLDIHFG(Potion GCEPCEDMAHI, Photon.Realtime.Player IEKDDPPNFPF)
|
||||
{
|
||||
if (!this.OEJHFGNAGFB && IEKDDPPNFPF != 0 && IEKDDPPNFPF.IsLocal)
|
||||
{
|
||||
string guidString = this.MEBLCMDDKCK.guidString;
|
||||
int num = 0;
|
||||
Tool tool = this.tool;
|
||||
if (tool != 0)
|
||||
{
|
||||
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = tool.<FLFJCIPBAPA>k__BackingField;
|
||||
if (<FLFJCIPBAPA>k__BackingField != 0)
|
||||
{
|
||||
bool isNew = <FLFJCIPBAPA>k__BackingField.HICLCBMIPIN;
|
||||
}
|
||||
if (num != 1)
|
||||
{
|
||||
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField2 = this.tool.<FLFJCIPBAPA>k__BackingField;
|
||||
int num2 = 0;
|
||||
<FLFJCIPBAPA>k__BackingField2.HICLCBMIPIN = num2 != 0;
|
||||
}
|
||||
}
|
||||
this.OEJHFGNAGFB = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600EE40 RID: 60992 RVA: 0x0038798C File Offset: 0x00385B8C
|
||||
[Token(Token = "0x600EE40")]
|
||||
[Address(RVA = "0x6A4030", Offset = "0x6A2A30", VA = "0x1806A4030")]
|
||||
public PermanentHairDyeTool()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04009E3D RID: 40509
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4009E3D")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
protected Potion potion;
|
||||
|
||||
// Token: 0x04009E3E RID: 40510
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4009E3E")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
protected HairDyeRenderSetup hairDyeRenderSetup;
|
||||
|
||||
// Token: 0x04009E3F RID: 40511
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4009E3F")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
protected Tool tool;
|
||||
|
||||
// Token: 0x04009E40 RID: 40512
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4009E40")]
|
||||
private bool OEJHFGNAGFB;
|
||||
|
||||
// Token: 0x04009E41 RID: 40513
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4009E41")]
|
||||
private ColorVault.ColorToGuid MEBLCMDDKCK;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user