diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 853191a4d7d..1b0503faad6 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -971,14 +971,11 @@ datum/mind current.mind.spell_list.Cut() message_admins("[key_name_admin(usr)] has de-shadowling'ed [current].") log_admin("[key_name(usr)] has de-shadowling'ed [current].") - current.verbs -= /mob/living/carbon/human/proc/shadowling_hatch - current.verbs -= /mob/living/carbon/human/proc/shadowling_ascendance + remove_spell(/obj/effect/proc_holder/spell/wizard/targeted/shadowling_hatch) + remove_spell(/obj/effect/proc_holder/spell/wizard/targeted/shadowling_ascend) current.remove_language("Shadowling Hivemind") else if(src in ticker.mode.shadowling_thralls) - ticker.mode.shadowling_thralls -= src - special_role = null - current.remove_language("Shadowling Hivemind") - current << "You have been brainwashed! You are no longer a thrall!" + ticker.mode.remove_thrall(src,0) message_admins("[key_name_admin(usr)] has de-thrall'ed [current].") log_admin("[key_name(usr)] has de-thrall'ed [current].") if("shadowling") @@ -987,9 +984,9 @@ datum/mind return ticker.mode.shadows += src special_role = "Shadowling" - current << "You notice a brightening around you. No, it isn't that. The shadows grow, darken, swirl. The darkness has a new welcome for you, and you realize with a \ - start that you can't be human. No, you are a shadowling, a harbringer of the shadows! Your alien abilities have been unlocked from within, and you may both commune with your allies and use \ - a chrysalis to reveal your true form. You are to ascend at all costs." + current << "Something stirs deep in your mind. A red light floods your vision, and slowly you remember. Though your human disguise has served you well, the \ + time is nigh to cast it off and enter your true form. You have disguised yourself amongst the humans, but you are not one of them. You are a shadowling, and you are to ascend at all costs.\ + " ticker.mode.finalize_shadowling(src) ticker.mode.update_shadow_icons_added(src) if("thrall") @@ -997,10 +994,6 @@ datum/mind usr << "This only works on humans!" return ticker.mode.add_thrall(src) - special_role = "Shadowling Thrall" - current << "All at once it becomes clear to you. Where others see darkness, you see an ally. You realize that the shadows are not dead and dark as one would think, but \ - living, and breathing, and eating. Their children, the Shadowlings, are to be obeyed and protected at all costs." - current << "You may use the Hivemind Commune ability to communicate with your fellow enlightened ones." message_admins("[key_name_admin(usr)] has thrall'ed [current].") log_admin("[key_name(usr)] has thrall'ed [current].") diff --git a/code/modules/mob/living/simple_animal/ascendant_shadowling.dm b/code/game/gamemodes/shadowling/ascendant_shadowling.dm similarity index 65% rename from code/modules/mob/living/simple_animal/ascendant_shadowling.dm rename to code/game/gamemodes/shadowling/ascendant_shadowling.dm index 9445db7592c..b57a75d9bf2 100644 --- a/code/modules/mob/living/simple_animal/ascendant_shadowling.dm +++ b/code/game/gamemodes/shadowling/ascendant_shadowling.dm @@ -1,9 +1,10 @@ /mob/living/simple_animal/ascendant_shadowling - name = "Ascendant Shadowling" + name = "ascendant shadowling" desc = "A large, floating eldritch horror. It has pulsing markings all about its body and large horns. It seems to be floating without any form of support." icon = 'icons/mob/mob.dmi' icon_state = "shadowling_ascended" icon_living = "shadowling_ascended" + speak = list("Azima'dox", "Mahz'kavek", "N'ildzak", "Kaz'vadosh") speak_emote = list("telepathically thunders", "telepathically booms") force_threshold = INFINITY //Can't die by normal means health = 100000 @@ -13,21 +14,29 @@ see_in_dark = 8 see_invisible = SEE_INVISIBLE_MINIMUM + universal_speak = 1 + response_help = "stares at" response_disarm = "flails at" response_harm = "flails at" harm_intent_damage = 0 - melee_damage_lower = 35 - melee_damage_upper = 35 - attacktext = "claws at" + melee_damage_lower = 60 //Was 35, buffed + melee_damage_upper = 60 + attacktext = "rends" attack_sound = 'sound/weapons/slash.ogg' minbodytemp = 0 maxbodytemp = INFINITY - environment_smash = 2 + environment_smash = 3 faction = list("faithless") /mob/living/simple_animal/ascendant_shadowling/Process_Spacemove(var/movement_dir = 0) return 1 //copypasta from carp code + +/mob/living/simple_animal/ascendant_shadowling/ex_act(severity) + return //You think an ascendant can be hurt by bombs? HA + +/mob/living/simple_animal/ascendant_shadowling/singularity_act() + return 0 //Well hi, fellow god! How are you today? \ No newline at end of file diff --git a/code/game/gamemodes/shadowling/shadowling.dm b/code/game/gamemodes/shadowling/shadowling.dm index c1acd926c97..3d85f9ae4f9 100644 --- a/code/game/gamemodes/shadowling/shadowling.dm +++ b/code/game/gamemodes/shadowling/shadowling.dm @@ -46,6 +46,7 @@ Made by Xhuis var/required_thralls = 15 //How many thralls are needed (hardcoded for now) var/shadowling_ascended = 0 //If at least one shadowling has ascended var/shadowling_dead = 0 //is shadowling kill + var/objective_explanation /proc/is_thrall(var/mob/living/M) @@ -85,7 +86,7 @@ Made by Xhuis if(!possible_shadowlings.len) return 0 - var/shadowlings = 2 //How many shadowlings there are; hardcoded to 2 + var/shadowlings = max(2, round(num_players()/10)) //How many shadowlings there are; hardcoded to 2 while(shadowlings) var/datum/mind/shadow = pick(possible_shadowlings) @@ -124,7 +125,7 @@ Made by Xhuis var/objective = "enthrall" //may be devour later, but for now it seems murderbone-y if(objective == "enthrall") - var/objective_explanation = "Ascend to your true form by use of the Ascendance ability. This may only be used with [required_thralls] collective thralls, while hatched, and is unlocked with the Collective Mind ability." + objective_explanation = "Ascend to your true form by use of the Ascendance ability. This may only be used with [required_thralls] collective thralls, while hatched, and is unlocked with the Collective Mind ability." shadow_objectives += "enthrall" shadow_mind.memory += "Objective #1: [objective_explanation]" shadow_mind.current << "Objective #1: [objective_explanation]
" @@ -132,8 +133,8 @@ Made by Xhuis /datum/game_mode/proc/finalize_shadowling(var/datum/mind/shadow_mind) var/mob/living/carbon/human/S = shadow_mind.current - shadow_mind.current.verbs += /mob/living/carbon/human/proc/shadowling_hatch - S.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/enthrall) + shadow_mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadowling_hatch) + shadow_mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/enthrall) spawn(0) shadow_mind.current.add_language("Shadowling Hivemind") update_shadow_icons_added(shadow_mind) @@ -143,20 +144,53 @@ Made by Xhuis shadow_mind.current.hud_updateflag |= (1 << SPECIALROLE_HUD) /datum/game_mode/proc/add_thrall(datum/mind/new_thrall_mind) - if (!istype(new_thrall_mind)) + if(!istype(new_thrall_mind)) return 0 if(!(new_thrall_mind in shadowling_thralls)) shadowling_thralls += new_thrall_mind + new_thrall_mind.special_role = "shadowling thrall" update_shadow_icons_added(new_thrall_mind) new_thrall_mind.current.attack_log += "\[[time_stamp()]\] Became a thrall" - new_thrall_mind.memory += "The Shadowlings' Objectives: Ascend to your true form by use of the Ascendance ability. \ - This may only be used with [required_thralls] collective thralls, while hatched, and is unlocked with the Collective Mind ability." - new_thrall_mind.current << "The objectives of your shadowlings:: Ascend to your true form by use of the Ascendance ability. \ - This may only be used with [required_thralls] collective thralls, while hatched, and is unlocked with the Collective Mind ability." new_thrall_mind.current.add_language("Shadowling Hivemind") + new_thrall_mind.current.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/lesser_glare) + new_thrall_mind.current.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/lesser_shadow_walk) + //new_thrall_mind.current.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/thrall_vision) //Uncomment when vision code is unfucked. + new_thrall_mind.current << "You see the truth. Reality has been torn away and you realize what a fool you've been." + new_thrall_mind.current << "The shadowlings are your masters. Serve them above all else and ensure they complete their goals." + new_thrall_mind.current << "You may not harm other thralls or the shadowlings. However, you do not need to obey other thralls." + new_thrall_mind.current << "Your body has been irreversibly altered. The attentive can see this - you may conceal it by wearing a mask." + new_thrall_mind.current << "Though not nearly as powerful as your masters, you possess some weak powers. These can be found in the Thrall Abilities tab." + new_thrall_mind.current << "You may communicate with your allies by speaking in the Shadowling Hivemind (:8)." + new_thrall_mind.current.hud_updateflag |= (1 << SPECIALROLE_HUD) return 1 +/datum/game_mode/proc/remove_thrall(datum/mind/thrall_mind, var/kill = 0) + if(!istype(thrall_mind) || !(thrall_mind in thralls) || !isliving(thrall_mind.current)) + return 0 //If there is no mind, the mind isn't a thrall, or the mind's mob isn't alive, return + thralls.Remove(thrall_mind) + thrall_mind.current.attack_log += "\[[time_stamp()]\] Dethralled" + thrall_mind.special_role = null + update_shadow_icons_removed(thrall_mind) + thrall_mind.remove_spell(/obj/effect/proc_holder/spell/wizard/targeted/lesser_glare) + thrall_mind.remove_spell(/obj/effect/proc_holder/spell/wizard/targeted/lesser_shadow_walk) + //thrall_mind.remove_spell(/obj/effect/proc_holder/spell/targeted/thrall_vision) //uncomment when vision code is unfucked. + thrall_mind.current.remove_language("Shadowling Hivemind") + if(kill && ishuman(thrall_mind.current)) //If dethrallization surgery fails, kill the mob as well as dethralling them + var/mob/living/carbon/human/H = thrall_mind.current + H.visible_message("[H] jerks violently and falls still.", \ + "A piercing white light floods your mind, banishing your memories as a thrall and--") + H.death() + return 1 + var/mob/living/M = thrall_mind.current + if(issilicon(M)) + M.audible_message("[M] lets out a short blip.", \ + "You have been turned into a robot! You are no longer a thrall! Though you try, you cannot remember anything about your servitude...") + else + M.visible_message("[M] looks like their mind is their own again!", \ + "A piercing white light floods your eyes. Your mind is your own again! Though you try, you cannot remember anything about the shadowlings or your time \ + under their command...") + return 1 /* @@ -192,7 +226,7 @@ Made by Xhuis else if(shadowling_dead && !check_shadow_victory()) //If the shadowlings have ascended, they can not lose the round world << "The shadowlings have been killed by the crew!" else if(!check_shadow_victory() && emergency_shuttle.returned()) - world << "The crew has escaped the station before the shadowlings could ascend!" + world << "The crew escaped the station before the shadowlings could ascend!" ..() return 1 diff --git a/code/game/gamemodes/shadowling/shadowling_abilities.dm b/code/game/gamemodes/shadowling/shadowling_abilities.dm index 5704bb08eb1..09f089d1400 100644 --- a/code/game/gamemodes/shadowling/shadowling_abilities.dm +++ b/code/game/gamemodes/shadowling/shadowling_abilities.dm @@ -4,6 +4,7 @@ panel = "Shadowling Abilities" charge_max = 300 clothes_req = 0 + action_icon_state = "glare" /obj/effect/proc_holder/spell/wizard/targeted/glare/cast(list/targets) for(var/mob/living/carbon/human/target in targets) @@ -18,72 +19,105 @@ charge_counter = charge_max return + var/mob/living/carbon/human/M = target + usr.visible_message("[usr]'s eyes flash a blinding red!") + target.visible_message("[target] freezes in place, their eyes glazing over...") + if(in_range(target, usr)) + target << "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by their heavenly beauty..." + else //Only alludes to the shadowling if the target is close by + target << "Red lights suddenly dance in your vision, and you are mesmerized by the heavenly lights..." + target.Stun(10) + M.silent += 10 + +/obj/effect/proc_holder/spell/wizard/targeted/lesser_glare + name = "Lesser Glare" + desc = "Stuns and mutes a target for a short duration." + panel = "Thrall Abilities" + charge_max = 450 + clothes_req = 0 + action_icon_state = "glare" + +/obj/effect/proc_holder/spell/wizard/targeted/lesser_glare/cast(list/targets) + for(var/mob/living/carbon/human/target in targets) + if(!ishuman(target) || !target) + charge_counter = charge_max + return + if(target.stat) + charge_counter = charge_max + return + if(is_shadow_or_thrall(target)) + usr << "You don't see why you would want to paralyze an ally." + charge_counter = charge_max + return + var/mob/living/carbon/human/M = target usr.visible_message("[usr]'s eyes flash a blinding red!") target.visible_message("[target] freezes in place, their eyes glazing over...") if(in_range(target, usr)) target << "Your gaze is forcibly drawn into [usr]'s eyes, and you are mesmerized by the heavenly lights..." - else //Only alludes to the shadowling if the target is close by - target << "Red lights suddenly dance in your vision, and you are mesmerized by the heavenly lights..." - target.Stun(10) - if(target.reagents) - target.reagents.add_reagent("capulettium_plus", 4) //This is really bad but it's the only way it works. - - + else + target << "Red lights suddenly dance in your vision, and you are mesmerized by their heavenly beauty..." + target.Stun(3) //Roughly 30% as long as the normal one + M.silent += 3 /obj/effect/proc_holder/spell/wizard/aoe_turf/veil name = "Veil" - desc = "Extinguishes all electronic lights in a decent radius." + desc = "Extinguishes most nearby light sources." panel = "Shadowling Abilities" charge_max = 250 //Short cooldown because people can just turn the lights back on clothes_req = 0 range = 5 + var/blacklisted_lights = list(/obj/item/device/flashlight/flare, /obj/item/device/flashlight/slime) + action_icon_state = "veil" -/obj/effect/proc_holder/spell/wizard/aoe_turf/veil/cast(list/targets) - usr << "You silently disable all nearby lights." - var/list/blacklisted_lights = list(/obj/item/device/flashlight/flare, /obj/item/device/flashlight/slime) - for(var/turf/T in targets) - for(var/obj/item/device/flashlight/F in T.contents) - if(is_type_in_list(F, blacklisted_lights)) - F.visible_message("[F] goes slightly dim for a moment.") +/obj/effect/proc_holder/spell/wizard/aoe_turf/veil/proc/extinguishItem(var/obj/item/I) //WARNING NOT SUFFICIENT TO EXTINGUISH AN ITEM HELD BY A MOB + if(istype(I, /obj/item/device/flashlight)) + var/obj/item/device/flashlight/F = I + if(F.on) + if(is_type_in_list(I, blacklisted_lights)) + I.visible_message("[I] dims slightly before scattering the shadows around it.") return F.on = 0 - F.visible_message("[F] gutters and falls dark.") F.update_brightness() + else if(istype(I, /obj/item/device/pda)) + var/obj/item/device/pda/P = I + P.fon = 0 + P.set_light(0) + else if(istype(I, /obj/item/clothing/head/helmet/space/rig)) + var/obj/item/clothing/head/helmet/space/rig/R = I + if(R.on) + R.on = 0 + R.icon_state = "rig[R.on]-[R._color]" + R.visible_message("[R]'s light fades and turns off.") + R.set_light(0) + return I.light_range + +/obj/effect/proc_holder/spell/wizard/aoe_turf/veil/proc/extinguishMob(var/mob/living/H) + for(var/obj/item/F in H) + if(F.light_range > 0) + extinguishItem(F) + +/obj/effect/proc_holder/spell/wizard/aoe_turf/veil/cast(list/targets) + usr << "You silently disable all nearby lights." + for(var/obj/effect/glowshroom/G in orange(2, usr)) //Why the fuck was this in the loop below? + G.visible_message("\The [G] withers away!") + qdel(G) + for(var/turf/T in targets) + for(var/obj/item/F in T.contents) + extinguishItem(F) + for(var/obj/machinery/floodlight/F in T.contents) + F.on = 0 + F.set_light(0) for(var/obj/machinery/light/L in T.contents) L.on = 0 L.visible_message("[L] flickers and falls dark.") L.update(0) - for(var/obj/item/device/pda/P in T.contents) - P.fon = 0 - P.set_light(0) - for(var/obj/effect/glowshroom/G in orange(2, usr)) //Very small radius - G.visible_message("\The [G] withers away!") - qdel(G) + for(var/obj/machinery/computer/C in T.contents) + C.set_light(0) + C.visible_message("[C] grows dim, its screen barely readable.") + for(var/mob/living/H in T.contents) + extinguishMob(H) for(var/mob/living/silicon/robot/borg in T.contents) - borg.update_headlamp(1, charge_max) - for(var/mob/living/carbon/human/H in T.contents) - for(var/obj/item/device/flashlight/F in H) - if(is_type_in_list(F, blacklisted_lights)) - F.visible_message("[F] goes slightly dim for a moment.") - return - F.on = 0 - F.visible_message("[F] gutters and falls dark.") - F.update_brightness() - for(var/obj/item/device/pda/P in H) - P.fon = 0 - P.set_light(0) //failsafe - for(var/obj/item/clothing/head/helmet/space/rig/R in H) - if(R.on) - R.on = 0 - R.icon_state = "rig[R.on]-[R._color]" - H.update_inv_head() - R.visible_message("[R]'s light fades and turns off.") - H.set_light(H.luminosity - R.brightness_on) - R.set_light(0) - if(H != usr) - H << "You feel a chill and are plunged into darkness." - H.luminosity = 0 //This might not be required, but it just acts as another failsafe. - + borg.update_headlamp(1, charge_max) /obj/effect/proc_holder/spell/wizard/targeted/shadow_walk @@ -94,11 +128,12 @@ clothes_req = 0 range = -1 include_user = 1 + action_icon_state = "shadow_walk" /obj/effect/proc_holder/spell/wizard/targeted/shadow_walk/cast(list/targets) for(var/mob/living/user in targets) playsound(user.loc, 'sound/effects/bamf.ogg', 50, 1) - user.visible_message("[user] vanishes into thin air!", "You enter the space between worlds as a passageway.") + user.visible_message("[user] vanishes in a puff of black mist!", "You enter the space between worlds as a passageway.") user.SetStunned(0) user.SetWeakened(0) user.incorporeal_move = 1 @@ -106,38 +141,89 @@ if(user.buckled) user.buckled.unbuckle() sleep(40) //4 seconds - user.visible_message("[user] appears out of nowhere!", "The pressure becomes too much and you vacate the interdimensional darkness.") + user.visible_message("[user] suddenly manifests!", "The pressure becomes too much and you vacate the interdimensional darkness.") user.incorporeal_move = 0 user.alpha = 255 +/obj/effect/proc_holder/spell/wizard/targeted/lesser_shadow_walk + name = "Guise" + desc = "Wraps your form in shadows, making you harder to see." + panel = "Thrall Abilities" + charge_max = 1200 + clothes_req = 0 + range = -1 + include_user = 1 + action_icon_state = "shadow_walk" +/obj/effect/proc_holder/spell/wizard/targeted/lesser_shadow_walk/cast(list/targets) + for(var/mob/living/user in targets) + var/lumcount = 0 + var/turf/T = get_turf(user) + lumcount = T.get_lumcount()*10 + if(lumcount > 5) + user << "It's too bright to do that!" + charge_counter = charge_max + return + user.visible_message("[user] suddenly fades away!", "You veil yourself in darkness, making you harder to see.") + user.alpha = 20 + sleep(40) + user.visible_message("[user] appears from nowhere!", "Your shadowy guise slips away.") + user.alpha = initial(user.alpha) + +/* +/obj/effect/proc_holder/spell/wizard/targeted/thrall_vision //Uncomment this if we ever update our vision code to not be absolute garbage. + name = "Darksight" + desc = "Gives you night vision." + panel = "Thrall Abilities" + charge_max = 0 + range = -1 + include_user = 1 + clothes_req = 0 + var/active = 0 + +/obj/effect/proc_holder/spell/wizard/targeted/thrall_vision/cast(list/targets) + for(var/mob/living/user in targets) + if(!istype(user) || !ishuman(user)) + return + var/mob/living/carbon/human/H = user + active = !active + if(active) + user << "You shift the nerves in your eyes, allowing you to see in the dark." + H.see_in_dark = 8 + H.dna.species.invis_sight = SEE_INVISIBLE_MINIMUM + else + user << "You return your vision to normal." + H.see_in_dark = 0 + H.dna.species.invis_sight = initial(H.dna.species.invis_sight) +*/ /obj/effect/proc_holder/spell/wizard/aoe_turf/flashfreeze - name = "Flash Freeze" + name = "Icy Veins" desc = "Instantly freezes the blood of nearby people, stunning them and causing burn damage." panel = "Shadowling Abilities" range = 5 charge_max = 1200 clothes_req = 0 + action_icon_state = "icy_veins" /obj/effect/proc_holder/spell/wizard/aoe_turf/flashfreeze/cast(list/targets) - usr << "You freeze the nearby air." + usr << "You freeze the nearby air." playsound(usr.loc, 'sound/effects/ghost2.ogg', 50, 1) for(var/turf/T in targets) - for(var/mob/living/carbon/human/target in T.contents) - if(is_shadow_or_thrall(target)) - if(target == usr) //No message for the user, of course + for(var/mob/living/carbon/M in T.contents) + if(is_shadow_or_thrall(M)) + if(M == usr) //No message for the user, of course continue else - target << "You feel a blast of paralyzingly cold air wrap around you and flow past, but you are unaffected!" + M << "You feel a blast of paralyzingly cold air wrap around you and flow past, but you are unaffected!" continue - target << "You are hit by a blast of paralyzingly cold air and feel goosebumps break out across your body!" - target.Stun(2) - if(target.bodytemperature) - target.bodytemperature -= 200 //Extreme amount of initial cold - if(target.reagents) - target.reagents.add_reagent("frostoil", 15) //Half of a cryosting + M << "You are hit by a blast of paralyzingly cold air and feel goosebumps break out across your body!" + M.Stun(2) + if(M.bodytemperature) + M.bodytemperature -= 200 //Extreme amount of initial cold + if(M.reagents) + M.reagents.add_reagent("frostoil", 15) //Half of a cryosting @@ -146,18 +232,25 @@ name = "Enthrall" desc = "Allows you to enslave a conscious, non-braindead, non-catatonic human to your will. This takes some time to cast." panel = "Shadowling Abilities" - charge_max = 450 + charge_max = 0 clothes_req = 0 range = 1 //Adjacent to user var/enthralling = 0 + action_icon_state = "enthrall" /obj/effect/proc_holder/spell/wizard/targeted/enthrall/cast(list/targets) + var/mob/living/carbon/human/user = usr + listclearnulls(ticker.mode.thralls) + if(ticker.mode.thralls.len >= 5 && (!istype(user.species, /datum/species/shadow/ling))) + user << "With your telepathic abilities suppressed, your human form will not allow you to enthrall any others. Hatch first." + charge_counter = charge_max + return for(var/mob/living/carbon/human/target in targets) if(!in_range(usr, target)) usr << "You need to be closer to enthrall [target]." charge_counter = charge_max return - if(!target.ckey) + if(!target.key || !target.mind) usr << "The target has no mind." charge_counter = charge_max return @@ -174,18 +267,18 @@ charge_counter = charge_max return if(enthralling) - usr << "You are already enthralling!" + usr << "You are already enthralling!" charge_counter = charge_max return enthralling = 1 usr << "This target is valid. You begin the enthralling." - target << "[usr] focuses in concentration. Your head begins to ache." + target << "[usr] stares at you. You feel your head begin to pulse." for(var/progress = 0, progress <= 3, progress++) switch(progress) if(1) usr << "You begin allocating energy for the enthralling." - usr.visible_message("[usr]'s eyes begin to throb a piercing red.") + usr.visible_message("[usr]'s eyes begin to throb a piercing red.") if(2) usr << "You begin the enthralling of [target]." usr.visible_message("[usr] leans over [target], their eyes glowing a deep crimson, and stares into their face.") @@ -194,34 +287,32 @@ sleep(20) if(isloyal(target)) usr << "They are enslaved by Nanotrasen. You begin to shut down the nanobot implant - this will take some time." - usr.visible_message("[usr] halts for a moment, then begins passing its hand over [target]'s body.") - target << "You feel your loyalties begin to weaken!" + usr.visible_message("[usr] halts for a moment, then begins passing its hand over [target]'s body.") + target << "You feel your loyalties begin to weaken!" sleep(150) //15 seconds - not spawn() so the enthralling takes longer usr << "The nanobots composing the loyalty implant have been rendered inert. Now to continue." usr.visible_message("[usr] halts thier hand and resumes staring into [target]'s face.") for(var/obj/item/weapon/implant/loyalty/L in target) if(L && L.implanted) qdel(L) - target << "Your unwavering loyalty to Nanotrasen falters, dims, dies." + target << "Your unwavering loyalty to Nanotrasen falters, dims, dies." if(3) usr << "You begin rearranging [target]'s memories." - usr.visible_message("[usr]'s eyes flare brightly, and a horrible grin begins to spread across [target]'s face...") - target << "Your head cries out. The veil of reality begins to crumple and something evil bleeds through." //Ow the edge + usr.visible_message("[usr]'s eyes flare brightly.") + target << "Your head cries out. The veil of reality begins to crumple and something evil bleeds through." //Ow the edge if(!do_mob(usr, target, 100)) //around 30 seconds total for enthralling, 45 for someone with a loyalty implant usr << "The enthralling has been interrupted - your target's mind returns to its previous state." - target << "Your thoughts become coherent once more. Already you can barely remember what's happened to you." + target << "A spike of pain drives into your head, wiping your memory. You aren't sure what's happened, but you feel a faint sense of revulsion." enthralling = 0 return enthralling = 0 - usr << "You have enthralled [target]!" - target << "You see the Truth. Reality has been torn away and you realize what a fool you've been." - target << "The shadowlings are your masters. Serve them above all else and ensure they complete their goals." - target << "You may not harm other thralls or the shadowlings. However, you do not need to obey other thralls." - target << "You can communicate with the other enlightened ones by using the Shadowling Hivemind (:8) ability." - target.adjustOxyLoss(-200) //In case the shadowling was choking them out + usr << "You have enthralled [target]!" + target.visible_message("[target] looks to have experienced a revelation!", \ + "False faces all dark not real not real not--") + target.setOxyLoss(0) //In case the shadowling was choking them out ticker.mode.add_thrall(target.mind) - target.mind.special_role = "Shadowling Thrall" + target.mind.special_role = "shadowling thrall" /obj/effect/proc_holder/spell/wizard/targeted/collective_mind name = "Collective Hivemind" @@ -233,8 +324,9 @@ include_user = 1 var/blind_smoke_acquired var/screech_acquired - var/drain_thrall_acquired - var/thrall_swap_acquired + var/drainLifeAcquired + var/reviveThrallAcquired + action_icon_state = "collective_mind" /obj/effect/proc_holder/spell/wizard/targeted/collective_mind/cast(list/targets) for(var/mob/living/user in targets) @@ -247,7 +339,7 @@ for(M in living_mob_list) if(is_thrall(M)) thralls++ - M << "You feel hooks sink into your mind and pull." + M << "You feel hooks sink into your mind and pull." if(!do_after(user, 30)) user << "Your concentration has been broken. The mental hooks you have sent out now retract into your mind." @@ -259,21 +351,21 @@ " user.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/blindness_smoke) - if(thralls >= 5 && !drain_thrall_acquired) - drain_thrall_acquired = 1 - user << "The power of your thralls has granted you the Drain Thrall ability. You can now drain nearby thralls to heal yourself." - user.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/drain_thralls) + if(thralls >= 5 && !drainLifeAcquired) + drainLifeAcquired = 1 + user << "The power of your thralls has granted you the Drain Life ability. You can now drain the health of nearby humans to heal yourself." + user.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/drainLife) if(thralls >= 7 && !screech_acquired) screech_acquired = 1 - user << "The power of your thralls has granted you the Sonic Screech ability. This ability will shatter nearby windows and deafen enemies." + user << "The power of your thralls has granted you the Sonic Screech ability. This ability will shatter nearby windows and deafen enemies, plus stunning silicon lifeforms." user.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/unearthly_screech) - if(thralls >= 9 && !thrall_swap_acquired) - thrall_swap_acquired = 1 - user << "The power of your thralls has granted you the Spatial Relocation ability. This will, allow you to instantly swap places with one of your thralls in \ - addition to shattering nearby lights." - user.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/spatial_relocation) + if(thralls >= 9 && !reviveThrallAcquired) + reviveThrallAcquired = 1 + user << "The power of your thralls has granted you the Black Recuperation ability. This will, after a short time, bring a dead thrall completely back to life \ + with no bodily defects." + user.mind.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/reviveThrall if(thralls < victory_threshold) user << "You do not have the power to ascend. You require [victory_threshold] thralls, but only [thralls] living thralls are present." @@ -283,12 +375,16 @@ usr << "You may find Ascendance in the Shadowling Evolution tab." for(M in living_mob_list) if(is_shadow(M)) - M.mind.current.spell_list -= /obj/effect/proc_holder/spell/wizard/targeted/collective_mind - M.mind.current.verbs -= /mob/living/carbon/human/proc/shadowling_hatch //In case a shadowling hasn't hatched - M.mind.current.verbs += /mob/living/carbon/human/proc/shadowling_ascendance + var/obj/effect/proc_holder/spell/wizard/targeted/collective_mind/CM + if(CM in M.mind.spell_list) + M.mind.spell_list -= CM + qdel(CM) + M.mind.remove_spell(/obj/effect/proc_holder/spell/wizard/targeted/shadowling_hatch) + M.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadowling_ascend) if(M == usr) - return - M << "[user.real_name] has coalesced the strength of the thralls. You can draw upon it at any time to ascend." //Tells all the other shadowlings + M << "You project this power to the rest of the shadowlings." + else + M << "[user.real_name] has coalesced the strength of the thralls. You can draw upon it at any time to ascend. (Shadowling Evolution Tab)" //Tells all the other shadowlings @@ -300,6 +396,7 @@ clothes_req = 0 range = -1 include_user = 1 + action_icon_state = "black_smoke" /obj/effect/proc_holder/spell/wizard/targeted/blindness_smoke/cast(list/targets) //Extremely hacky for(var/mob/living/user in targets) @@ -319,7 +416,7 @@ qdel(B) datum/reagent/shadowling_blindness_smoke //Blinds non-shadowlings, heals shadowlings/thralls - name = "!(%@ ERROR )!@$" + name = "odd black liquid" id = "blindness_smoke" description = "<::ERROR::> CANNOT ANALYZE REAGENT <::ERROR::>" color = "#000000" //Complete black (RGB: 0, 0, 0) @@ -331,8 +428,8 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) M << "You breathe in the black smoke, and your eyes burn horribly!" M.eye_blind = 5 if(prob(25)) - M.visible_message("[M] screams and claws at their eyes!") - M.Stun(2) + M.visible_message("[M] claws at their eyes!") + M.Stun(3) else M << "You breathe in the black smoke, and you feel revitalized!" M.heal_organ_damage(2,2) @@ -350,6 +447,7 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) range = 7 charge_max = 300 clothes_req = 0 + action_icon_state = "screech" /obj/effect/proc_holder/spell/wizard/aoe_turf/unearthly_screech/cast(list/targets) usr.audible_message("[usr] lets out a horrible scream!") @@ -370,7 +468,7 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) M.ear_damage += 3 else if(issilicon(target)) var/mob/living/silicon/S = target - S << "ERROR $!(@ ERROR )#^! SENSOR INTERFERENCE DETECTED" + S << "ERROR $!(@ ERROR )#^! SENSORY OVERLOAD \[$(!@#" S << 'sound/misc/interference.ogg' playsound(S, 'sound/machines/warning-buzzer.ogg', 50, 1) var/datum/effect/effect/system/spark_spread/sp = new /datum/effect/effect/system/spark_spread @@ -378,82 +476,101 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) sp.start() S.Weaken(6) for(var/obj/structure/window/W in T.contents) - W.hit(rand(50,100)) + W.hit(rand(80,100)) -/obj/effect/proc_holder/spell/wizard/aoe_turf/drain_thralls - name = "Drain Thralls" - desc = "Damages nearby thralls, draining their life and healing yourself." +/obj/effect/proc_holder/spell/wizard/aoe_turf/drainLife + name = "Drain Life" + desc = "Damages nearby humans, draining their life and healing your own wounds." panel = "Shadowling Abilities" range = 3 charge_max = 100 clothes_req = 0 - var/thralls_drained = 0 - var/list/nearby_thralls = list() + var/targetsDrained + var/list/nearbyTargets + action_icon_state = "drain_life" -/obj/effect/proc_holder/spell/wizard/aoe_turf/drain_thralls/cast(list/targets) - thralls_drained = 0 - nearby_thralls = list() +/obj/effect/proc_holder/spell/wizard/aoe_turf/drainLife/cast(list/targets, var/mob/living/carbon/human/U = usr) + targetsDrained = 0 + nearbyTargets = list() for(var/turf/T in targets) for(var/mob/living/carbon/M in T.contents) - if(is_thrall(M)) - thralls_drained++ - nearby_thralls.Add(M) - M << "You feel a curious draining sensation and a wave of exhaustion washes over you." - for(var/mob/living/carbon/M in nearby_thralls) - nearby_thralls.Remove(M) //To prevent someone dying like a zillion times - M.take_organ_damage(25/thralls_drained,25/thralls_drained) //For every nearby thrall, the damage to each is reduced - 1 thrall = 50 for him, 2 thralls = 25 for each, etc. - usr << "You draw the life from [M] to heal your wounds." - if(thralls_drained) - var/mob/living/carbon/U = usr - U.heal_organ_damage(25, 25) - else + if(M == src) + continue + targetsDrained++ + nearbyTargets.Add(M) + if(!targetsDrained) charge_counter = charge_max - usr << "There were no nearby thralls for you to drain." + usr << "There were no nearby humans for you to drain." + return + for(var/mob/living/carbon/M in nearbyTargets) + U.heal_organ_damage(10, 10) + U.adjustToxLoss(-10) + U.adjustOxyLoss(-10) + U.adjustStaminaLoss(-20) + U.AdjustWeakened(-1) + U.AdjustStunned(-1) + M.adjustOxyLoss(20) + M.adjustStaminaLoss(20) + M << "You feel a wave of exhaustion and a curious draining sensation directed towards [usr]!" + usr << "You draw life from those around you to heal your wounds." -/obj/effect/proc_holder/spell/wizard/targeted/spatial_relocation - name = "Spatial Relocation" - desc = "Swaps places with a thrall and breaks nearby lights." +/obj/effect/proc_holder/spell/wizard/targeted/reviveThrall + name = "Black Recuperation" + desc = "Brings a dead thrall back to life." panel = "Shadowling Abilities" - range = -1 + range = 1 charge_max = 3000 clothes_req = 0 - include_user = 1 + include_user = 0 var/list/thralls_in_world = list() + action_icon_state = "revive_thrall" -/obj/effect/proc_holder/spell/wizard/targeted/spatial_relocation/cast(list/targets, distanceoverride) - for(var/mob/living/carbon/human/M in world) - if(is_thrall(M)) - thralls_in_world += M - if(!thralls_in_world) - charge_counter = charge_max - return - var/mob/living/carbon/thrall_to_swap = input("Who do you wish to swap places with?", "Available Thralls") as null|anything in (thralls_in_world) - var/turf/shadowturf = get_turf(usr) - var/turf/thrallturf = get_turf(thrall_to_swap) - thrall_to_swap.visible_message("[thrall_to_swap] suddenly vanishes in a puff of black smoke!") - thrall_to_swap << "You feel a brief sense of nausea before finding yourself in an entirely new place!" - usr.visible_message("[usr] suddenly goes transparent and vanishes!") - usr << "You experience vertigo as you swap your location with [thrall_to_swap]'s." - thrall_to_swap.loc = shadowturf - usr.loc = thrallturf - thrall_to_swap.Weaken(4) - usr.Weaken(4) - usr.regenerate_icons() - thrall_to_swap.regenerate_icons() +/obj/effect/proc_holder/spell/wizard/targeted/reviveThrall/cast(list/targets) + for(var/mob/living/carbon/human/thrallToRevive in targets) + if(!is_thrall(thrallToRevive)) + usr << "[thrallToRevive] is not a thrall." + charge_counter = charge_max + return + if(thrallToRevive.stat != DEAD) + usr << "[thrallToRevive] is not dead." + charge_counter = charge_max + return + usr.visible_message("[usr] kneels over [thrallToRevive], placing their hands on \his chest.", \ + "You crouch over the body of your thrall and begin gathering energy...") + var/mob/dead/observer/ghost = thrallToRevive.get_ghost() + if(ghost) + ghost << "Your masters are resuscitating you! Return to your corpse if you wish to be brought to life. (Verbs -> Ghost -> Re-enter corpse)" + ghost << 'sound/effects/genetics.ogg' + if(!do_mob(usr, thrallToRevive, 30)) + usr << "Your concentration snaps. The flow of energy ebbs." + charge_counter= charge_max + return + usr << "You release a massive surge of power into [thrallToRevive]!" + usr.visible_message("Red lightning surges from [usr]'s hands into [thrallToRevive]'s chest!") + playsound(thrallToRevive, 'sound/weapons/Egloves.ogg', 50, 1) + playsound(thrallToRevive, 'sound/machines/defib_zap.ogg', 50, 1) + sleep(10) + thrallToRevive.revive() + thrallToRevive.visible_message("[thrallToRevive] draws in a huge breath, blinding violet light shining from their eyes.", \ + "You have returned. One of your masters has brought you from the darkness beyond.") + thrallToRevive.Weaken(4) + thrallToRevive.emote("gasp") + playsound(thrallToRevive, "bodyfall", 50, 1) // ASCENDANT ABILITIES BEYOND THIS POINT // /obj/effect/proc_holder/spell/wizard/targeted/annihilate name = "Annihilate" - desc = "Gibs a human after a short time." + desc = "Gibs someone instantly." panel = "Ascendant" range = 7 - charge_max = 300 + charge_max = 0 clothes_req = 0 + action_icon_state = "annihilate" /obj/effect/proc_holder/spell/wizard/targeted/annihilate/cast(list/targets) var/mob/living/simple_animal/ascendant_shadowling/SHA = usr @@ -462,18 +579,15 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) charge_counter = charge_max return - for(var/mob/living/carbon/human/boom in targets) + for(var/mob/living/boom in targets) if(is_shadow_or_thrall(boom)) usr << "Making an ally explode seems unwise." charge_counter = charge_max return - usr.visible_message("[usr]'s eyes flare as they gesture at [boom]!", \ + usr.visible_message("[usr]'s markings flare as they gesture at [boom]!", \ "You direct a lance of telekinetic energy at [boom].") - boom << "You feel an immense pressure building all across your body!" - boom.Stun(10) - boom.audible_message("[boom] screams!") - sleep(20) - playsound(boom, 'sound/effects/splat.ogg', 100, 1) + playsound(usr, 'sound/effects/supermatter.ogg', 100, 1) + sleep(4) boom.visible_message("[boom] explodes!") boom.gib() @@ -484,8 +598,9 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) desc = "Instantly enthralls a human." panel = "Ascendant" range = 7 - charge_max = 450 + charge_max = 0 clothes_req = 0 + action_icon_state = "enthrall" /obj/effect/proc_holder/spell/wizard/targeted/hypnosis/cast(list/targets) var/mob/living/simple_animal/ascendant_shadowling/SHA = usr @@ -499,7 +614,7 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) usr << "You cannot enthrall an ally." charge_counter = charge_max return - if(!target.ckey) + if(!target.ckey || !target.mind) usr << "The target has no mind." charge_counter = charge_max return @@ -514,12 +629,8 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) usr << "You instantly rearrange [target]'s memories, hyptonitizing them into a thrall." target << "An agonizing spike of pain drives into your mind, and--" - target << "And you see the Truth. Reality has been torn away and you realize what a fool you've been." - target << "The shadowlings are your masters. Serve them above all else and ensure they complete their goals." - target << "You may not harm other thralls or the shadowlings. However, you do not need to obey other thralls." - target << "You can communicate with the other enlightened ones by using the Shadowling Hivemind (:8)." ticker.mode.add_thrall(target.mind) - target.mind.special_role = "Thrall" + target.mind.special_role = "shadowling thrall" target.add_language("Shadowling Hivemind") @@ -532,6 +643,7 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) include_user = 1 charge_max = 15 clothes_req = 0 + action_icon_state = "shadow_walk" /obj/effect/proc_holder/spell/wizard/targeted/shadowling_phase_shift/cast(list/targets) var/mob/living/simple_animal/ascendant_shadowling/SHA = usr @@ -550,56 +662,47 @@ datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) -/obj/effect/proc_holder/spell/wizard/aoe_turf/glacial_blast - name = "Glacial Blast" - desc = "Extremely empowered version of Flash Freeze." +/obj/effect/proc_holder/spell/wizard/aoe_turf/ascendant_storm + name = "Lightning Storm" + desc = "Shocks everyone nearby." panel = "Ascendant" - range = 5 - charge_max = 600 + range = 6 + charge_max = 100 clothes_req = 0 + action_icon_state = "lightning_storm" -/obj/effect/proc_holder/spell/wizard/aoe_turf/glacial_blast/cast(list/targets) +/obj/effect/proc_holder/spell/wizard/aoe_turf/ascendant_storm/cast(list/targets) var/mob/living/simple_animal/ascendant_shadowling/SHA = usr if(SHA.phasing) usr << "You are not in the same plane of existence. Unphase first." + charge_counter = charge_max return - usr << "You freeze the nearby air." - playsound(usr.loc, 'sound/effects/ghost2.ogg', 100, 1) + usr.visible_message("A massive ball of lightning appears in [usr]'s hands and flares out!", \ + "You conjure a ball of lightning and release it.") for(var/turf/T in targets) for(var/mob/living/carbon/human/target in T.contents) if(is_shadow_or_thrall(target)) - if(target == usr) //No message for the user, of course - continue - else - target << "You feel a blast of paralyzingly cold air wrap around you and flow past, but you are unaffected!" - continue - target << "You are hit by a blast of cold unlike anything you have ever felt. Your limbs instantly lock in place and you feel ice burns across your body!" - target.Weaken(15) - if(target.bodytemperature) - target.bodytemperature -= INFINITY //:^) - target.take_organ_damage(0,80) + continue + target << "You are struck by a bolt of lightning!" + playsound(target, 'sound/effects/eleczap.ogg', 50, 1) + target.electrocute_act(80, "lightning bolt") + usr.Beam(target,icon_state="red_lightning",icon='icons/effects/effects.dmi',time=1) - - -/obj/effect/proc_holder/spell/wizard/targeted/vortex - name = "Vortex" - desc = "Tears open a hole in reality. Anyone, INCLUDING YOU, walking through it will be trapped there for eternity." +/obj/effect/proc_holder/spell/wizard/targeted/shadowlingAscendantTransmit + name = "Ascendant Broadcast" + desc = "Sends a message to the whole wide world." panel = "Ascendant" + charge_max = 200 + clothes_req = 0 range = -1 include_user = 1 - charge_max = 1200 - clothes_req = 0 + action_icon_state = "transmit" -/obj/effect/proc_holder/spell/wizard/targeted/vortex/cast(list/targets) - var/mob/living/simple_animal/ascendant_shadowling/SHA = usr - if(SHA.phasing) - usr << "You are not in the same plane of existence. Unphase first." - return - - for(SHA in targets) - SHA.visible_message("[SHA] raises their arms upward as the markings on their body flare a blinding red!", \ - "You tear open a rift to the black space between worlds. It would be wise to avoid it.") - - new /obj/structure/shadow_vortex(SHA.loc) +/obj/effect/proc_holder/spell/wizard/targeted/shadowlingAscendantTransmit/cast(list/targets) + for(var/mob/living/user in targets) + var/text = stripped_input(user, "What do you want to say to everything on and near [station_name()]?.", "Transmit to World", "") + if(!text) + return + world << "\"[text]\"" diff --git a/code/game/gamemodes/shadowling/shadowling_items.dm b/code/game/gamemodes/shadowling/shadowling_items.dm index f3da8bda1bf..e494c7507f0 100644 --- a/code/game/gamemodes/shadowling/shadowling_items.dm +++ b/code/game/gamemodes/shadowling/shadowling_items.dm @@ -98,7 +98,6 @@ /obj/structure/shadow_vortex/Crossed(var/td) ..() if(ismob(td)) - td << "You enter the rift. Sickening chimes begin to jangle in your ears. \ - All around you is endless blackness. After you see something moving, you realize it isn't entirely lifeless." //A bit of spooking before they die + td << "You enter the rift. Deafening chimes jingle in your ears. You are swallowed in darkness." playsound(loc, 'sound/effects/EMPulse.ogg', 25, 1) qdel(td) diff --git a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm index 1f88f350c4c..0116b4f893f 100644 --- a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm +++ b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm @@ -1,166 +1,177 @@ //In here: Hatch and Ascendance +var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "Noaey'gief", "Mii`mahza", "Amerziox", "Gyrg-mylin", "Kanet'pruunance") +/obj/effect/proc_holder/spell/wizard/targeted/shadowling_hatch + name = "Hatch" + desc = "Casts off your disguise." + panel = "Shadowling Evolution" + charge_max = 3000 + clothes_req = 0 + range = -1 + include_user = 1 + action_icon_state = "hatch" -/mob/living/carbon/human/proc/shadowling_hatch() - set category = "Shadowling Evolution" - set name = "Hatch" - - if(usr.stat) +/obj/effect/proc_holder/spell/wizard/targeted/shadowling_hatch/cast(list/targets) + if(usr.stat || !ishuman(usr) || !usr) return - usr.verbs -= /mob/living/carbon/human/proc/shadowling_hatch - switch(alert("Are you sure you want to hatch? You cannot undo this!",,"Yes","No")) - if("No") - usr << "You decide against hatching for now." - usr.verbs += /mob/living/carbon/human/proc/shadowling_hatch - return - if("Yes") - usr.notransform = 1 - usr.visible_message("[usr]'s things suddenly slip off. They hunch over and vomit up a copious amount of purple goo which begins to shape around them!", \ - "You remove any equipment which would hinder your hatching and begin regurgitating the resin which will protect you.") + for(var/mob/living/carbon/human/H in targets) + var/hatch_or_no = alert(H,"Are you sure you want to hatch? You cannot undo this!",,"Yes","No") + switch(hatch_or_no) + if("No") + H << "You decide against hatching for now." + charge_counter = charge_max + return + if("Yes") + H.Stun(INFINITY) //This is bad but notransform won't work. + H.visible_message("[H]'s things suddenly slip off. They hunch over and vomit up a copious amount of purple goo which begins to shape around them!", \ + "You remove any equipment which would hinder your hatching and begin regurgitating the resin which will protect you.") - for(var/obj/item/I in usr) //drops all items - var/obj/item/organ/O = I - if(!istype(O) || O.owner != src) - usr.unEquip(I) + for(var/obj/item/I in H.contents - (H.organs | H.internal_organs)) //drops all items except organs + H.unEquip(I) - sleep(50) - var/turf/simulated/floor/F - var/turf/shadowturf = get_turf(usr) - for(F in orange(1, usr)) - new /obj/structure/alien/resin/wall/shadowling(F) - for(var/obj/structure/alien/resin/wall/shadowling/R in shadowturf) //extremely hacky - qdel(R) - new /obj/structure/alien/weeds/node(shadowturf) //Dim lighting in the chrysalis -- removes itself with the chrysalis + sleep(50) + var/turf/simulated/floor/F + var/turf/shadowturf = get_turf(usr) + for(F in orange(1, usr)) + new /obj/structure/alien/resin/wall/shadowling(F) + for(var/obj/structure/alien/resin/wall/shadowling/R in shadowturf) //extremely hacky + qdel(R) + new /obj/structure/alien/weeds/node(shadowturf) //Dim lighting in the chrysalis -- removes itself afterwards - usr.visible_message("A chrysalis forms around [usr], sealing them inside.", \ - "You create your chrysalis and begin to contort within.") - usr.Weaken(30) - sleep(100) - usr.visible_message("The skin on [usr]'s back begins to split apart. Black spines slowly emerge from the divide.", \ - "Spines pierce your back. Your claws break apart your fingers. You feel excruciating pain as your true form begins its exit.") + H.visible_message("A chrysalis forms around [H], sealing them inside.", \ + "You create your chrysalis and begin to contort within.") + usr.Weaken(30) - sleep(90) - usr.visible_message("[usr], now no longer recognizable as human, begins clawing at the resin walls around them.", \ - "Your false skin slips away. You begin tearing at the fragile membrane protecting you.") + sleep(100) + H.visible_message("The skin on [H]'s back begins to split apart. Black spines slowly emerge from the divide.", \ + "Spines pierce your back. Your claws break apart your fingers. You feel excruciating pain as your true form begins its exit.") - sleep(80) - playsound(usr.loc, 'sound/weapons/slash.ogg', 25, 1) - usr << "You rip and slice." - sleep(10) - playsound(usr.loc, 'sound/weapons/slashmiss.ogg', 25, 1) - usr << "The chrysalis falls like water before you." - sleep(10) - playsound(usr.loc, 'sound/weapons/slice.ogg', 25, 1) - usr << "You are free!" + sleep(90) + H.visible_message("[H], skin shifting, begins tearing at the walls around them.", \ + "Your false skin slips away. You begin tearing at the fragile membrane protecting you.") - sleep(10) - playsound(usr.loc, 'sound/effects/ghost.ogg', 100, 1) - usr.real_name = "Shadowling ([rand(1,1000)])" - usr.name = usr.real_name - usr.notransform = 0 - usr << "YOU LIVE!!!" + sleep(80) + playsound(H.loc, 'sound/weapons/slash.ogg', 25, 1) + H << "You rip and slice." + sleep(10) + playsound(H.loc, 'sound/weapons/slashmiss.ogg', 25, 1) + H << "The chrysalis falls like water before you." + sleep(10) + playsound(H.loc, 'sound/weapons/slice.ogg', 25, 1) + H << "You are free!" - for(var/obj/structure/alien/resin/wall/shadowling/W in orange(usr, 1)) - playsound(W, 'sound/effects/splat.ogg', 50, 1) - qdel(W) - for(var/obj/structure/alien/weeds/node/N in shadowturf) - qdel(N) - usr.visible_message("The chrysalis explodes in a shower of purple flesh and fluid!") - var/mob/living/carbon/human/M = usr - M.underwear = "None" - M.undershirt = "None" - M.faction |= "faithless" + sleep(10) + playsound(H.loc, 'sound/effects/ghost.ogg', 100, 1) + var/newNameId = pick(possibleShadowlingNames) + possibleShadowlingNames.Remove(newNameId) + H.real_name = newNameId + H.name = usr.real_name + H.SetStunned(0) + H << "YOU LIVE!!!" - usr.equip_to_slot_or_del(new /obj/item/clothing/under/shadowling(usr), slot_w_uniform) - usr.equip_to_slot_or_del(new /obj/item/clothing/shoes/shadowling(usr), slot_shoes) - usr.equip_to_slot_or_del(new /obj/item/clothing/suit/space/shadowling(usr), slot_wear_suit) - usr.equip_to_slot_or_del(new /obj/item/clothing/head/shadowling(usr), slot_head) - usr.equip_to_slot_or_del(new /obj/item/clothing/gloves/shadowling(usr), slot_gloves) - usr.equip_to_slot_or_del(new /obj/item/clothing/mask/gas/shadowling(usr), slot_wear_mask) - usr.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/shadowling(usr), slot_glasses) - set_species("Shadowling") + for(var/obj/structure/alien/resin/wall/shadowling/W in orange(H, 1)) + playsound(W, 'sound/effects/splat.ogg', 50, 1) + qdel(W) + for(var/obj/structure/alien/weeds/node/N in shadowturf) + qdel(N) + H.visible_message("The chrysalis explodes in a shower of purple flesh and fluid!") - sleep(10) - usr << "Your powers are awoken. You may now live to your fullest extent. Remember your goal. Cooperate with your thralls and allies." - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/glare) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/veil) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadow_walk) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/flashfreeze) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/collective_mind) + H.underwear = "None" + H.undershirt = "None" + H.faction |= "faithless" + H.equip_to_slot_or_del(new /obj/item/clothing/under/shadowling(usr), slot_w_uniform) + H.equip_to_slot_or_del(new /obj/item/clothing/shoes/shadowling(usr), slot_shoes) + H.equip_to_slot_or_del(new /obj/item/clothing/suit/space/shadowling(usr), slot_wear_suit) + H.equip_to_slot_or_del(new /obj/item/clothing/head/shadowling(usr), slot_head) + H.equip_to_slot_or_del(new /obj/item/clothing/gloves/shadowling(usr), slot_gloves) + H.equip_to_slot_or_del(new /obj/item/clothing/mask/gas/shadowling(usr), slot_wear_mask) + H.equip_to_slot_or_del(new /obj/item/clothing/glasses/night/shadowling(usr), slot_glasses) + H.set_species("Shadowling") + sleep(10) + H << "Your powers are awoken. You may now live to your fullest extent. Remember your goal. Cooperate with your thralls and allies." + H.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadowling_ascend) + H.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/glare) + H.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/veil) + H.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadow_walk) + H.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/flashfreeze) + H.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/collective_mind) + H.mind.remove_spell(src) -/mob/living/carbon/human/proc/shadowling_ascendance() - set category = "Shadowling Evolution" - set name = "Ascendance" +/obj/effect/proc_holder/spell/wizard/targeted/shadowling_ascend + name = "Ascend" + desc = "Enters your true form." + panel = "Shadowling Evolution" + charge_max = 3000 + clothes_req = 0 + range = -1 + include_user = 1 + action_icon_state = "ascend" - if(usr.stat) +/obj/effect/proc_holder/spell/wizard/targeted/shadowling_ascend/cast(list/targets) + if(usr.stat || !ishuman(usr) || !usr) return - usr.verbs -= /mob/living/carbon/human/proc/shadowling_ascendance - switch(alert("It is time to ascend. Are you completely sure about this? You cannot undo this!",,"Yes","No")) - if("No") - usr << "You decide against ascending for now." - usr.verbs += /mob/living/carbon/human/proc/shadowling_ascendance - return - if("Yes") - usr.notransform = 1 - usr.visible_message("[usr] rapidly bends and contorts, their eyes flaring a deep crimson!", \ - "You begin unlocking the genetic vault within you and prepare yourself for the power to come.") + for(var/mob/living/carbon/human/H in targets) + var/hatch_or_no = alert(H,"It is time to ascend. Are you sure about this?",,"Yes","No") + switch(hatch_or_no) + if("No") + H << "You decide against ascending for now." + charge_counter = charge_max + return + if("Yes") + H.notransform = 1 + H.visible_message("[H] gently rises into the air, red light glowing in its eyes.", \ + "You rise into the air and get ready for your transformation.") - sleep(30) - usr.visible_message("[usr] suddenly shoots up a few inches in the air and begins hovering there, still twisting.", \ - "You hover into the air to make room for your new form.") + sleep(50) - sleep(60) - usr.visible_message("[usr]'s skin begins to pulse red in sync with their eyes. Their form slowly expands outward.", \ - "You feel yourself beginning to mutate.") + H.visible_message("[H]'s skin begins to crack and harden.", \ + "Your flesh begins creating a shield around yourself.") - sleep(20) - if(!ticker.mode.shadowling_ascended) - usr << "It isn't enough. Time to draw upon your thralls." - else - usr << "After some telepathic searching, you find the reservoir of life energy from the thralls and tap into it." + sleep(100) + H.visible_message("The small horns on [H]'s head slowly grow and elongate.", \ + "Your body continues to mutate. Your telepathic abilities grow.") //y-your horns are so big, senpai...!~ - sleep(50) - for(var/mob/M in mob_list) - if(is_thrall(M) && !ticker.mode.shadowling_ascended) - M.visible_message("[M] trembles minutely as their form turns to ash, black smoke pouring from their disintegrating face.", \ - "It's time! Your masters are ascending! Your last thoughts are happy as your body is drained of life.") + sleep(90) + H.visible_message("[H]'s body begins to violently stretch and contort.", \ + "You begin to rend apart the final barries to godhood.") - ticker.mode.thralls -= M.mind //To prevent message spam - M.death(0) - M.dust() - - usr << "Drawing upon your thralls, you find the strength needed to finish and rend apart the final barriers to godhood." - - sleep(40) - for(var/mob/living/M in orange(7, src)) - M.Weaken(10) - M << "An immense pressure slams you onto the ground!" - usr << "YOU LIVE!!!" - world << "

