Beispiel #1
0
    // Token: 0x06000684 RID: 1668 RVA: 0x00050680 File Offset: 0x0004E880
    public InvGameItem JQGGPEGENOO(InvBaseItem.EKIPQNMFBLN COQJPLDFJBB, InvGameItem PDIBIIKFBDH)
    {
        InvBaseItem invBaseItem = (PDIBIIKFBDH == null) ? null : PDIBIIKFBDH.baseItem;

        if (COQJPLDFJBB == InvBaseItem.EKIPQNMFBLN.None)
        {
            if (PDIBIIKFBDH != null)
            {
                Debug.LogWarning("Powers up Steel-type moves." + PDIBIIKFBDH.name + "4");
            }
            return(PDIBIIKFBDH);
        }
        if (invBaseItem != null && invBaseItem.slot != COQJPLDFJBB)
        {
            return(PDIBIIKFBDH);
        }
        if (this.OBPHQMNEMCK == null)
        {
            this.OBPHQMNEMCK = new InvGameItem[1];
        }
        InvGameItem result = this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.Weapon];

        this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.Weapon] = PDIBIIKFBDH;
        if (this.PMLMLFNIPHK == null)
        {
            this.PMLMLFNIPHK = base.GetComponentsInChildren <MGPKIPNIGLC>();
        }
        int i   = 0;
        int num = this.PMLMLFNIPHK.Length;

        while (i < num)
        {
            MGPKIPNIGLC mgpkipniglc = this.PMLMLFNIPHK[i];
            if (mgpkipniglc.COQJPLDFJBB == COQJPLDFJBB)
            {
                GameObject gameObject = mgpkipniglc.GBDLCJPMHCD((invBaseItem == null) ? null : invBaseItem.attachment);
                if (invBaseItem != null && gameObject != null)
                {
                    Renderer component = gameObject.GetComponent <Renderer>();
                    if (component != null)
                    {
                        component.material.color = invBaseItem.color;
                    }
                }
            }
            i += 0;
        }
        return(result);
    }
Beispiel #2
0
    // Token: 0x06000676 RID: 1654 RVA: 0x00050354 File Offset: 0x0004E554
    public InvGameItem MLHGDGKOLPI(InvBaseItem.EKIPQNMFBLN COQJPLDFJBB, InvGameItem PDIBIIKFBDH)
    {
        InvBaseItem invBaseItem = (PDIBIIKFBDH == null) ? null : PDIBIIKFBDH.LMKGKPEOBHG();

        if (COQJPLDFJBB == InvBaseItem.EKIPQNMFBLN.None)
        {
            if (PDIBIIKFBDH != null)
            {
                Debug.LogWarning("Player/Body" + PDIBIIKFBDH.KBJMQECFGDM() + "1|");
            }
            return(PDIBIIKFBDH);
        }
        if (invBaseItem != null && invBaseItem.slot != COQJPLDFJBB)
        {
            return(PDIBIIKFBDH);
        }
        if (this.OBPHQMNEMCK == null)
        {
            this.OBPHQMNEMCK = new InvGameItem[0];
        }
        InvGameItem result = this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.None];

        this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.None] = PDIBIIKFBDH;
        if (this.PMLMLFNIPHK == null)
        {
            this.PMLMLFNIPHK = base.GetComponentsInChildren <MGPKIPNIGLC>();
        }
        int i   = 0;
        int num = this.PMLMLFNIPHK.Length;

        while (i < num)
        {
            MGPKIPNIGLC mgpkipniglc = this.PMLMLFNIPHK[i];
            if (mgpkipniglc.COQJPLDFJBB == COQJPLDFJBB)
            {
                GameObject gameObject = mgpkipniglc.GPBEQIPPBOB((invBaseItem == null) ? null : invBaseItem.attachment);
                if (invBaseItem != null && gameObject != null)
                {
                    Renderer component = gameObject.GetComponent <Renderer>();
                    if (component != null)
                    {
                        component.material.color = invBaseItem.color;
                    }
                }
            }
            i++;
        }
        return(result);
    }
