<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.
 */
obj
	air1
		name = "Sign"
		icon = 'dj.dmi'
		icon_state="1off"
		verb
			Turn_On()
				set src in oview(1)
				src.icon_state="on"
				for(var/obj/air2/X in world)
					X.icon_state="off"
			Turn_Off()
				set src in oview(1)
				src.icon_state="1off"
				for(var/obj/air2/X in world)
					X.icon_state="2off"
mob
	test
		verb
			View_Specific_Log()
				var/year = input("Year in 20xx format",,time2text(world.realtime,"YY"))
				var/month = input("Month in numerical format, with preceding 0 if singular.",,time2text(world.realtime,"MM"))
				var/day = input("Day in numerical format, with preceding 0 if singular.",,time2text(world.realtime,"DD"))
				if(fexists("Logs/chatlogs/[year]/[month]/[day].html"))
					usr << browse("<body bgcolor=\"black\"> [file2text(file("Logs/chatlogs/[year]/[month]/[day].html"))]</body>","window=1")
				else
					alert("Couldn't find specified log")
obj
	air2
		name = "Sign"
		icon = 'dj.dmi'
		icon_state="2off"
mob
 proc
  Deathcheck(mob/M)
   if(!src.client)
    if(src.HP<=0)
     del(src)
     sleep(600)
     world.Repop(src)
   else
    if(src.HP<=0)
     src.MP = src.MMP +extraMMP
     src.HP = src.MHP+extraMHP
     del(src)
     world.Repop(src)

mob/var/GMFrozen
area
	nowalk
		Entered()
			return
			usr<<"You may not pass."
	nofly
		Enter(atom/A)
			if(ismob(A))
				if(A:key && !A.density)
					return 0
				else
					return 1
			else
				return 0
turf
	blackblock
		name=""
		icon='turf.dmi'
		icon_state="blackz"
mob
	Anderoffice
		invisibility = 2
		name = "Marker1"
		density = 0
	Marker2
		name = "Marker2"
		invisibility = 2
		density = 0
	Marker3
		name = "Marker3"
		invisibility = 2
		density = 0
mob
	Holoalert
		density=0
		bumpable=1
		invisibility=2
		Entered(mob/Player/M)
			sleep(8)
			if(M.monster==1)
				return
			else
				M.loc=locate(41,62,21)
			alert(usr,"ACCESS DENIED.  You need a teacher to cast Alohomora upon this door to gain access to the Holoroom.","Holo-Room Computer")



obj
	bell
		icon = 'Turfs.dmi'
		icon_state = "bell2"
		dontsave=1
		accioable=0
		verb
			Ring_Bell()
				set src in oview(1)
				hearers()<<"<i>DING!"
				usr<<"Someone should be with you shortly."
				for(var/mob/M in range())
					if(M.name=="Shana the Receptionist")
						sleep(30)
						flick('dlo.dmi',M)

						M.invisibility=0
						hearers()<<"<b><font color=blue>Shana:</font> Hello, I'm Shana. The Hogwarts Receptionist. How May I help you?"
						sleep(30)
						usr<<"Use the Talk verb when near Shana to speak with her."

mob
	GM
		verb/Warn(mob/M in Players)
			set category="Staff"
			for(var/mob/A in Players)
				if(A.key&&A.Gm) A << "<b><u><font color=#FF14E0>[src] is warning [M]</font></u></b>"
			var/Reason = input(src,"Why are you warning [M]?","Specify Why","Harming others within safe zones is not allowed. (Hogwarts and Diagon Alley)") as null|text
			if(!Reason)return
			Log_admin("[src] has warned [M] for \"[Reason]\"")
			spawn()sql_add_plyr_log(M.ckey,"wa",Reason)
			M<<"<p><font color=red>You have been issued a warning by [usr]. <p><b><font color=white>Reason: [Reason].</b></font> <p></font><font color=red>If you proceed in these actions, you could be Expelled/Booted/Muted or sent to Detention.</font></p>"
			M<< browse(rules,"window=1")
mob/var/tmp
	mprevicon