A horrible wail echoes in your mind as the world plunges into blackness.


" - world << 'sound/hallucinations/veryfar_noise.ogg' - for(var/obj/machinery/power/apc/A in world) - A.overload_lighting() - var/mob/A = new /mob/living/simple_animal/ascendant_shadowling(usr.loc) - usr.spell_list = list() - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/annihilate) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/hypnosis) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadowling_phase_shift) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/glacial_blast) - usr.mind.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/vortex) - usr.mind.transfer_to(A) - A.spell_list = usr.spell_list - A.name = usr.real_name - A.languages = usr.languages - if(A.real_name) - A.real_name = usr.real_name - usr.alpha = 0 //This is pretty bad, but is also necessary for the shuttle call to function properly - usr.flags |= GODMODE - usr.notransform = 1 - sleep(50) - if(!ticker.mode.shadowling_ascended) - if(emergency_shuttle && emergency_shuttle.can_call()) - emergency_shuttle.call_evac() - emergency_shuttle.launch_time = 0 // Cannot recall - ticker.mode.shadowling_ascended = 1 - qdel(usr) + sleep(40) + H << "Yes!" + sleep(10) + H << "YES!!" + sleep(10) + H << "YE--" + sleep(1) + for(var/mob/living/M in orange(7, H)) + M.Weaken(10) + M << "An immense pressure slams you onto the ground!" + world << "\"VYSHA NERADA YEKHEZET U'RUU!!\"" + world << 'sound/hallucinations/veryfar_noise.ogg' + for(var/obj/machinery/power/apc/A in range(200, H)) + A.overload_lighting() + var/mob/A = new /mob/living/simple_animal/ascendant_shadowling(H.loc) + for(var/obj/effect/proc_holder/spell/S in H.mind.spell_list) + if(S == src) continue + H.mind.remove_spell(S) + H.mind.transfer_to(A) + A.name = H.real_name + A.languages = H.languages + A.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/annihilate) + A.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/hypnosis) + A.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadowling_phase_shift) + A.AddSpell(new /obj/effect/proc_holder/spell/wizard/aoe_turf/ascendant_storm) + A.AddSpell(new /obj/effect/proc_holder/spell/wizard/targeted/shadowlingAscendantTransmit) + if(A.real_name) + A.real_name = H.real_name + H.invisibility = 60 //This is pretty bad, but is also necessary for the shuttle call to function properly + H.flags |= GODMODE + H.loc = A + sleep(50) + if(!ticker.mode.shadowling_ascended) + if(emergency_shuttle && emergency_shuttle.can_call()) + emergency_shuttle.call_evac() + emergency_shuttle.launch_time = 0 // Cannot recall + ticker.mode.shadowling_ascended = 1 + A.mind.remove_spell(src) + qdel(H) diff --git a/code/game/gamemodes/wizard/wizard.dm b/code/game/gamemodes/wizard/wizard.dm index 2455637e61b..785fbb38f59 100644 --- a/code/game/gamemodes/wizard/wizard.dm +++ b/code/game/gamemodes/wizard/wizard.dm @@ -278,6 +278,13 @@ if (spell_to_remove.name == "Artificer" && !removeallspells) continue qdel(spell_to_remove) +/datum/mind/proc/remove_spell(var/obj/effect/proc_holder/spell/spell) //To remove a specific spell from a mind + if(!spell) return + for(var/obj/effect/proc_holder/spell/S in spell_list) + if(istype(S, spell)) + qdel(S) + spell_list -= S + /*Checks if the wizard can cast spells. Made a proc so this is not repeated 14 (or more) times.*/ /mob/proc/casting() diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm index 58bd290bf5e..91e7c4599b2 100644 --- a/code/game/turfs/simulated/walls.dm +++ b/code/game/turfs/simulated/walls.dm @@ -251,14 +251,13 @@ M.changeNext_move(CLICK_CD_MELEE) M.do_attack_animation(src) if(M.environment_smash >= 2) - if(istype(src, /turf/simulated/wall/r_wall)) - if(M.environment_smash == 3) - dismantle_wall(1) - M << "You smash through the wall." - else - M << text("\blue You smash against the wall.") - take_damage(rand(25, 75)) - return + if(M.environment_smash == 3) + dismantle_wall(1) + M << "You smash through the wall." + else + M << text("You smash against the wall.") + take_damage(rand(25, 75)) + return M << "\blue You push the wall but nothing happens!" return diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index ca526459f37..8191421e8c8 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -396,3 +396,8 @@ O.singularity_act() ChangeTurf(/turf/space) return(2) + +/turf/proc/get_lumcount() //Gets the lighting level of a given turf. + if(lighting_overlay) + return lighting_overlay.get_clamped_lum() + return 1 diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index 96d9f6ddc0e..c0c11aa1aa7 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -419,6 +419,8 @@ msg += "[src] has \a [implant] sticking out of [t_his] flesh!\n" if(digitalcamo) msg += "[t_He] [t_is] repulsively uncanny!\n" + if(!wear_mask && is_thrall(src) && in_range(usr,src)) + msg += "Their features seem unnaturally tight and drawn.\n" if(decaylevel == 1) msg += "[t_He] [t_is] starting to smell.\n" if(decaylevel == 2) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 613f0ad99b3..72022255700 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -748,11 +748,7 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc var/light_amount = 0 //how much light there is in the place, affects receiving nutrition and healing if(isturf(loc)) //else, there's considered to be no light var/turf/T = loc - var/atom/movable/lighting_overlay/L = locate(/atom/movable/lighting_overlay) in T - if(L) - light_amount = (L.get_clamped_lum()*10) - 5 //hardcapped so it's not abused by having a ton of flashlights - else - light_amount = 5 + light_amount = min(T.get_lumcount()*10, 5) //hardcapped so it's not abused by having a ton of flashlights nutrition += light_amount traumatic_shock -= light_amount @@ -770,12 +766,8 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc var/light_amount = 0 if(isturf(loc)) var/turf/T = loc - var/atom/movable/lighting_overlay/L = locate(/atom/movable/lighting_overlay) in T - if(L) - light_amount = L.get_clamped_lum()*10 - else - light_amount = 10 - if(light_amount > species.light_dam) //if there's enough light, start dying + light_amount = T.get_lumcount()*10 + if(light_amount > species.light_dam && !incorporeal_move) //if there's enough light, start dying if(species.light_effect_amp) adjustFireLoss(5) //This gets doubled by Shadowling's innate fire weakness, so it ends up being 10. else @@ -1805,9 +1797,9 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc holder.icon_state = "mutineer" if("mutineer") holder.icon_state = "mutineer" - if("Shadowling") + if("shadowling") holder.icon_state = "hudshadowling" - if("Shadowling Thrall") + if("shadowling thrall") holder.icon_state = "hudshadowlingthrall" hud_list[SPECIALROLE_HUD] = holder diff --git a/code/modules/mob/living/silicon/robot/login.dm b/code/modules/mob/living/silicon/robot/login.dm index 3aef61fb3d5..df9f6e050e5 100644 --- a/code/modules/mob/living/silicon/robot/login.dm +++ b/code/modules/mob/living/silicon/robot/login.dm @@ -3,4 +3,5 @@ regenerate_icons() show_laws(0) if(mind) ticker.mode.remove_revolutionary(mind) + if(mind) ticker.mode.remove_thrall(mind,0) return \ No newline at end of file diff --git a/code/stylesheet.dm b/code/stylesheet.dm index fac26760073..9ba50242b59 100644 --- a/code/stylesheet.dm +++ b/code/stylesheet.dm @@ -83,7 +83,7 @@ h1.alert, h2.alert {color: #000000;} .kidan {color: #664205;} .slime {color: #0077AA;} .clown {color: #ff0000;} -.shadowling {color: #311648;} +.shadowling {color: #3b2769;} .vulpkanin {color: #B97A57;} .rough {font-family: "Trebuchet MS", cursive, sans-serif;} .say_quote {font-family: Georgia, Verdana, sans-serif;} @@ -94,6 +94,7 @@ h1.alert, h2.alert {color: #000000;} .interface {color: #330033;} .big {font-size: 3;} +.reallybig {font-size: 4;} .greentext {color: #00FF00; font-size: 3;} .redtext {color: #FF0000; font-size: 3;} diff --git a/icons/effects/effects.dmi b/icons/effects/effects.dmi index 7a45b29f2ec..299c0a12e65 100644 Binary files a/icons/effects/effects.dmi and b/icons/effects/effects.dmi differ diff --git a/icons/mob/actions.dmi b/icons/mob/actions.dmi index 7103c823a4e..7ef3beadca4 100644 Binary files a/icons/mob/actions.dmi and b/icons/mob/actions.dmi differ diff --git a/paradise.dme b/paradise.dme index bb5c95972e0..1e625854674 100644 --- a/paradise.dme +++ b/paradise.dme @@ -357,6 +357,7 @@ #include "code\game\gamemodes\nuclear\pinpointer.dm" #include "code\game\gamemodes\revolution\revolution.dm" #include "code\game\gamemodes\revolution\rp_revolution.dm" +#include "code\game\gamemodes\shadowling\ascendant_shadowling.dm" #include "code\game\gamemodes\shadowling\shadowling.dm" #include "code\game\gamemodes\shadowling\shadowling_abilities.dm" #include "code\game\gamemodes\shadowling\shadowling_items.dm" @@ -1403,7 +1404,6 @@ #include "code\modules\mob\living\silicon\robot\drone\drone_damage.dm" #include "code\modules\mob\living\silicon\robot\drone\drone_items.dm" #include "code\modules\mob\living\silicon\robot\drone\drone_manufacturer.dm" -#include "code\modules\mob\living\simple_animal\ascendant_shadowling.dm" #include "code\modules\mob\living\simple_animal\bees.dm" #include "code\modules\mob\living\simple_animal\borer.dm" #include "code\modules\mob\living\simple_animal\constructs.dm"