This commit is contained in:
Geeves
2021-03-01 17:40:59 +02:00
committed by GitHub
parent 0d5ada01c8
commit 714448e714
42 changed files with 307 additions and 497 deletions
+145 -163
View File
@@ -6,53 +6,57 @@
unacidable = 1
simulated = 0
invisibility = 101
var/delete_me = 0
/obj/effect/landmark/New()
..()
var/add_to_landmark_list = TRUE
/obj/effect/landmark/Initialize()
. = ..()
var/do_qdel = do_landmark_action()
if(do_qdel)
return INITIALIZE_HINT_QDEL
if(add_to_landmark_list)
landmarks_list += src
/obj/effect/landmark/Destroy()
landmarks_list -= src
return ..()
/obj/effect/landmark/proc/do_landmark_action()
tag = text("landmark*[]", name)
switch(name) //some of these are probably obsolete
if("monkey")
monkeystart += loc
delete_me = 1
return
return TRUE
if("start")
newplayer_start = get_turf(loc)
delete_me = 1
return
return TRUE
if("JoinLate")
latejoin += loc
delete_me = 1
return
return TRUE
if("KickoffLocation")
kickoffsloc += loc
delete_me = 1
return
return TRUE
if("JoinLateGateway")
latejoin_gateway += loc
delete_me = 1
return
return TRUE
if("JoinLateCryo")
latejoin_cryo += loc
delete_me = 1
return
return TRUE
if("JoinLateCryoCommand")
latejoin_cryo_command += loc
delete_me = 1
return
return TRUE
if("JoinLateCyborg")
latejoin_cyborg += loc
delete_me = 1
return
return TRUE
if("JoinLateMerchant")
latejoin_merchant += loc
delete_me = 1
return
return TRUE
if("prisonwarp")
prisonwarp += loc
delete_me = 1
return
return TRUE
if("Holding Facility")
holdingfacility += loc
if("tdome1")
@@ -65,43 +69,24 @@
tdomeobserve += loc
if("prisonsecuritywarp")
prisonsecuritywarp += loc
delete_me = 1
return
return TRUE
if("xeno_spawn")
xeno_spawn += loc
delete_me = 1
return
return TRUE
if("endgame_exit")
endgame_safespawns += loc
delete_me = 1
return
return TRUE
if("bluespacerift")
endgame_exits += loc
delete_me = 1
return
return TRUE
if("asteroid spawn")
asteroid_spawn += loc
delete_me = 1
return
return TRUE
if("skrell_entry")
dream_entries += loc
delete_me = 1
return
return TRUE
landmarks_list += src
return 1
/obj/effect/landmark/proc/delete()
delete_me = 1
/obj/effect/landmark/Initialize()
. = ..()
if(delete_me)
qdel(src)
/obj/effect/landmark/Destroy()
landmarks_list -= src
return ..()
return FALSE
/obj/effect/landmark/start
name = "start"
@@ -110,146 +95,143 @@
anchored = 1.0
invisibility = 101
/obj/effect/landmark/start/New()
..()
/obj/effect/landmark/start/do_landmark_action()
tag = "start*[name]"
return 1
return FALSE
//Costume spawner landmarks
/obj/effect/landmark/costume/New() //costume spawner, selects a random subclass and disappears
/obj/effect/landmark/costume/do_landmark_action() //costume spawner, selects a random subclass and disappears
var/list/options = typesof(/obj/effect/landmark/costume)
var/PICK= options[rand(1,options.len)]
new PICK(src.loc)
delete_me = 1
var/costume_type = pick(options)
new costume_type(loc)
return TRUE
//SUBCLASSES. Spawn a bunch of items and disappear likewise
/obj/effect/landmark/costume/chicken/New()
new /obj/item/clothing/suit/chickensuit(src.loc)
new /obj/item/clothing/head/chicken(src.loc)
new /obj/item/reagent_containers/food/snacks/egg(src.loc)
delete_me = 1
/obj/effect/landmark/costume/chicken/do_landmark_action()
new /obj/item/clothing/suit/chickensuit(loc)
new /obj/item/clothing/head/chicken(loc)
new /obj/item/reagent_containers/food/snacks/egg(loc)
return TRUE
/obj/effect/landmark/costume/gladiator/New()
new /obj/item/clothing/under/gladiator(src.loc)
new /obj/item/clothing/head/helmet/gladiator(src.loc)
delete_me = 1
/obj/effect/landmark/costume/gladiator/do_landmark_action()
new /obj/item/clothing/under/gladiator(loc)
new /obj/item/clothing/head/helmet/gladiator(loc)
return TRUE
/obj/effect/landmark/costume/madscientist/New()
new /obj/item/clothing/under/gimmick/rank/captain/suit(src.loc)
new /obj/item/clothing/head/flatcap(src.loc)
new /obj/item/clothing/suit/storage/toggle/labcoat(src.loc)
new /obj/item/clothing/glasses/regular(src.loc)
delete_me = 1
/obj/effect/landmark/costume/madscientist/do_landmark_action()
new /obj/item/clothing/under/gimmick/rank/captain/suit(loc)
new /obj/item/clothing/head/flatcap(loc)
new /obj/item/clothing/suit/storage/toggle/labcoat(loc)
new /obj/item/clothing/glasses/regular(loc)
return TRUE
/obj/effect/landmark/costume/elpresidente/New()
new /obj/item/clothing/under/gimmick/rank/captain/suit(src.loc)
new /obj/item/clothing/head/flatcap(src.loc)
new /obj/item/clothing/mask/smokable/cigarette/cigar/havana(src.loc)
new /obj/item/clothing/shoes/jackboots(src.loc)
delete_me = 1
/obj/effect/landmark/costume/elpresidente/do_landmark_action()
new /obj/item/clothing/under/gimmick/rank/captain/suit(loc)
new /obj/item/clothing/head/flatcap(loc)
new /obj/item/clothing/mask/smokable/cigarette/cigar/havana(loc)
new /obj/item/clothing/shoes/jackboots(loc)
return TRUE
/obj/effect/landmark/costume/maid/New()
new /obj/item/clothing/under/skirt/(src.loc)
var/CHOICE = pick( /obj/item/clothing/head/beret , /obj/item/clothing/head/rabbitears )
new CHOICE(src.loc)
new /obj/item/clothing/glasses/sunglasses/blindfold(src.loc)
delete_me = 1
/obj/effect/landmark/costume/maid/do_landmark_action()
new /obj/item/clothing/under/skirt(loc)
var/maid_headwear_type = pick(/obj/item/clothing/head/beret, /obj/item/clothing/head/rabbitears)
new maid_headwear_type(loc)
new /obj/item/clothing/glasses/sunglasses/blindfold(loc) // hollup
return TRUE
/obj/effect/landmark/costume/butler/New()
new /obj/item/clothing/suit/wcoat(src.loc)
new /obj/item/clothing/under/suit_jacket(src.loc)
new /obj/item/clothing/head/that(src.loc)
delete_me = 1
/obj/effect/landmark/costume/butler/do_landmark_action()
new /obj/item/clothing/suit/wcoat(loc)
new /obj/item/clothing/under/suit_jacket(loc)
new /obj/item/clothing/head/that(loc)
return TRUE
/obj/effect/landmark/costume/scratch/New()
new /obj/item/clothing/gloves/white(src.loc)
new /obj/item/clothing/shoes/white(src.loc)
new /obj/item/clothing/under/suit_jacket/white(src.loc)
if (prob(30))
new /obj/item/clothing/head/cueball(src.loc)
delete_me = 1
/obj/effect/landmark/costume/scratch/do_landmark_action()
new /obj/item/clothing/gloves/white(loc)
new /obj/item/clothing/shoes/white(loc)
new /obj/item/clothing/under/suit_jacket/white(loc)
if(prob(30))
new /obj/item/clothing/head/cueball(loc)
return TRUE
/obj/effect/landmark/costume/highlander/New()
new /obj/item/clothing/under/kilt(src.loc)
new /obj/item/clothing/head/beret/red(src.loc)
delete_me = 1
/obj/effect/landmark/costume/highlander/do_landmark_action()
new /obj/item/clothing/under/kilt(loc)
new /obj/item/clothing/head/beret/red(loc)
return TRUE
/obj/effect/landmark/costume/prig/New()
new /obj/item/clothing/suit/wcoat(src.loc)
new /obj/item/clothing/glasses/monocle(src.loc)
var/CHOICE= pick( /obj/item/clothing/head/bowler, /obj/item/clothing/head/that)
new CHOICE(src.loc)
new /obj/item/clothing/shoes/black(src.loc)
new /obj/item/cane(src.loc)
new /obj/item/clothing/under/sl_suit(src.loc)
new /obj/item/clothing/mask/fakemoustache(src.loc)
delete_me = 1
/obj/effect/landmark/costume/prig/do_landmark_action()
new /obj/item/clothing/suit/wcoat(loc)
new /obj/item/clothing/glasses/monocle(loc)
var/hat_path = pick(/obj/item/clothing/head/bowler, /obj/item/clothing/head/that)
new hat_path(loc)
new /obj/item/clothing/shoes/black(loc)
new /obj/item/cane(loc)
new /obj/item/clothing/under/sl_suit(loc)
new /obj/item/clothing/mask/fakemoustache(loc)
return TRUE
/obj/effect/landmark/costume/plaguedoctor/New()
new /obj/item/clothing/suit/bio_suit/plaguedoctorsuit(src.loc)
new /obj/item/clothing/head/plaguedoctorhat(src.loc)
delete_me = 1
/obj/effect/landmark/costume/plaguedoctor/do_landmark_action()
new /obj/item/clothing/suit/bio_suit/plaguedoctorsuit(loc)
new /obj/item/clothing/head/plaguedoctorhat(loc)
return TRUE
/obj/effect/landmark/costume/nightowl/New()
new /obj/item/clothing/under/owl(src.loc)
new /obj/item/clothing/mask/gas/owl_mask(src.loc)
delete_me = 1
/obj/effect/landmark/costume/nightowl/do_landmark_action()
new /obj/item/clothing/under/owl(loc)
new /obj/item/clothing/mask/gas/owl_mask(loc)
return TRUE
/obj/effect/landmark/costume/waiter/New()
new /obj/item/clothing/under/waiter(src.loc)
new /obj/item/clothing/head/rabbitears(src.loc)
new /obj/item/clothing/suit/apron(src.loc)
delete_me = 1
/obj/effect/landmark/costume/waiter/do_landmark_action()
new /obj/item/clothing/under/waiter(loc)
new /obj/item/clothing/head/rabbitears(loc)
new /obj/item/clothing/suit/apron(loc)
return TRUE
/obj/effect/landmark/costume/pirate/New()
new /obj/item/clothing/suit/pirate(src.loc)
var/CHOICE = pick( /obj/item/clothing/head/pirate , /obj/item/clothing/head/bandana/pirate)
new CHOICE(src.loc)
new /obj/item/clothing/glasses/eyepatch(src.loc)
delete_me = 1
/obj/effect/landmark/costume/pirate/do_landmark_action()
new /obj/item/clothing/suit/pirate(loc)
var/hat_path = pick(/obj/item/clothing/head/pirate, /obj/item/clothing/head/bandana/pirate)
new hat_path(loc)
new /obj/item/clothing/glasses/eyepatch(loc)
return TRUE
/obj/effect/landmark/costume/commie/New()
new /obj/item/clothing/head/ushanka/grey(src.loc)
delete_me = 1
/obj/effect/landmark/costume/commie/do_landmark_action()
new /obj/item/clothing/head/ushanka/grey(loc)
return TRUE
/obj/effect/landmark/costume/imperium_monk/New()
new /obj/item/clothing/suit/imperium_monk(src.loc)
if (prob(25))
new /obj/item/clothing/mask/gas/cyborg(src.loc)
delete_me = 1
/obj/effect/landmark/costume/imperium_monk/do_landmark_action()
new /obj/item/clothing/suit/imperium_monk(loc)
if(prob(25))
new /obj/item/clothing/mask/gas/cyborg(loc)
return TRUE
/obj/effect/landmark/costume/holiday_priest/New()
new /obj/item/clothing/suit/holidaypriest(src.loc)
delete_me = 1
/obj/effect/landmark/costume/holiday_priest/do_landmark_action()
new /obj/item/clothing/suit/holidaypriest(loc)
return TRUE
/obj/effect/landmark/costume/marisawizard/fake/New()
new /obj/item/clothing/head/wizard/marisa/fake(src.loc)
new/obj/item/clothing/suit/wizrobe/marisa/fake(src.loc)
delete_me = 1
/obj/effect/landmark/costume/marisawizard/fake/do_landmark_action()
new /obj/item/clothing/head/wizard/marisa/fake(loc)
new/obj/item/clothing/suit/wizrobe/marisa/fake(loc)
return TRUE
/obj/effect/landmark/costume/cutewitch/New()
new /obj/item/clothing/under/sundress(src.loc)
new /obj/item/clothing/head/witchwig(src.loc)
new /obj/item/staff/broom(src.loc)
delete_me = 1
/obj/effect/landmark/costume/cutewitch/do_landmark_action()
new /obj/item/clothing/under/sundress(loc)
new /obj/item/clothing/head/witchwig(loc)
new /obj/item/staff/broom(loc)
return TRUE
/obj/effect/landmark/costume/fakewizard/New()
new /obj/item/clothing/suit/wizrobe/fake(src.loc)
new /obj/item/clothing/head/wizard/fake(src.loc)
new /obj/item/staff/(src.loc)
delete_me = 1
/obj/effect/landmark/costume/fakewizard/do_landmark_action()
new /obj/item/clothing/suit/wizrobe/fake(loc)
new /obj/item/clothing/head/wizard/fake(loc)
new /obj/item/staff(loc)
return TRUE
/obj/effect/landmark/costume/sexyclown/New()
new /obj/item/clothing/mask/gas/sexyclown(src.loc)
new /obj/item/clothing/under/sexyclown(src.loc)
delete_me = 1
/obj/effect/landmark/costume/sexyclown/do_landmark_action()
new /obj/item/clothing/mask/gas/sexyclown(loc)
new /obj/item/clothing/under/sexyclown(loc)
return TRUE
/obj/effect/landmark/costume/sexymime/New()
new /obj/item/clothing/mask/gas/sexymime(src.loc)
new /obj/item/clothing/under/sexymime(src.loc)
delete_me = 1
/obj/effect/landmark/costume/sexymime/do_landmark_action()
new /obj/item/clothing/mask/gas/sexymime(loc)
new /obj/item/clothing/under/sexymime(loc)
return TRUE
/obj/effect/landmark/dungeon_spawn
name = "asteroid spawn"
-21
View File
@@ -1,21 +0,0 @@
/obj/effect/manifest
name = "manifest"
icon = 'icons/mob/screen/generic.dmi'
icon_state = "x"
unacidable = 1//Just to be sure.
/obj/effect/manifest/New()
src.invisibility = 101
return
/obj/effect/manifest/proc/manifest()
var/dat = "<B>Crew Manifest</B>:<BR>"
for(var/mob/living/carbon/human/M in mob_list)
dat += text(" <B>[]</B> - []<BR>", M.name, M.get_assignment())
var/obj/item/paper/P = new /obj/item/paper( src.loc )
P.info = dat
P.name = "paper- 'Crew Manifest'"
//SN src = null
qdel(src)
return