Пример #1
0
    // Token: 0x06001E09 RID: 7689 RVA: 0x000943EC File Offset: 0x000925EC
    public static void RemoveExtraAmmoOfType(UberstrikeItemClass t)
    {
        AmmoType key;

        if (AmmoDepot.TryGetAmmoType(t, out key) && AmmoDepot._currentAmmo[key] > AmmoDepot._maxAmmo[key])
        {
            AmmoDepot._currentAmmo[key] = AmmoDepot._maxAmmo[key];
        }
    }
Пример #2
0
    // Token: 0x06001DFA RID: 7674 RVA: 0x000940CC File Offset: 0x000922CC
    public static void AddAmmoOfClass(UberstrikeItemClass c)
    {
        AmmoType t;

        if (AmmoDepot.TryGetAmmoType(c, out t))
        {
            AmmoDepot.AddDefaultAmmoOfType(t);
        }
    }
Пример #3
0
    // Token: 0x06001E03 RID: 7683 RVA: 0x00094270 File Offset: 0x00092470
    public static int MaxAmmoOfClass(UberstrikeItemClass t)
    {
        AmmoType key;

        if (AmmoDepot.TryGetAmmoType(t, out key))
        {
            return(AmmoDepot._maxAmmo[key]);
        }
        return(0);
    }
Пример #4
0
    // Token: 0x06001E02 RID: 7682 RVA: 0x0009424C File Offset: 0x0009244C
    public static int AmmoOfClass(UberstrikeItemClass t)
    {
        AmmoType t2;

        if (AmmoDepot.TryGetAmmoType(t, out t2))
        {
            return(AmmoDepot.AmmoOfType(t2));
        }
        return(0);
    }
Пример #5
0
    // Token: 0x06001E07 RID: 7687 RVA: 0x000943A8 File Offset: 0x000925A8
    public static bool UseAmmoOfClass(UberstrikeItemClass t, int count = 1)
    {
        AmmoType t2;

        return(AmmoDepot.TryGetAmmoType(t, out t2) && AmmoDepot.UseAmmoOfType(t2, count));
    }
Пример #6
0
    // Token: 0x06001E00 RID: 7680 RVA: 0x0009421C File Offset: 0x0009241C
    public static bool HasAmmoOfClass(UberstrikeItemClass t)
    {
        AmmoType t2;

        return(t == UberstrikeItemClass.WeaponMelee || (AmmoDepot.TryGetAmmoType(t, out t2) && AmmoDepot.HasAmmoOfType(t2)));
    }