ports all the tg junk for icemoon, not yet changed to make it all compile

This commit is contained in:
Detective Google
2020-04-24 00:02:03 -05:00
parent f714403d6e
commit 71be8ed2fc
85 changed files with 267915 additions and 105 deletions
@@ -0,0 +1,55 @@
GLOBAL_LIST_EMPTY(cursed_minds)
/**
* Turns whoever enters into a mob or random person
*
* If mob is chosen, turns the person into a random animal type
* If appearance is chosen, turns the person into a random human with a random species
* This changes name, and changes their DNA as well
* Random species is same as wizard swap event so people don't get killed ex: plasmamen
* Once the spring is used, it cannot be used by the same mind ever again
* After usage, teleports the user back to a random safe turf (so mobs are not killed by ice moon atmosphere)
*
*/
/turf/open/water/cursed_spring
baseturfs = /turf/open/water/cursed_spring
initial_gas_mix = ICEMOON_DEFAULT_ATMOS
/turf/open/water/cursed_spring/Entered(atom/movable/thing, atom/oldLoc)
. = ..()
if(!isliving(thing))
return
var/mob/living/L = thing
if(!L.client)
return
if(GLOB.cursed_minds[L.mind])
return
GLOB.cursed_minds[L.mind] = TRUE
RegisterSignal(L.mind, COMSIG_PARENT_QDELETING, .proc/remove_from_cursed)
var/random_choice = pick("Mob", "Appearance")
switch(random_choice)
if("Mob")
L = wabbajack(L, "animal")
if("Appearance")
var/mob/living/carbon/human/H = wabbajack(L, "humanoid")
randomize_human(H)
var/list/all_species = list()
for(var/stype in subtypesof(/datum/species))
var/datum/species/S = stype
if(initial(S.changesource_flags) & RACE_SWAP)
all_species += stype
var/random_race = pick(all_species)
H.set_species(random_race)
H.dna.unique_enzymes = H.dna.generate_unique_enzymes()
L = H
var/turf/T = find_safe_turf()
L.forceMove(T)
to_chat(L, "<span class='notice'>You blink and find yourself in [get_area_name(T)].</span>")
/**
* Deletes minds from the cursed minds list after their deletion
*
*/
/turf/open/water/cursed_spring/proc/remove_from_cursed(datum/mind/M)
GLOB.cursed_minds -= M
@@ -0,0 +1,33 @@
/obj/machinery/door/keycard/library
name = "wooden door"
desc = "A dusty, scratched door with a thick lock attached."
icon = 'icons/obj/doors/puzzledoor/wood.dmi'
puzzle_id = "library"
open_message = "The door opens with a loud creak."
/obj/item/keycard/library
name = "golden key"
desc = "A dull, golden key."
icon_state = "golden_key"
puzzle_id = "library"
/obj/item/paper/crumpled/bloody/fluff/stations/lavaland/library/warning
name = "ancient note"
info = "<b>Here lies the vast collection of He Who Knows Ten Thousand Things. May all who pursue this knowledge for power be cursed a thousand times.</b>"
/obj/item/paper/crumpled/fluff/stations/lavaland/library/diary
name = "diary entry 13"
info = "It has been a week since the library was buried. I am so hungry that I can barely muster the energy to think, let alone write. The owl is gone."
/obj/item/paper/crumpled/fluff/stations/lavaland/library/diary2
name = "diary entry 18"
info = "I've lost track of time. I lack the strength to even pick up books off the shelves. To think, after all this time spent searching for the library, I will die before I can so much as graze the depth of its knowledge."
/obj/item/feather
name = "feather"
desc = "A dark, wilting feather. It seems as old as time."
icon = 'icons/obj/objects.dmi'
icon_state = "feather"
force = 0
throwforce = 0
w_class = WEIGHT_CLASS_TINY