<commit_before>////////////
//CONTENTS//
////////////
//
//CANDY CORN SMG
//
///////
//END//
///////


/obj/item/weapon/gun/projectile/automatic/candycorn
	name = "candy-corn SMG"
	desc = "Hailing from planet Mars, this deadly combination of delicious and deadly will make everyone think twice about messing with you."
	icon = 'code/cactus/obj/obj.dmi'
	icon_state = "candy"
	origin_tech = "combat=1;materials=1"
	w_class = 3
	mag_type = /obj/item/ammo_box/magazine/candycorn
	can_suppress = 1
	burst_size = 2
	fire_delay = 2
	action_button_name = "Toggle Firemode"
	fire_sound = 'code/cactus/sound/pew2.ogg'
	can_suppress = 0

/obj/item/weapon/gun/projectile/automatic/wt550/update_icon()
	..()
	icon_state = "candy[magazine ? "-[Ceiling(get_ammo(0)/2)*2]" : ""]"
	return

/obj/item/ammo_casing/candycorn
	name = "candy-corn cartridge"
	desc = "Is this edible, too?"
	fire_sound = 'code/cactus/sound/pew2.ogg'
	caliber = "candy"
	projectile_type = /obj/item/projectile/candycorn

/obj/item/projectile/candycorn
	damage = 0
	stamina = 5
	icon_state = "ccorn"

/obj/item/projectile/candycorn/on_hit(atom/target, blocked = 0, hit_zone)
	new /obj/item/weapon/reagent_containers/food/snacks/candy_corn(get_turf(src))
	..()

/obj/item/ammo_box/magazine/candycorn
	name = "candy corn magazine"
	icon_state = "oldrifle"
	origin_tech = "combat=1"
	ammo_type = /obj/item/ammo_casing/candycorn
	caliber = "candy"
	max_ammo = 20
	multiple_sprites = 2<commit_msg>prevents micros from shooting projectile weapons<commit_after>////////////
//CONTENTS//
////////////
//
//CANDY CORN GUNS
//
//MICROS SHOOTING GUNS
//
///////
//END//
///////


/obj/item/weapon/gun/projectile/automatic/candycorn
	name = "candy-corn SMG"
	desc = "Hailing from planet Mars, this deadly combination of delicious and deadly will make everyone think twice about messing with you."
	icon = 'code/cactus/obj/obj.dmi'
	icon_state = "candy"
	origin_tech = "combat=1;materials=1"
	w_class = 3
	mag_type = /obj/item/ammo_box/magazine/candycorn
	can_suppress = 1
	burst_size = 2
	fire_delay = 2
	action_button_name = "Toggle Firemode"
	fire_sound = 'code/cactus/sound/pew2.ogg'
	can_suppress = 0

/obj/item/weapon/gun/projectile/automatic/wt550/update_icon()
	..()
	icon_state = "candy[magazine ? "-[Ceiling(get_ammo(0)/2)*2]" : ""]"
	return

/obj/item/ammo_casing/candycorn
	name = "candy-corn cartridge"
	desc = "Is this edible, too?"
	fire_sound = 'code/cactus/sound/pew2.ogg'
	caliber = "candy"
	projectile_type = /obj/item/projectile/candycorn

/obj/item/projectile/candycorn
	damage = 0
	stamina = 5
	icon_state = "ccorn"

/obj/item/projectile/candycorn/on_hit(atom/target, blocked = 0, hit_zone)
	new /obj/item/weapon/reagent_containers/food/snacks/candy_corn(get_turf(src))
	..()

/obj/item/ammo_box/magazine/candycorn
	name = "<NAME>"
	icon_state = "oldrifle"
	origin_tech = "combat=1"
	ammo_type = /obj/item/ammo_casing/candycorn
	caliber = "candy"
	max_ammo = 20
	multiple_sprites = 2

////////////////////////
//MICROS SHOOTING GUNS//
////////////////////////

/obj/item/weapon/gun/projectile/shoot_live_shot(mob/living/user as mob|obj, pointblank = 0, mob/pbtarget = null, message = 1)
	..()
	if(user.sizeplay_size == 1)
		if(user.get_active_hand() == src)
			user.Weaken(3)
			user.visible_message("<span class='danger'>[user] is knocked over by the recoil of [src]!</span>", "<span class='userdanger'>The recoil knocks you over!</span>")
			if(heavy_weapon)
				user.take_organ_damage(5)

/obj/item/weapon/gun/projectile/shotgun/shoot_live_shot(mob/living/user as mob|obj, pointblank = 0, mob/pbtarget = null, message = 1)
	..()
	if(user.sizeplay_size == 1)
		if(user.get_active_hand() == src)
			user.Weaken(3)
			user.visible_message("<span class='danger'>[user] is knocked over by the recoil of [src]!</span>", "<span class='userdanger'>The recoil knocks you over!</span>")
			user.take_organ_damage(5)
			if(heavy_weapon)
				user.take_organ_damage(10)
{'fraction_non_alphanumeric': 0.16959511077158135, 'fraction_numerical': 0.0142602495543672, 'mean_word_length': 3.654028436018957, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5966904', 'n_tokens_mistral': 1668, 'n_tokens_neox': 1548, 'n_words': 281}