anchor.diff:  	spread = 5
   	recoil = 0.15
   	casing_ejector = 0
  -	var/obj/item/stock_parts/cell/cell
  -	var/cell_type = /obj/item/stock_parts/cell/magrifle_e
  -	var/dead_cell = FALSE
  -
  -/obj/item/gun/ballistic/automatic/magrifle_e/can_shoot()
  -	if(QDELETED(cell))
  -		return 0
  -
  -	var/obj/item/ammo_casing/caseless/mag_e/shot = chambered
  -	if(!shot)
  -		return 0
  -	if(cell.charge < shot.energy_cost*burst_size)
  -		return 0
  -	. = ..()
  -
  -/obj/item/gun/ballistic/automatic/magrifle_e/shoot_live_shot()
  -	var/obj/item/ammo_casing/caseless/mag_e/shot = chambered
  -	cell.use(shot.energy_cost)
  -	. = ..()
  -
  -/obj/item/gun/ballistic/automatic/magrifle_e/emp_act(severity)
  -	. = ..()
  -	if(!(. & EMP_PROTECT_CONTENTS))
  -		cell.use(round(cell.charge / severity))
  -
  -/obj/item/gun/ballistic/automatic/magrifle_e/get_cell()
  -	return cell
  -
  -/obj/item/gun/ballistic/automatic/magrifle_e/Initialize()
  -	. = ..()
  -	if(cell_type)
  -		cell = new cell_type(src)
  -	else
  -		cell = new(src)
  -
  -	if(!dead_cell)
  -		cell.give(cell.maxcharge)
  -
  -/obj/item/gun/ballistic/automatic/magrifle_e/nopin
  +
  +///research///
  +
  +/obj/item/gun/ballistic/automatic/magrifle/nopin
   	pin = null
   	spawnwithmagazine = FALSE
   
  -///magpistol///
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e
  -	name = "magpistol"
  -	desc = "A handgun utilizing maglev technologies to propel a ferromagnetic slug to extreme velocities."
  -	icon = 'modular_citadel/icons/obj/guns/cit_guns.dmi'
  -	icon_state = "magpistol"
  -	force = 10
  -	fire_sound = 'sound/weapons/magpistol.ogg'
  -	mag_type = /obj/item/ammo_box/magazine/mmag_e/small
  -	can_suppress = 0
  -	casing_ejector = 0
  -	fire_delay = 2
  -	recoil = 0.2
  -	var/obj/item/stock_parts/cell/cell
  -	var/cell_type = /obj/item/stock_parts/cell/magpistol_e
  -	var/dead_cell = FALSE
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e/can_shoot()
  -	if(QDELETED(cell))
  -		return 0
  -
  -	var/obj/item/ammo_casing/caseless/mag_e/shot = chambered
  -	if(!shot)
  -		return 0
  -	if(cell.charge < shot.energy_cost)
  -		return 0
  -	. = ..()
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e/shoot_live_shot()
  -	var/obj/item/ammo_casing/caseless/mag_e/shot = chambered
  -	cell.use(shot.energy_cost)
  -	. = ..()
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e/emp_act(severity)
  -	. = ..()
  -	if(!(. & EMP_PROTECT_CONTENTS))
  -		cell.use(round(cell.charge / severity))
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e/get_cell()
  -	return cell
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e/Initialize()
  -	. = ..()
  -	if(cell_type)
  -		cell = new cell_type(src)
  -	else
  -		cell = new(src)
  -	if(!dead_cell)
  -		cell.give(cell.maxcharge)
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e/update_icon()
  -	..()
  -	if(magazine)
  -		cut_overlays()
  -		add_overlay("magpistol-magazine")
  -	else
  -		cut_overlays()
  -	icon_state = "[initial(icon_state)][chambered ? "" : "-e"]"
  -
  -/obj/item/gun/ballistic/automatic/pistol/mag_e/nopin
  -	pin = null
  -	spawnwithmagazine = FALSE 
  +/datum/design/magrifle
  +	name = "Magrifle"
  +	desc = "An upscaled Magpistol in rifle form."
  +	id = "magrifle"
  +	build_type = PROTOLATHE
  +	materials = list(MAT_METAL = 10000, MAT_GLASS = 2000, MAT_URANIUM = 2000, MAT_TITANIUM = 10000, MAT_SILVER = 4000, MAT_GOLD = 2000)
  +	build_path = /obj/item/gun/ballistic/automatic/magrifle/nopin
  +	category = list("Weapons")
  +	departmental_flags = DEPARTMENTAL_FLAG_SECURITY
  +
  +/datum/design/mag_magrifle
  +	name = "Magrifle Magazine (Lethal)"
  +	desc = "A 24-round magazine for the Magrifle."
  +	id = "mag_magrifle"
  +	build_type = PROTOLATHE
  +	materials = list(MAT_METAL = 8000, MAT_SILVER = 1000)
  +	build_path = /obj/item/ammo_box/magazine/mmag/lethal
  +	category = list("Ammo")
  +	departmental_flags = DEPARTMENTAL_FLAG_SECURITY
  +
  +/datum/design/mag_magrifle/nl
  +	name = "Magrifle Magazine (Non-Lethal)"
  +	desc = "A 24- round non-lethal magazine for the Magrifle."
  +	id = "mag_magrifle_nl"
  +	materials = list(MAT_METAL = 6000, MAT_SILVER = 500, MAT_TITANIUM = 500)
  +	build_path = /obj/item/ammo_box/magazine/mmag
  +	departmental_flags = DEPARTMENTAL_FLAG_SECURITY
  +
  +///foamagrifle///
  +
  +/obj/item/ammo_box/magazine/toy/foamag
  +	name = "foam force magrifle magazine"
  +	icon = 'modular_citadel/icons/obj/guns/cit_guns.dmi'
  +	icon_state = "foamagmag"
  +	max_ammo = 24
  +	multiple_sprites = 2
  +	ammo_type = /obj/item/ammo_casing/caseless/foam_dart/mag
  +	materials = list(MAT_METAL = 200)
  +
  +/obj/item/gun/ballistic/automatic/magrifle/toy
  +	name = "foamag rifle"
  +	desc = "A foam launching magnetic rifle. Ages 8 and up."
  +	icon_state = "foamagrifle"
  +	obj_flags = 0
  +	mag_type = /obj/item/ammo_box/magazine/toy/foamag
  +	casing_ejector = FALSE
  +	spread = 60
  +	w_class = WEIGHT_CLASS_BULKY
  +	weapon_weight = WEAPON_HEAVY
   
   /*
   // TECHWEBS IMPLEMENTATION
  -*/
  +//
   
   /datum/techweb_node/magnetic_weapons
   	id = "magnetic_weapons"
   	display_name = "Magnetic Weapons"
   	description = "Weapons using magnetic technology"
   	prereq_ids = list("weaponry", "adv_weaponry", "emp_adv")
  -	design_ids = list("magrifle_e", "magpisol_e", "mag_magrifle_e", "mag_magrifle_nl_e", "mag_magpistol_e", "mag_magpistol_nl_e")
  +	design_ids = list("magrifle", "magpisol", "mag_magrifle", "mag_magrifle_nl", "mag_magpistol", "mag_magpistol_nl")
   	research_costs = list(TECHWEB_POINT_TYPE_GENERIC = 2500)
   	export_price = 5000
  -
  +*/
   
   //////Hyper-Burst Rifle//////
   
  
positive.code: 	range = 25
  	light_color = LIGHT_COLOR_BLUE
  
  ////bullets///
  
  /obj/item/projectile/bullet/mags
  	icon = 'modular_citadel/icons/obj/guns/cit_guns.dmi'
  	icon_state = "magjectile"
  	damage = 15
  	armour_penetration = 10
  	light_range = 2
  	speed = 0.6
  	range = 25
  	light_color = LIGHT_COLOR_RED
  
  /obj/item/projectile/bullet/nlmags //non-lethal boolets
  	icon = 'modular_citadel/icons/obj/guns/cit_guns.dmi'
  	icon_state = "magjectile-nl"
  	damage = 2
  	knockdown = 0
  	stamina = 25
  	armour_penetration = -10
  	light_range = 2
  	speed = 0.7
  	range = 25
  	light_color = LIGHT_COLOR_BLUE
  
  /obj/item/projectile/bullet/magrifle
  	icon = 'modular_citadel/icons/obj/guns/cit_guns.dmi'
  
negative.code: ///////XCOM X9 AR///////
  
  /obj/item/gun/ballistic/automatic/x9	//will be adminspawn only so ERT or something can use them
  