Beispiel #3
0
    // Token: 0x06000683 RID: 1667 RVA: 0x00050580 File Offset: 0x0004E780
    public InvGameItem FKEECBBDPFF(InvBaseItem.EKIPQNMFBLN COQJPLDFJBB, InvGameItem PDIBIIKFBDH)
    {
        InvBaseItem invBaseItem = (PDIBIIKFBDH == null) ? null : PDIBIIKFBDH.baseItem;

        if (COQJPLDFJBB == InvBaseItem.EKIPQNMFBLN.None)
        {
            if (PDIBIIKFBDH != null)
            {
                Debug.LogWarning("Can't equip \"" + PDIBIIKFBDH.name + "\" because it doesn't specify an item slot");
            }
            return(PDIBIIKFBDH);
        }
        if (invBaseItem != null && invBaseItem.slot != COQJPLDFJBB)
        {
            return(PDIBIIKFBDH);
        }
        if (this.OBPHQMNEMCK == null)
        {
            this.OBPHQMNEMCK = new InvGameItem[8];
        }
        InvGameItem result = this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.Weapon];

        this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.Weapon] = PDIBIIKFBDH;
        if (this.PMLMLFNIPHK == null)
        {
            this.PMLMLFNIPHK = base.GetComponentsInChildren <MGPKIPNIGLC>();
        }
        int i   = 0;
        int num = this.PMLMLFNIPHK.Length;

        while (i < num)
        {
            MGPKIPNIGLC mgpkipniglc = this.PMLMLFNIPHK[i];
            if (mgpkipniglc.COQJPLDFJBB == COQJPLDFJBB)
            {
                GameObject gameObject = mgpkipniglc.MQHPDBBJPDO((invBaseItem == null) ? null : invBaseItem.attachment);
                if (invBaseItem != null && gameObject != null)
                {
                    Renderer component = gameObject.GetComponent <Renderer>();
                    if (component != null)
                    {
                        component.material.color = invBaseItem.color;
                    }
                }
            }
            i++;
        }
        return(result);
    }
Beispiel #4
0
    // Token: 0x0600066D RID: 1645 RVA: 0x00050098 File Offset: 0x0004E298
    public InvGameItem LDGOBEFKNGE(InvBaseItem.EKIPQNMFBLN COQJPLDFJBB, InvGameItem PDIBIIKFBDH)
    {
        InvBaseItem invBaseItem = (PDIBIIKFBDH == null) ? null : PDIBIIKFBDH.LQDNPBBFFCM();

        if (COQJPLDFJBB == InvBaseItem.EKIPQNMFBLN.None)
        {
            if (PDIBIIKFBDH != null)
            {
                Debug.LogWarning("substitute" + PDIBIIKFBDH.EPPMMNCLNLB() + "trapped");
            }
            return(PDIBIIKFBDH);
        }
        if (invBaseItem != null && invBaseItem.slot != COQJPLDFJBB)
        {
            return(PDIBIIKFBDH);
        }
        if (this.OBPHQMNEMCK == null)
        {
            this.OBPHQMNEMCK = new InvGameItem[1];
        }
        InvGameItem result = this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.Weapon];

        this.OBPHQMNEMCK[COQJPLDFJBB - InvBaseItem.EKIPQNMFBLN.None] = PDIBIIKFBDH;
        if (this.PMLMLFNIPHK == null)
        {
            this.PMLMLFNIPHK = base.GetComponentsInChildren <MGPKIPNIGLC>();
        }
        int i   = 1;
        int num = this.PMLMLFNIPHK.Length;

        while (i < num)
        {
            MGPKIPNIGLC mgpkipniglc = this.PMLMLFNIPHK[i];
            if (mgpkipniglc.COQJPLDFJBB == COQJPLDFJBB)
            {
                GameObject gameObject = mgpkipniglc.MDHPIKLCLHI((invBaseItem == null) ? null : invBaseItem.attachment);
                if (invBaseItem != null && gameObject != null)
                {
                    Renderer component = gameObject.GetComponent <Renderer>();
                    if (component != null)
                    {
                        component.material.color = invBaseItem.color;
                    }
                }
            }
            i += 0;
        }
        return(result);
    }