This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,289 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using RecRoom.Core;
using RecRoom.Core.Combat;
using RecRoom.Tools.Weapons;
using UnityEngine;
namespace RecRoom.Activities.Quest
{
// Token: 0x02002BF0 RID: 11248
[Token(Token = "0x2002BF0")]
public class DraculaQuestGear : QuestGear
{
// Token: 0x06012F67 RID: 77671 RVA: 0x00460278 File Offset: 0x0045E478
[Token(Token = "0x6012F67")]
[Address(RVA = "0xB23850", Offset = "0xB22650", VA = "0x180B23850")]
private void Awake()
{
Whip component = base.GetComponent<Whip>();
this.KBJEFNJJJHF = component;
int num = 0;
if (!(component != num))
{
RangedWeapon component2 = base.GetComponent<RangedWeapon>();
this.CHOKCBJIJAL = component2;
int num2 = 0;
if (!(component2 != num2))
{
goto IL_F3;
}
RangedWeapon chokcbjijal = this.CHOKCBJIJAL;
Action action = new Action(this.MIKJDLDPIEP);
chokcbjijal.OFOLKCFPBEN += action;
}
Tool tool = this.KBJEFNJJJHF._tool;
Tool.OGLAJAFKBMN oglajafkbmn = new Tool.OGLAJAFKBMN(this.PLEALOIKBJO);
tool.AddCustomPickupCondition(oglajafkbmn);
Tool tool2 = this.KBJEFNJJJHF._tool;
Tool.EHOOCLKEMPD ehooclkempd = new Tool.EHOOCLKEMPD(this.IOOHPKMPGLP);
tool2.AddCustomEquipCondition(ehooclkempd);
Tool tool3 = this.KBJEFNJJJHF._tool;
MFBGLIHGCGO<Tool> postPickupEvent = tool3.PostPickupEvent;
Action<Tool> action2 = new Action(this.NJJFPMFFICD);
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postPickupEvent, action2);
tool3.PostPickupEvent = mfbglihgcgo;
Action<float> action3 = new Action(this.DMMOMLKNNKI);
IDisposable disposable = ADIFCODGAML.FLMKKKHMJBN(this, 5f, action3);
IL_F3:
Whip kbjefnjjjhf = this.KBJEFNJJJHF;
int num3 = 0;
if (kbjefnjjjhf == num3)
{
RangedWeapon chokcbjijal2 = this.CHOKCBJIJAL;
int num4 = 0;
if (chokcbjijal2 == num4)
{
global::UnityEngine.Object.Destroy(this);
}
}
}
// Token: 0x06012F68 RID: 77672 RVA: 0x004603B4 File Offset: 0x0045E5B4
[Token(Token = "0x6012F68")]
[Address(RVA = "0xB24520", Offset = "0xB23320", VA = "0x180B24520")]
private void OnDestroy()
{
Whip kbjefnjjjhf = this.KBJEFNJJJHF;
int num = 0;
if (kbjefnjjjhf != num)
{
Tool tool = this.KBJEFNJJJHF._tool;
Tool.OGLAJAFKBMN oglajafkbmn = new Tool.OGLAJAFKBMN(this.PLEALOIKBJO);
tool.RemoveCustomPickupCondition(oglajafkbmn);
Tool tool2 = this.KBJEFNJJJHF._tool;
Tool.EHOOCLKEMPD ehooclkempd = new Tool.EHOOCLKEMPD(this.IOOHPKMPGLP);
tool2.RemoveCustomEquipCondition(ehooclkempd);
Tool tool3 = this.KBJEFNJJJHF._tool;
MFBGLIHGCGO<Tool> postPickupEvent = tool3.PostPickupEvent;
Action<Tool> action = new Action(this.NJJFPMFFICD);
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(postPickupEvent, action);
tool3.PostPickupEvent = mfbglihgcgo;
}
RangedWeapon chokcbjijal = this.CHOKCBJIJAL;
int num2 = 0;
if (chokcbjijal != num2)
{
RangedWeapon chokcbjijal2 = this.CHOKCBJIJAL;
Action action2 = new Action(this.MIKJDLDPIEP);
chokcbjijal2.OFOLKCFPBEN -= action2;
}
}
// Token: 0x06012F69 RID: 77673 RVA: 0x0046048C File Offset: 0x0045E68C
[Token(Token = "0x6012F69")]
[Address(RVA = "0xB24710", Offset = "0xB23510", VA = "0x180B24710")]
private bool PLEALOIKBJO(Tool NBHJPDBHDHB, Player NHCEBNBEEBE, Vector3 JEDLNAEEMEN, bool GEJJBENPHJG)
{
int num;
int num2;
do
{
num = 0;
IReadOnlyList<PlayerHand> bothHands = NHCEBNBEEBE.BothHands;
if (bothHands != 0)
{
bool flag;
while (!flag)
{
}
OGNBCNBPFCC ognbcnbpfcc;
while (ognbcnbpfcc != OGNBCNBPFCC.DRACULA_WHIP)
{
}
}
num2 = 0;
if (bothHands != 0)
{
}
}
while (num != 0);
if (num != -1)
{
}
PlayerToolEquipSlot[] <HBBPIPDDLKN>k__BackingField = NHCEBNBEEBE.toolEquipSlots.<HBBPIPDDLKN>k__BackingField;
int length = <HBBPIPDDLKN>k__BackingField.Length;
if (num2 < length)
{
PlayerToolEquipSlot playerToolEquipSlot = <HBBPIPDDLKN>k__BackingField[num2];
if (playerToolEquipSlot.FDMFNIJKHKC && playerToolEquipSlot.EFEKNEEGDIP.OGNBCNBPFCC == OGNBCNBPFCC.DRACULA_WHIP)
{
Tool equippedTool = playerToolEquipSlot.EFEKNEEGDIP;
if (num != equippedTool)
{
goto IL_89;
}
}
num2++;
}
IL_89:
throw new NullReferenceException();
}
// Token: 0x06012F6A RID: 77674 RVA: 0x0046053C File Offset: 0x0045E73C
[Token(Token = "0x6012F6A")]
[Address(RVA = "0xB24130", Offset = "0xB22F30", VA = "0x180B24130")]
private void NJJFPMFFICD(Tool NBHJPDBHDHB)
{
int num;
do
{
num = 0;
Player <OKDFEPHLKCB>k__BackingField = NBHJPDBHDHB.<OKDFEPHLKCB>k__BackingField;
Player <EGKJPJKLEAI>k__BackingField = Player.<EGKJPJKLEAI>k__BackingField;
if (!(<OKDFEPHLKCB>k__BackingField == <EGKJPJKLEAI>k__BackingField))
{
break;
}
IReadOnlyList<PlayerHand> bothHands = Player.<EGKJPJKLEAI>k__BackingField.BothHands;
if (bothHands != 0)
{
bool flag;
while (!flag)
{
}
bool flag2;
while (!flag2)
{
}
OGNBCNBPFCC ognbcnbpfcc;
while (ognbcnbpfcc != OGNBCNBPFCC.DRACULA_WHIP)
{
}
Vector3 zero = Vector3.zero;
Vector3 zero2 = Vector3.zero;
IDisposable disposable = SingletonMonoBehaviour.ONCPNMDGGKG.Play((NotificationManager.IBIDFAOPIPC)((uint)1), "No dual wielding... don't be sneaky!", 2f, num, num);
}
if (bothHands != 0)
{
}
}
while (num != 0);
}
// Token: 0x06012F6B RID: 77675 RVA: 0x004605D4 File Offset: 0x0045E7D4
[Token(Token = "0x6012F6B")]
[Address(RVA = "0xB23C00", Offset = "0xB22A00", VA = "0x180B23C00")]
private bool IOOHPKMPGLP(Tool EGFEJGHDNAI, Player BGKPFFGBMCC, FNCLOCJLFDG HCPBBFGIBAB)
{
int num;
bool flag;
int num4;
do
{
num = 0;
int num2 = 0;
if (!(BGKPFFGBMCC != num2))
{
return true;
}
IReadOnlyList<PlayerHand> bothHands = BGKPFFGBMCC.BothHands;
if (bothHands != 0)
{
int num3 = 0;
if (!(EGFEJGHDNAI != num3) || EGFEJGHDNAI.OGNBCNBPFCC != OGNBCNBPFCC.DRACULA_WHIP)
{
continue;
}
while (!flag)
{
}
}
num4 = 0;
if (bothHands != 0)
{
}
}
while (flag);
if (num != -1)
{
}
PlayerToolEquipSlot[] <HBBPIPDDLKN>k__BackingField = BGKPFFGBMCC.toolEquipSlots.<HBBPIPDDLKN>k__BackingField;
int length = <HBBPIPDDLKN>k__BackingField.Length;
if (num4 < length)
{
PlayerToolEquipSlot playerToolEquipSlot = <HBBPIPDDLKN>k__BackingField[num4];
if (playerToolEquipSlot.FDMFNIJKHKC && playerToolEquipSlot.EFEKNEEGDIP.OGNBCNBPFCC == OGNBCNBPFCC.DRACULA_WHIP)
{
Tool equippedTool = playerToolEquipSlot.EFEKNEEGDIP;
if (EGFEJGHDNAI != equippedTool)
{
return true;
}
}
num4++;
}
return true;
}
// Token: 0x06012F6C RID: 77676 RVA: 0x0046069C File Offset: 0x0045E89C
[Token(Token = "0x6012F6C")]
[Address(RVA = "0xB23B40", Offset = "0xB22940", VA = "0x180B23B40")]
private void DMMOMLKNNKI(float POGAEJIEPIM)
{
Whip kbjefnjjjhf = this.KBJEFNJJJHF;
int num = 0;
if (!(kbjefnjjjhf == num) && this.KBJEFNJJJHF._tool.<JGABDFBGDEB>k__BackingField.PAJGCGDFHKK)
{
this.KBJEFNJJJHF._tool.<JGABDFBGDEB>k__BackingField.CheckCleanup();
}
}
// Token: 0x06012F6D RID: 77677 RVA: 0x004606F0 File Offset: 0x0045E8F0
[Token(Token = "0x6012F6D")]
[Address(RVA = "0xB23F80", Offset = "0xB22D80", VA = "0x180B23F80")]
private void MIKJDLDPIEP()
{
if (this.CHOKCBJIJAL.OGIBLNIIHDK && this.CHOKCBJIJAL.FPLOELJHIHK && NetworkedSingletonMonoBehaviour.FFNIFALJLDD)
{
Tool tool = this.CHOKCBJIJAL._tool;
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool.PostResetEvent;
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.spawnManager.OnSpawnedToolReset);
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> eahpnacbldd = EAHPNACBLDD.BPJDFPACLMK(postResetEvent, action);
tool.PostResetEvent = eahpnacbldd;
ToolCleanup <JGABDFBGDEB>k__BackingField = this.CHOKCBJIJAL._tool.<JGABDFBGDEB>k__BackingField;
int num = 0;
<JGABDFBGDEB>k__BackingField.AuthorityQueueForceCleanup(num != 0);
this.CHOKCBJIJAL._tool.<JGABDFBGDEB>k__BackingField.defaultDelayUntilCleanup = 0f;
}
}
// Token: 0x06012F6E RID: 77678 RVA: 0x0046079C File Offset: 0x0045E99C
[Token(Token = "0x6012F6E")]
[Address(RVA = "0x752FB0", Offset = "0x751DB0", VA = "0x180752FB0")]
public DraculaQuestGear()
{
}
// Token: 0x0400C4D2 RID: 50386
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400C4D2")]
private Whip KBJEFNJJJHF;
// Token: 0x0400C4D3 RID: 50387
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400C4D3")]
private RangedWeapon CHOKCBJIJAL;
}
}