private string GetProjectileString() { if (ProjectileType == null) { return("NULL"); } if (!ProjectileType.IsSubclassOf(typeof(Projectiles.Projectile))) { throw new Exception("Projectile does not inherit from Engine.Projectiles.Projectile"); } var module = Modding.ModDatabase.TypeToModuleTable[ProjectileType]; return(module.Name + "+" + ProjectileType.Name); }