<commit_before>/*
 * Copyright  2014 <NAME>
 * Distributed under the GNU Affero General Public License, version 3.
 * Your changes must be made public.
 * For the full license text, see LICENSE.txt.
 */
turf
	bathroomstall
		icon = 'Stall.dmi'
		name = "Stall"
		density = 1
		opacity = 1
		s1
			icon_state = "1"
		s2
			icon_state = "2"
		s3
			icon_state = "3"
		s4
			icon_state = "4"
		s5
			icon_state = "5"
		sink
			icon = 'sink.dmi'
			density = 1
obj
	toilet
		name = "toilet"
		icon = 'toilet.dmi'
		density = 0

		proc
			poop(mob/Player/P)
				if(P.Pooping)
					P.Pooping = 0
					P << infomsg("You feel a lot better.")

		New()
			..()
			loc.density = 0
/area/Diagon_Alley
mob
	var
		WNDone
obj
	var
		rubbleable
		rubble

mob
	var
		rubble
		ClassNotifications = 1 // If set to 1, your window will flash when a class is announced
		EventNotifications = 1
		MonsterMessages = 1
mob
	verb
		resetSettings()
			set name = ".resetSettings"
			var/winset = "butHousechattoggle.is-checked=false;butOOCtoggle.is-checked=false;"
			var/mob/Player/p = src
			if(PMBlock)
				winset += "butPMtoggle.is-checked=true;"
			else
				winset += "butPMtoggle.is-checked=false;"
			if(p.TradeBlock)
				winset += "butTradetoggle.is-checked=true;"
			else
				winset += "butTradetoggle.is-checked=false;"
			if(betamapmode)
				winset += "butMapmodetoggle.is-checked=true;"
				EnableBetaMapMode()
			else
				winset += "butMapmodetoggle.is-checked=false;"
				DisableBetaMapMode()
			if(MonsterMessages)
				winset += "butMonsterMessagestoggle.is-checked=false;"
			else
				winset += "butMonsterMessagestoggle.is-checked=true;"
			if(ClassNotifications)
				winset += "butClassNotificationstoggle.is-checked=false;"
			else
				winset += "butClassNotificationstoggle.is-checked=true;"
			if(EventNotifications)
				winset += "butEventNotificationstoggle.is-checked=false;"
			else
				winset += "butEventNotificationstoggle.is-checked=true;"
			if(p.playSounds)
				winset += "butSoundtoggle.is-checked=false;"
			else
				winset += "butSoundtoggle.is-checked=true;"

			if(autoAFK)
				winset += "butAFKtoggle.is-checked=false;"
			else
				winset += "butAFKtoggle.is-checked=true;"

			if(p.HideQuestTracker)
				winset += "butQuestTrackertoggle.is-checked=true;"
			else
				winset += "butQuestTrackertoggle.is-checked=false;"
			winset += "mnu_Settings.command=.ShowSettings;"
			winset += "mnu_Settings.is-disabled=false;"
			winset += "broLogin.is-visible=false;"
			winset += "map.focus=true;"
			winset(src,null,winset)
		ShowSettings()
			set name = ".ShowSettings"
			winset(src,"winSettings","is-visible=true")
		Soundtoggle()
			set name = ".Soundtoggle"
			if(winget(src,"butSoundtoggle","is-checked") == "true")
				src:playSounds = 0
			else
				src:playSounds = 1
		MonsterMessagestoggle()
			set name = ".MonsterMessagestoggle"
			if(winget(src,"butMonsterMessagestoggle","is-checked") == "true")
				MonsterMessages = 0
			else
				MonsterMessages = 1
		QuestTrackertoggle()
			set name = ".QuestTrackertoggle"
			var/mob/Player/p = src
			if(winget(src,"butQuestTrackertoggle","is-checked") == "true")
				p.HideQuestTracker = TRUE
			else
				p.HideQuestTracker = FALSE
			p.Interface.Update()
		ClassNotificationstoggle()
			set name = ".ClassNotificationstoggle"
			if(winget(src,"butClassNotificationstoggle","is-checked") == "true")
				ClassNotifications = 0
			else
				ClassNotifications = 1
		EventNotificationstoggle()
			set name = ".EventNotificationstoggle"
			if(winget(src,"butEventNotificationstoggle","is-checked") == "true")
				EventNotifications = 0
			else
				EventNotifications = 1
		Housechattoggle()
			set name = ".Housechattoggle"
			if(winget(src,"butHousechattoggle","is-checked") == "true")
				listenhousechat = 0
			else
				listenhousechat = 1
		OOCtoggle()
			set name = ".OOCtoggle"
			if(winget(src,"butOOCtoggle","is-checked") == "true")
				listenooc = 0
			else
				listenooc = 1
		PMtoggle()
			set name = ".PMtoggle"
			if(winget(src,"butPMtoggle","is-checked") == "true")
				src.PMBlock=1
			else
				src.PMBlock=0
		Tradetoggle()
			set name = ".Tradetoggle"
			if(winget(src,"butTradetoggle","is-checked") == "true")
				src:TradeBlock=1
			else
				src:TradeBlock=0

		AFKtoggle()
			set name = ".AFKtoggle"
			if(winget(src,"butAFKtoggle","is-checked") == "true")
				src:autoAFK=0
			else
				src:autoAFK=1

		Mapmodetoggle()
			set name = ".Mapmodetoggle"
			if(winget(src,"butMapmodetoggle","is-checked") == "false")
				DisableBetaMapMode()
			else
				EnableBetaMapMode()
