mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 10:35:41 +01:00
[Semi-Modular] Allows ghost roles to use loadouts & quirks (#11175)
* Gives ghost roles loadouts * add quirks * quirk & loadout toggle per spawner
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
the hostile creatures, and the ash drakes swooping down from the cloudless skies, all you can wish for is the feel of soft grass between your toes and \
|
||||
the fresh air of Earth. These thoughts are dispelled by yet another recollection of how you got here... "
|
||||
spawner_job_path = /datum/job/hermit
|
||||
quirks_enabled = TRUE // SKYRAT EDIT ADDITION - ghost role loadouts
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role/human/hermit/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -79,6 +80,7 @@
|
||||
flavour_text = "Ch'yea. You came here, like, on spring break, hopin' to pick up some bangin' hot chicks, y'knaw?"
|
||||
spawner_job_path = /datum/job/beach_bum
|
||||
outfit = /datum/outfit/beachbum
|
||||
quirks_enabled = TRUE // SKYRAT EDIT ADDITION - ghost role loadouts
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role/human/beach/lifeguard
|
||||
you_are_text = "You're a spunky lifeguard!"
|
||||
@@ -271,6 +273,8 @@
|
||||
important_text = "The base is rigged with explosives, DO NOT abandon it or let it fall into enemy hands!"
|
||||
outfit = /datum/outfit/lavaland_syndicate
|
||||
spawner_job_path = /datum/job/lavaland_syndicate
|
||||
loadout_enabled = TRUE // SKYRAT EDIT ADDITION - ghost role loadouts
|
||||
quirks_enabled = TRUE // SKYRAT EDIT ADDITION - ghost role loadouts
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role/human/lavaland_syndicate/special(mob/living/new_spawn)
|
||||
. = ..()
|
||||
|
||||
@@ -134,6 +134,10 @@
|
||||
// SKYRAT EDIT ADDITION
|
||||
/// Do we use a random appearance for this ghost role?
|
||||
var/random_appearance = FALSE
|
||||
/// Can we use our loadout for this role?
|
||||
var/loadout_enabled = FALSE
|
||||
/// Can we use our quirks for this role?
|
||||
var/quirks_enabled = FALSE
|
||||
// SKYRAT EDIT END
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role/Initialize(mapload)
|
||||
@@ -181,6 +185,10 @@
|
||||
var/mob/living/carbon/human/spawned_human = spawned_mob
|
||||
mob_possessor?.client?.prefs?.safe_transfer_prefs_to(spawned_human)
|
||||
spawned_human.dna.update_dna_identity()
|
||||
if(loadout_enabled)
|
||||
SSquirks.AssignQuirks(spawned_human, mob_possessor.client)
|
||||
if(quirks_enabled)
|
||||
spawned_human.equip_outfit_and_loadout(outfit, mob_possessor.client.prefs)
|
||||
// SKYRAT EDIT END
|
||||
if(mob_possessor)
|
||||
spawned_mob.ckey = mob_possessor.ckey
|
||||
|
||||
Reference in New Issue
Block a user