public int GetCastingSpeedMod(long entityId) { lock (_wuUpgrades) { WUUpgrades wu; if (!_wuUpgrades.TryGetValue(entityId, out wu)) return 0; return wu.CastingSpeed; } }