mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-23 23:24:55 +01:00
5765f259ef
## About The Pull Request `create_from_ghost` can be called from stuff like... dynamic executing a ruleset, so putting a sleep/user input within it causes problems So I refactored ghost spawns a fair bit, creating a clear delineation between where you can and can't put user input ## Changelog 🆑 Melbert fix: Pirates will no longer randomly spawn as human fix: Servant Golems have numbered names again refactor: Refactored ghost spawns (like spider eggs or pirate spawners), report any oddities /🆑
106 lines
4.7 KiB
Plaintext
106 lines
4.7 KiB
Plaintext
/obj/effect/mob_spawn/ghost_role/human/virtual_domain
|
|
outfit = /datum/outfit/virtual_pirate
|
|
prompt_name = "a virtual domain debug entity"
|
|
flavour_text = "You probably shouldn't be seeing this, contact a coder!"
|
|
you_are_text = "You are NOT supposed to be here. How did you let this happen?"
|
|
important_text = "Bitrunning is a crime, and your primary threat."
|
|
temp_body = TRUE
|
|
///Does this bit-entity get an antag datum with the goal of hunting bitrunners? TRUE by default
|
|
var/antag = TRUE
|
|
|
|
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/special(mob/living/spawned_mob, mob/mob_possessor, apply_prefs)
|
|
var/datum/mind/ghost_mind = mob_possessor.mind
|
|
if(ghost_mind) // Preserves any previous bodies before making the switch
|
|
spawned_mob.AddComponent(/datum/component/temporary_body, ghost_mind, ghost_mind.current, TRUE)
|
|
|
|
..()
|
|
|
|
if(antag)
|
|
spawned_mob.mind.add_antag_datum(/datum/antagonist/domain_ghost_actor)
|
|
spawned_mob.mind.set_assigned_role(SSjob.get_job_type(/datum/job/bitrunning_glitch))
|
|
|
|
/// Simulates a ghost role spawn without calling special(), ie a bitrunner spawn instead of a ghost.
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/proc/artificial_spawn(mob/living/runner)
|
|
SEND_SIGNAL(src, COMSIG_BITRUNNER_SPAWNED, runner)
|
|
|
|
//Beach Bums (Friendly)
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/beach
|
|
prompt_name = "a virtual beach bum"
|
|
name = "virtual beach bum sleeper"
|
|
you_are_text = "You're, like, totally a virtual simulation of a dudebro, bruh."
|
|
flavour_text = "Ch'yea. You came here, like, on spring break, hopin' to pick up some bangin' hot e-chicks, y'knaw?"
|
|
important_text = "You have no qualms with Bitrunning: in fact, you aren't even aware you're in a simulation."
|
|
outfit = /datum/outfit/beachbum
|
|
spawner_job_path = /datum/job/beach_bum
|
|
antag = FALSE
|
|
allow_custom_character = GHOSTROLE_TAKE_PREFS_APPEARANCE
|
|
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/beach/lifeguard
|
|
name = "virtual lifeguard sleeper"
|
|
you_are_text = "You are a spunky virtual lifeguard!"
|
|
flavour_text = "It's up to you to make sure nobody lags or gets eaten by malware and stuff."
|
|
outfit = /datum/outfit/beachbum/lifeguard
|
|
allow_custom_character = NONE
|
|
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/beach/lifeguard/special(mob/living/carbon/human/lifeguard, mob/mob_possessor, apply_prefs)
|
|
. = ..()
|
|
lifeguard.gender = FEMALE
|
|
lifeguard.update_body()
|
|
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/beach/bartender
|
|
name = "virtual bartender sleeper"
|
|
you_are_text = "You are a virtual beach bartender!"
|
|
flavour_text = "Your job is to keep the virtually rendered drinks coming, and help the dudebros engage drunkness simulations."
|
|
outfit = /datum/outfit/spacebartender
|
|
allow_custom_character = ALL
|
|
|
|
//Skeleton Pirates
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/pirate
|
|
name = "Virtual Pirate Remains"
|
|
desc = "Some inanimate bones. They feel like they could spring to life at any moment!"
|
|
density = FALSE
|
|
icon = 'icons/effects/blood.dmi'
|
|
icon_state = "remains"
|
|
prompt_name = "a virtual skeleton pirate"
|
|
you_are_text = "You are a virtual pirate. Yarrr!"
|
|
flavour_text = " There's a LANDLUBBER after yer booty. Stop them!"
|
|
|
|
/datum/outfit/virtual_pirate
|
|
name = "Virtual Pirate"
|
|
id = /obj/item/card/id/advanced
|
|
id_trim = /datum/id_trim/pirate
|
|
uniform = /obj/item/clothing/under/costume/pirate
|
|
suit = /obj/item/clothing/suit/costume/pirate/armored
|
|
glasses = /obj/item/clothing/glasses/eyepatch
|
|
head = /obj/item/clothing/head/costume/pirate/bandana/armored
|
|
shoes = /obj/item/clothing/shoes/pirate/armored
|
|
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/pirate/special(mob/living/spawned_mob, mob/mob_possessor, apply_prefs)
|
|
. = ..()
|
|
spawned_mob.fully_replace_character_name(spawned_mob.real_name, "[pick(strings(PIRATE_NAMES_FILE, "generic_beginnings"))][pick(strings(PIRATE_NAMES_FILE, "generic_endings"))]")
|
|
|
|
//Syndicate
|
|
/obj/effect/mob_spawn/ghost_role/human/virtual_domain/syndie
|
|
name = "Virtual Syndicate Sleeper"
|
|
icon = 'icons/obj/machines/sleeper.dmi'
|
|
icon_state = "sleeper_s"
|
|
prompt_name = "a virtual syndicate operative"
|
|
you_are_text = "You are a virtual syndicate operative."
|
|
flavour_text = "Alarms blare! We are being boarded!"
|
|
outfit = /datum/outfit/virtual_syndicate
|
|
spawner_job_path = /datum/job/space_syndicate
|
|
|
|
/datum/outfit/virtual_syndicate
|
|
name = "Virtual Syndie"
|
|
id = /obj/item/card/id/advanced/chameleon
|
|
id_trim = /datum/id_trim/chameleon/operative
|
|
uniform = /obj/item/clothing/under/syndicate
|
|
back = /obj/item/storage/backpack
|
|
gloves = /obj/item/clothing/gloves/tackler/combat/insulated
|
|
shoes = /obj/item/clothing/shoes/combat
|
|
implants = list(/obj/item/implant/weapons_auth)
|
|
|
|
/datum/outfit/virtual_syndicate/post_equip(mob/living/carbon/human/user, visuals_only)
|
|
user.faction |= ROLE_SYNDICATE
|