mob/Player/var/HideQuestTracker = TRUE
mob/var/pname
obj/var/pname
obj/var/piconstate

mob/var/PMBlock=0<commit_msg>Quest tracker is now visible by default<commit_after>/*
 * Copyright  2014 <NAME>
 * Distributed under the GNU Affero General Public License, version 3.
 * Your changes must be made public.
 * For the full license text, see LICENSE.txt.
 */
turf
	bathroomstall
		icon = 'Stall.dmi'
		name = "Stall"
		density = 1
		opacity = 1
		s1
			icon_state = "1"
		s2
			icon_state = "2"
		s3
			icon_state = "3"
		s4
			icon_state = "4"
		s5
			icon_state = "5"
		sink
			icon = 'sink.dmi'
			density = 1
obj
	toilet
		name = "toilet"
		icon = 'toilet.dmi'
		density = 0

		proc
			poop(mob/Player/P)
				if(P.Pooping)
					P.Pooping = 0
					P << infomsg("You feel a lot better.")

		New()
			..()
			loc.density = 0
/area/Diagon_Alley
mob
	var
		WNDone
obj
	var
		rubbleable
		rubble

mob
	var
		rubble
		ClassNotifications = 1 // If set to 1, your window will flash when a class is announced
		EventNotifications = 1
		MonsterMessages = 1