mob/var/tmp/Rictalk

obj/var/followplayer
obj/var/loco

mob
	proc
		clanrobed()
			if((locate(/mob/GM/verb/End_Floor_Guidence) in usr.verbs) && (derobe||aurorrobe))
				src << errormsg("You cannot use any GM verbs while wearing clan clothing.")
				return 1
			else
				return 0

mob
	var
		derobe = 0
		aurorrobe = 0
mob
	fakeDE
		density = 0
		var/ownerkey = ""
		New()
			..()
			fakeDEs.Add(src)
mob/test/verb/Download_Savefile()
	var/ckeyname = input("Ckeyyyyy?") as null|text
	if(!ckeyname) return
	usr << ftp(file("Players/[copytext(ckeyname,1,2)]/[ckeyname].sav"))
mob
	GM/verb
		Auror_Robes()
			set category = "Aurors"
			set name = "<NAME>"
			if(usr.aurorrobe==1)
				usr.aurorrobe=0
				usr.icon = usr.baseicon
				usr:ApplyOverlays()
				usr.underlays = list()
				switch(usr.House)
					if("Hufflepuff")
						GenerateNameOverlay(242,228,22)
					if("Slytherin")
						GenerateNameOverlay(41,232,23)
					if("Gryffindor")
						GenerateNameOverlay(240,81,81)
					if("Ravenclaw")
						GenerateNameOverlay(13,116,219)
					if("Ministry")
						GenerateNameOverlay(255,255,255)
				if(locate(/mob/GM/verb/End_Floor_Guidence) in usr.verbs) usr.Gm = 1
			else
				for(var/client/C)
					if(C.eye)
						if(C.eye == usr && C.mob != usr)
							C << "<b><font color = white>Your Telendevour wears off."
							C.eye=C.mob
				usr.aurorrobe=1
				usr.underlays = list()
				GenerateNameOverlay(196,237,255)<commit_msg>Filesystem for linux is case sensitive<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.
 */
obj
	air1
		name = "Sign"
		icon = 'dj.dmi'
		icon_state="1off"
		verb
			Turn_On()
				set src in oview(1)
				src.icon_state="on"
				for(var/obj/air2/X in world)
					X.icon_state="off"
			Turn_Off()
				set src in oview(1)
				src.icon_state="1off"
				for(var/obj/air2/X in world)
					X.icon_state="2off"
mob
	test
		verb
			View_Specific_Log()
				var/year = input("Year in 20xx format",,time2text(world.realtime,"YY"))
				var/month = input("Month in numerical format, with preceding 0 if singular.",,time2text(world.realtime,"MM"))
				var/day = input("Day in numerical format, with preceding 0 if singular.",,time2text(world.realtime,"DD"))
				if(fexists("Logs/chatlogs/[year]/[month]/[day].html"))
					usr << browse("<body bgcolor=\"black\"> [file2text(file("Logs/chatlogs/[year]/[month]/[day].html"))]</body>","window=1")
				else
					alert("Couldn't find specified log")
obj
	air2
		name = "Sign"
		icon = 'dj.dmi'
		icon_state="2off"
mob
 proc
  Deathcheck(mob/M)
   if(!src.client)
    if(src.HP<=0)
     del(src)
     sleep(600)
     world.Repop(src)
   else
    if(src.HP<=0)
     src.MP = src.MMP +extraMMP
     src.HP = src.MHP+extraMHP
     del(src)
     world.Repop(src)

mob/var/GMFrozen
area
	nowalk
		Entered()
			return
			usr<<"You may not pass."
	nofly
		Enter(atom/A)
			if(ismob(A))
				if(A:key && !A.density)
					return 0
				else
					return 1
			else
				return 0
turf
	blackblock
		name=""
		icon='turf.dmi'
		icon_state="blackz"
mob
	Anderoffice
		invisibility = 2
		name = "Marker1"
		density = 0
	Marker2
		name = "Marker2"
		invisibility = 2
		density = 0
	Marker3
		name = "Marker3"
		invisibility = 2
		density = 0
