<commit_before>/obj/item/mounted/frame
	name = "mountable frame"
	desc = "Place it on a wall."
	var/sheets_refunded = 2
	var/list/mount_reqs = list() //can contain simfloor, nospace. Used in try_build to see if conditions are needed, then met

/obj/item/mounted/frame/attackby(obj/item/weapon/W, mob/user)
	..()
	if (istype(W, /obj/item/weapon/wrench) && sheets_refunded)
		//new /obj/item/stack/sheet/metal( get_turf(src.loc), sheets_refunded )
		var/obj/item/stack/sheet/metal/M = getFromPool(/obj/item/stack/sheet/metal, get_turf(src))
		M.amount = sheets_refunded
		qdel(src)

/obj/item/mounted/frame/try_build(turf/on_wall, mob/user)
	if(..()) //if we pass the parent tests
		var/turf/turf_loc = get_turf(user)

		if (src.mount_reqs.Find("simfloor") && !istype(turf_loc, /turf/simulated/floor))
			user << "<span class='rose'>[src] cannot be placed on this spot.</span>"
			return
		if (src.mount_reqs.Find("nospace") && (areaMaster.requires_power == 0 || istype(areaMaster,/area/space)))
			user << "<span class='rose'>[src] cannot be placed in this area.</span>"
			return
		return 1<commit_msg>Fixes mountable frames checking their area wrong<commit_after>/obj/item/mounted/frame
	name = "mountable frame"
	desc = "Place it on a wall."
	var/sheets_refunded = 2
	var/list/mount_reqs = list() //can contain simfloor, nospace. Used in try_build to see if conditions are needed, then met

/obj/item/mounted/frame/attackby(obj/item/weapon/W, mob/user)
	..()
	if (istype(W, /obj/item/weapon/wrench) && sheets_refunded)
		//new /obj/item/stack/sheet/metal( get_turf(src.loc), sheets_refunded )
		var/obj/item/stack/sheet/metal/M = getFromPool(/obj/item/stack/sheet/metal, get_turf(src))
		M.amount = sheets_refunded
		qdel(src)

/obj/item/mounted/frame/try_build(turf/on_wall, mob/user)
	if(..()) //if we pass the parent tests
		var/turf/turf_loc = get_turf(user)

		if (src.mount_reqs.Find("simfloor") && !istype(turf_loc, /turf/simulated/floor))
			user << "<span class='rose'>[src] cannot be placed on this spot.</span>"
			return
		if (src.mount_reqs.Find("nospace"))
			var/area/my_area = turf_loc.loc
			if(!istype(my_area) || (my_area.requires_power == 0 || istype(my_area,/area/space)))
				user << "<span class='rose'>[src] cannot be placed in this area.</span>"
				return
		return 1
{'fraction_non_alphanumeric': 0.15998256320836965, 'fraction_numerical': 0.0026155187445510027, 'mean_word_length': 4.122767857142857, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 11, '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': '2884738', 'n_tokens_mistral': 938, 'n_tokens_neox': 858, 'n_words': 186}