mob
	verb
		resetSettings()
			set name = ".resetSettings"
			var/winset = "butHousechattoggle.is-checked=false;butOOCtoggle.is-checked=false;"
			var/mob/Player/p = src
			if(PMBlock)
				winset += "butPMtoggle.is-checked=true;"
			else
				winset += "butPMtoggle.is-checked=false;"
			if(p.TradeBlock)
				winset += "butTradetoggle.is-checked=true;"
			else
				winset += "butTradetoggle.is-checked=false;"
			if(betamapmode)
				winset += "butMapmodetoggle.is-checked=true;"
				EnableBetaMapMode()
			else
				winset += "butMapmodetoggle.is-checked=false;"
				DisableBetaMapMode()
			if(MonsterMessages)
				winset += "butMonsterMessagestoggle.is-checked=false;"
			else
				winset += "butMonsterMessagestoggle.is-checked=true;"
			if(ClassNotifications)
				winset += "butClassNotificationstoggle.is-checked=false;"
			else
				winset += "butClassNotificationstoggle.is-checked=true;"
			if(EventNotifications)
				winset += "butEventNotificationstoggle.is-checked=false;"
			else
				winset += "butEventNotificationstoggle.is-checked=true;"
			if(p.playSounds)
				winset += "butSoundtoggle.is-checked=false;"
			else
				winset += "butSoundtoggle.is-checked=true;"

			if(autoAFK)
				winset += "butAFKtoggle.is-checked=false;"
			else
				winset += "butAFKtoggle.is-checked=true;"

			if(p.HideQuestTracker)
				winset += "butQuestTrackertoggle.is-checked=true;"
			else
				winset += "butQuestTrackertoggle.is-checked=false;"
			winset += "mnu_Settings.command=.ShowSettings;"
			winset += "mnu_Settings.is-disabled=false;"
			winset += "broLogin.is-visible=false;"
			winset += "map.focus=true;"
			winset(src,null,winset)
		ShowSettings()
			set name = ".ShowSettings"
			winset(src,"winSettings","is-visible=true")
		Soundtoggle()
			set name = ".Soundtoggle"
			if(winget(src,"butSoundtoggle","is-checked") == "true")
				src:playSounds = 0
			else
				src:playSounds = 1
		MonsterMessagestoggle()
			set name = ".MonsterMessagestoggle"
			if(winget(src,"butMonsterMessagestoggle","is-checked") == "true")
				MonsterMessages = 0
			else
				MonsterMessages = 1
		QuestTrackertoggle()
			set name = ".QuestTrackertoggle"
			var/mob/Player/p = src
			if(winget(src,"butQuestTrackertoggle","is-checked") == "true")
				p.HideQuestTracker = TRUE
			else
				p.HideQuestTracker = FALSE
			p.Interface.Update()
		ClassNotificationstoggle()
			set name = ".ClassNotificationstoggle"
			if(winget(src,"butClassNotificationstoggle","is-checked") == "true")
				ClassNotifications = 0
			else
				ClassNotifications = 1
		EventNotificationstoggle()
			set name = ".EventNotificationstoggle"
			if(winget(src,"butEventNotificationstoggle","is-checked") == "true")
				EventNotifications = 0
			else
				EventNotifications = 1
		Housechattoggle()
			set name = ".Housechattoggle"
			if(winget(src,"butHousechattoggle","is-checked") == "true")
				listenhousechat = 0
			else
				listenhousechat = 1
		OOCtoggle()
			set name = ".OOCtoggle"
			if(winget(src,"butOOCtoggle","is-checked") == "true")
				listenooc = 0
			else
				listenooc = 1
		PMtoggle()
			set name = ".PMtoggle"
			if(winget(src,"butPMtoggle","is-checked") == "true")
				src.PMBlock=1
			else
				src.PMBlock=0
		Tradetoggle()
			set name = ".Tradetoggle"
			if(winget(src,"butTradetoggle","is-checked") == "true")
				src:TradeBlock=1
			else
				src:TradeBlock=0

		AFKtoggle()
			set name = ".AFKtoggle"
			if(winget(src,"butAFKtoggle","is-checked") == "true")
				src:autoAFK=0
			else
				src:autoAFK=1

		Mapmodetoggle()
			set name = ".Mapmodetoggle"
			if(winget(src,"butMapmodetoggle","is-checked") == "false")
				DisableBetaMapMode()
			else
				EnableBetaMapMode()
mob/Player/var/HideQuestTracker = FALSE
mob/var/pname
obj/var/pname
obj/var/piconstate

mob/var/PMBlock=0
{'fraction_non_alphanumeric': 0.13183520599250936, 'fraction_numerical': 0.009416800428036384, 'mean_word_length': 3.601674052191039, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '1017801', 'n_tokens_mistral': 4058, 'n_tokens_neox': 3326, 'n_words': 627}