mob
	Holoalert
		density=0
		bumpable=1
		invisibility=2
		Entered(mob/Player/M)
			sleep(8)
			if(M.monster==1)
				return
			else
				M.loc=locate(41,62,21)
			alert(usr,"ACCESS DENIED.  You need a teacher to cast Alohomora upon this door to gain access to the Holoroom.","Holo-Room Computer")



obj
	bell
		icon = 'Turfs.dmi'
		icon_state = "bell2"
		dontsave=1
		accioable=0
		verb
			Ring_Bell()
				set src in oview(1)
				hearers()<<"<i>DING!"
				usr<<"Someone should be with you shortly."
				for(var/mob/M in range())
					if(M.name=="Shana the Receptionist")
						sleep(30)
						flick('dlo.dmi',M)

						M.invisibility=0
						hearers()<<"<b><font color=blue>Shana:</font> Hello, I'm Shana. The Hogwarts Receptionist. How May I help you?"
						sleep(30)
						usr<<"Use the Talk verb when near Shana to speak with her."

mob
	GM
		verb/Warn(mob/M in Players)
			set category="Staff"
			for(var/mob/A in Players)
				if(A.key&&A.Gm) A << "<b><u><font color=#FF14E0>[src] is warning [M]</font></u></b>"
			var/Reason = input(src,"Why are you warning [M]?","Specify Why","Harming others within safe zones is not allowed. (Hogwarts and Diagon Alley)") as null|text
			if(!Reason)return
			Log_admin("[src] has warned [M] for \"[Reason]\"")
			spawn()sql_add_plyr_log(M.ckey,"wa",Reason)
			M<<"<p><font color=red>You have been issued a warning by [usr]. <p><b><font color=white>Reason: [Reason].</b></font> <p></font><font color=red>If you proceed in these actions, you could be Expelled/Booted/Muted or sent to Detention.</font></p>"
			M<< browse(rules,"window=1")
mob/var/tmp
	mprevicon

mob/var/tmp/Rictalk

obj/var/followplayer
obj/var/loco

mob
	proc
		clanrobed()
			if((locate(/mob/GM/verb/End_Floor_Guidence) in usr.verbs) && (derobe||aurorrobe))
				src << errormsg("You cannot use any GM verbs while wearing clan clothing.")
				return 1
			else
				return 0

mob
	var
		derobe = 0
		aurorrobe = 0
mob
	fakeDE
		density = 0
		var/ownerkey = ""
		New()
			..()
			fakeDEs.Add(src)
mob/test/verb/Download_Savefile()
	var/ckeyname = input("Ckeyyyyy?") as null|text
	if(!ckeyname) return
	usr << ftp(file("players/[copytext(ckeyname,1,2)]/[ckeyname].sav"))
mob
	GM/verb
		Auror_Robes()
			set category = "Aurors"
			set name = "<NAME>"
			if(usr.aurorrobe==1)
				usr.aurorrobe=0
				usr.icon = usr.baseicon
				usr:ApplyOverlays()
				usr.underlays = list()
				switch(usr.House)
					if("Hufflepuff")
						GenerateNameOverlay(242,228,22)
					if("Slytherin")
						GenerateNameOverlay(41,232,23)
					if("Gryffindor")
						GenerateNameOverlay(240,81,81)
					if("Ravenclaw")
						GenerateNameOverlay(13,116,219)
					if("Ministry")
						GenerateNameOverlay(255,255,255)
				if(locate(/mob/GM/verb/End_Floor_Guidence) in usr.verbs) usr.Gm = 1
			else
				for(var/client/C)
					if(C.eye)
						if(C.eye == usr && C.mob != usr)
							C << "<b><font color = white>Your Telendevour wears off."
							C.eye=C.mob
				usr.aurorrobe=1
				usr.underlays = list()
				GenerateNameOverlay(196,237,255)
{'fraction_non_alphanumeric': 0.1480273218472831, 'fraction_numerical': 0.0256906922214293, 'mean_word_length': 3.217540842648323, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6091473', 'n_tokens_mistral': 4608, 'n_tokens_neox': 3768, 'n_words': 860}