// Token: 0x060010F8 RID: 4344 RVA: 0x00067D80 File Offset: 0x00065F80 private void SendAmmoIncrease() { switch (this._item._config.AmmoIncrease) { case IncreaseStyle.Absolute: foreach (object obj in Enum.GetValues(typeof(AmmoType))) { AmmoType t = (AmmoType)((int)obj); AmmoDepot.AddAmmoOfType(t, this._item._config.PointsGain); } break; case IncreaseStyle.PercentFromStart: foreach (object obj2 in Enum.GetValues(typeof(AmmoType))) { AmmoType t2 = (AmmoType)((int)obj2); AmmoDepot.AddStartAmmoOfType(t2, (float)this._item._config.PointsGain / 100f); } break; case IncreaseStyle.PercentFromMax: foreach (object obj3 in Enum.GetValues(typeof(AmmoType))) { AmmoType t3 = (AmmoType)((int)obj3); AmmoDepot.AddMaxAmmoOfType(t3, (float)this._item._config.PointsGain / 100f); } break; default: throw new NotImplementedException("SendAmmoIncrease for type: " + this._item._config.AmmoIncrease); } }
// Token: 0x06001DFB RID: 7675 RVA: 0x00013EFF File Offset: 0x000120FF public static void AddDefaultAmmoOfType(AmmoType t) { AmmoDepot.AddAmmoOfType(t, AmmoDepot._startAmmo[t]); }