mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-26 10:12:17 +00:00
This commit first and foremost ports the -tg- atom pooling system, and removes the old experimental system entirely. Secondly, this PR modifies the qdel system to use a -tg- lookalike "destroy hint" system, which means that individual objects can tell qdel what to do with them beyond taking care of things they need to delete. This ties into the atom pooling system via a new hint define, QDEL_HINT_PUTINPOOL, which will place the atom in the pool instead of deleting it as per standard. Emitter beams are now fully pooled. Qdel now has semi-compatibility with all datum types, however it is not the same as -tg-'s "Queue everything!" system. It simply passes it through the GC immediately and adds it to the "hard del" lists. This means that reagents can be qdel'ed, but there is no purpose as of yet, as it is more or less the same as just deleting them, with the added effect of adding logs of them being deleted to the garbage collector.
272 lines
7.0 KiB
Plaintext
272 lines
7.0 KiB
Plaintext
/obj/effect/landmark
|
|
name = "landmark"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x2"
|
|
anchored = 1.0
|
|
unacidable = 1
|
|
|
|
/obj/effect/landmark/New()
|
|
|
|
..()
|
|
tag = text("landmark*[]", name)
|
|
invisibility = 101
|
|
|
|
switch(name) //some of these are probably obsolete
|
|
if("shuttle")
|
|
shuttle_z = z
|
|
del(src)
|
|
|
|
if("airtunnel_stop")
|
|
airtunnel_stop = x
|
|
|
|
if("airtunnel_start")
|
|
airtunnel_start = x
|
|
|
|
if("airtunnel_bottom")
|
|
airtunnel_bottom = y
|
|
|
|
if("monkey")
|
|
monkeystart += loc
|
|
del(src)
|
|
if("start")
|
|
newplayer_start += loc
|
|
del(src)
|
|
|
|
if("wizard")
|
|
wizardstart += loc
|
|
del(src)
|
|
|
|
if("JoinLate")
|
|
latejoin += loc
|
|
del(src)
|
|
|
|
if("JoinLateGateway")
|
|
latejoin_gateway += loc
|
|
del(src)
|
|
|
|
if("JoinLateCryo")
|
|
latejoin_cryo += loc
|
|
del(src)
|
|
|
|
if("JoinLateCyborg")
|
|
latejoin_cyborg += loc
|
|
del(src)
|
|
|
|
//prisoners
|
|
if("prisonwarp")
|
|
prisonwarp += loc
|
|
del(src)
|
|
// if("mazewarp")
|
|
// mazewarp += loc
|
|
if("Holding Facility")
|
|
holdingfacility += loc
|
|
if("tdome1")
|
|
tdome1 += loc
|
|
if("tdome2")
|
|
tdome2 += loc
|
|
if("tdomeadmin")
|
|
tdomeadmin += loc
|
|
if("tdomeobserve")
|
|
tdomeobserve += loc
|
|
if("aroomwarp")
|
|
aroomwarp += loc
|
|
|
|
//not prisoners
|
|
if("prisonsecuritywarp")
|
|
prisonsecuritywarp += loc
|
|
del(src)
|
|
|
|
if("blobstart")
|
|
blobstart += loc
|
|
del(src)
|
|
|
|
if("xeno_spawn")
|
|
xeno_spawn += loc
|
|
del(src)
|
|
|
|
if("ninjastart")
|
|
ninjastart += loc
|
|
del(src)
|
|
|
|
if("carpspawn")
|
|
carplist += loc
|
|
|
|
if("voxstart")
|
|
raider_spawn += loc
|
|
|
|
landmarks_list += src
|
|
return 1
|
|
|
|
/obj/effect/landmark/Destroy()
|
|
landmarks_list -= src
|
|
return ..()
|
|
|
|
/obj/effect/landmark/nations
|
|
name = "nations"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x"
|
|
anchored = 1.0
|
|
|
|
/obj/effect/landmark/nations/New()
|
|
..()
|
|
tag = "nations*[name]"
|
|
invisibility = 101
|
|
|
|
return 1
|
|
|
|
/obj/effect/landmark/start
|
|
name = "start"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x"
|
|
anchored = 1.0
|
|
|
|
/obj/effect/landmark/start/New()
|
|
..()
|
|
tag = "start*[name]"
|
|
invisibility = 101
|
|
|
|
return 1
|
|
|
|
//Costume spawner landmarks
|
|
|
|
/obj/effect/landmark/costume/New() //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)
|
|
del(src)
|
|
|
|
//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/weapon/reagent_containers/food/snacks/egg(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/gladiator/New()
|
|
new /obj/item/clothing/under/gladiator(src.loc)
|
|
new /obj/item/clothing/head/helmet/gladiator(src.loc)
|
|
del(src)
|
|
|
|
/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/labcoat/mad(src.loc)
|
|
new /obj/item/clothing/glasses/gglasses(src.loc)
|
|
del(src)
|
|
|
|
/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/cigarette/cigar/havana(src.loc)
|
|
new /obj/item/clothing/shoes/jackboots(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/nyangirl/New()
|
|
new /obj/item/clothing/under/schoolgirl(src.loc)
|
|
new /obj/item/clothing/head/kitty(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/maid/New()
|
|
new /obj/item/clothing/under/blackskirt(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)
|
|
del(src)
|
|
|
|
/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)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/scratch/New()
|
|
new /obj/item/clothing/gloves/color/white(src.loc)
|
|
new /obj/item/clothing/shoes/white(src.loc)
|
|
new /obj/item/clothing/under/scratch(src.loc)
|
|
if (prob(30))
|
|
new /obj/item/clothing/head/cueball(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/highlander/New()
|
|
new /obj/item/clothing/under/kilt(src.loc)
|
|
new /obj/item/clothing/head/beret(src.loc)
|
|
del(src)
|
|
|
|
/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/bowlerhat, /obj/item/clothing/head/that)
|
|
new CHOICE(src.loc)
|
|
new /obj/item/clothing/shoes/black(src.loc)
|
|
new /obj/item/weapon/cane(src.loc)
|
|
new /obj/item/clothing/under/sl_suit(src.loc)
|
|
new /obj/item/clothing/mask/fakemoustache(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/plaguedoctor/New()
|
|
new /obj/item/clothing/suit/bio_suit/plaguedoctorsuit(src.loc)
|
|
new /obj/item/clothing/head/plaguedoctorhat(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/nightowl/New()
|
|
new /obj/item/clothing/under/owl(src.loc)
|
|
new /obj/item/clothing/mask/gas/owl_mask(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/waiter/New()
|
|
new /obj/item/clothing/under/waiter(src.loc)
|
|
var/CHOICE= pick( /obj/item/clothing/head/kitty, /obj/item/clothing/head/rabbitears)
|
|
new CHOICE(src.loc)
|
|
new /obj/item/clothing/suit/apron(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/pirate/New()
|
|
new /obj/item/clothing/under/pirate(src.loc)
|
|
new /obj/item/clothing/suit/pirate_black(src.loc)
|
|
var/CHOICE = pick( /obj/item/clothing/head/pirate , /obj/item/clothing/head/bandana )
|
|
new CHOICE(src.loc)
|
|
new /obj/item/clothing/glasses/eyepatch(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/commie/New()
|
|
new /obj/item/clothing/under/soviet(src.loc)
|
|
new /obj/item/clothing/head/ushanka(src.loc)
|
|
del(src)
|
|
|
|
/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)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/holiday_priest/New()
|
|
new /obj/item/clothing/suit/holidaypriest(src.loc)
|
|
del(src)
|
|
|
|
/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)
|
|
del(src)
|
|
|
|
/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/weapon/twohanded/staff/broom(src.loc)
|
|
del(src)
|
|
|
|
/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/weapon/twohanded/staff/(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/sexyclown/New()
|
|
new /obj/item/clothing/mask/gas/sexyclown(src.loc)
|
|
new /obj/item/clothing/under/sexyclown(src.loc)
|
|
del(src)
|
|
|
|
/obj/effect/landmark/costume/sexymime/New()
|
|
new /obj/item/clothing/mask/gas/sexymime(src.loc)
|
|
new /obj/item/clothing/under/sexymime(src.loc)
|
|
del(src) |