diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index 32bd4f9a823..34082be122e 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -62,7 +62,8 @@ var/global/list/blocked_mobs = list(/mob/living/simple_animal/hostile, /mob/living/simple_animal/hostile/carp/holocarp, /mob/living/simple_animal/hostile/mining_drone, /mob/living/simple_animal/hostile/spaceWorm, - /mob/living/simple_animal/hostile/spaceWorm/wormHead + /mob/living/simple_animal/hostile/spaceWorm/wormHead, + /mob/living/simple_animal/ascendant_shadowling ) //Preferences stuff diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 9114acbf2dc..5db7e620325 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -312,6 +312,25 @@ datum/mind sections["traitor"] = text + /** SHADOWLING **/ + text = "shadowling" + if(ticker.mode.config_tag == "shadowling") + text = uppertext(text) + text = "[text]: " + if(src in ticker.mode.shadows) + text += "SHADOWLING|thrall|human" + else if(src in ticker.mode.shadowling_thralls) + text += "Shadowling|THRALL|human" + else + text += "shadowling|thrall|HUMAN" + + if(current && current.client && current.client.prefs.be_special & BE_SHADOWLING) + text += "|Enabled in Prefs" + else + text += "|Disabled in Prefs" + + sections["shadowling"] = text + /** MONKEY ***/ if (istype(current, /mob/living/carbon)) text = "monkey" @@ -943,9 +962,60 @@ datum/mind ticker.mode.forge_traitor_objectives(src) usr << "\blue The objectives for traitor [key] have been generated. You can edit them and anounce manually." + else if(href_list["shadowling"]) + switch(href_list["shadowling"]) + if("clear") + ticker.mode.update_shadow_icons_removed(src) + current.spell_list.Cut() + if(src in ticker.mode.shadows) + ticker.mode.shadows -= src + special_role = null + current << "Your powers have been quenched! You are no longer a shadowling!" + current.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 + if(current.languages) + for(var/datum/language/L in current.languages) + if(L.name == "Shadowling Hivemind") + del(L) + else if(src in ticker.mode.shadowling_thralls) + ticker.mode.shadowling_thralls -= src + special_role = null + if(current.languages) + for(var/datum/language/L in current.languages) + if(L.name == "Shadowling Hivemind") + del(L) + current << "You have been brainwashed! You are no longer a thrall!" + message_admins("[key_name_admin(usr)] has de-thrall'ed [current].") + log_admin("[key_name(usr)] has de-thrall'ed [current].") + if("shadowling") + if(!ishuman(current)) + usr << "This only works on humans!" + 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." + ticker.mode.finalize_shadowling(src) + ticker.mode.update_shadow_icons_added(src) + if("thrall") + if(!ishuman(current)) + usr << "This only works on humans!" + return + ticker.mode.add_thrall(src) + special_role = "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].") + else if (href_list["monkey"]) var/mob/living/L = current - if (L.monkeyizing) + if (L.notransform) return switch(href_list["monkey"]) if("healthy") diff --git a/code/game/dna/dna_misc.dm b/code/game/dna/dna_misc.dm index bda19278266..bc2098d77a6 100644 --- a/code/game/dna/dna_misc.dm +++ b/code/game/dna/dna_misc.dm @@ -402,7 +402,7 @@ if (isblockon(getblock(M.dna.struc_enzymes, MONKEYBLOCK,3),MONKEYBLOCK) && istype(M, /mob/living/carbon/human)) // human > monkey var/mob/living/carbon/human/H = M - H.monkeyizing = 1 + H.notransform = 1 var/list/implants = list() //Try to preserve implants. for(var/obj/item/weapon/implant/W in H) implants += W @@ -413,7 +413,7 @@ if (W==H.w_uniform) // will be teared continue H.unEquip(W) - M.monkeyizing = 1 + M.notransform = 1 M.canmove = 0 M.icon = null M.invisibility = 101 @@ -478,7 +478,7 @@ if (!isblockon(getblock(M.dna.struc_enzymes, MONKEYBLOCK,3),MONKEYBLOCK) && !istype(M, /mob/living/carbon/human)) // monkey > human, var/mob/living/carbon/monkey/Mo = M - Mo.monkeyizing = 1 + Mo.notransform = 1 var/list/implants = list() //Still preserving implants for(var/obj/item/weapon/implant/W in Mo) implants += W @@ -486,7 +486,7 @@ if(!connected) for(var/obj/item/W in (Mo.contents-implants)) Mo.unEquip(W) - M.monkeyizing = 1 + M.notransform = 1 M.canmove = 0 M.icon = null M.invisibility = 101 diff --git a/code/game/dna/genes/monkey.dm b/code/game/dna/genes/monkey.dm index 03ca9880c2c..c10178b285a 100644 --- a/code/game/dna/genes/monkey.dm +++ b/code/game/dna/genes/monkey.dm @@ -12,7 +12,7 @@ // testing("Cannot monkey-ify [M], type is [M.type].") return var/mob/living/carbon/human/H = M - H.monkeyizing = 1 + H.notransform = 1 var/list/implants = list() //Try to preserve implants. for(var/obj/item/weapon/implant/W in H) implants += W @@ -23,7 +23,7 @@ if (W==H.w_uniform) // will be teared continue H.unEquip(W) - M.monkeyizing = 1 + M.notransform = 1 M.canmove = 0 M.icon = null M.invisibility = 101 @@ -86,7 +86,7 @@ testing("Cannot humanize [M], type is [M.type].") return var/mob/living/carbon/monkey/Mo = M - Mo.monkeyizing = 1 + Mo.notransform = 1 var/list/implants = list() //Still preserving implants for(var/obj/item/weapon/implant/W in Mo) implants += W @@ -94,7 +94,7 @@ if(!connected) for(var/obj/item/W in (Mo.contents-implants)) Mo.unEquip(W) - M.monkeyizing = 1 + M.notransform = 1 M.canmove = 0 M.icon = null M.invisibility = 101 diff --git a/code/game/gamemodes/changeling/powers/lesserform.dm b/code/game/gamemodes/changeling/powers/lesserform.dm index a769ee47bd0..09751412a30 100644 --- a/code/game/gamemodes/changeling/powers/lesserform.dm +++ b/code/game/gamemodes/changeling/powers/lesserform.dm @@ -23,7 +23,7 @@ for(var/obj/item/weapon/implant/W in C) implants += W - C.monkeyizing = 1 + C.notransform = 1 C.canmove = 0 C.icon = null C.overlays.Cut() diff --git a/code/game/gamemodes/shadowling/shadowling.dm b/code/game/gamemodes/shadowling/shadowling.dm new file mode 100644 index 00000000000..51cf619fb12 --- /dev/null +++ b/code/game/gamemodes/shadowling/shadowling.dm @@ -0,0 +1,291 @@ +/* + +SHADOWLING: A gamemode based on previously-run events + +Aliens called shadowlings are on the station. +These shadowlings can 'enthrall' crew members and enslave them. +They also burn in the light but heal rapidly whilst in the dark. +The game will end under two conditions: + 1. The shadowlings die + 2. The emergency shuttle docks at CentCom + +Shadowling strengths: + - The dark + - Hard vacuum (They are not affected by it) + - Their thralls who are not harmed by the light + - Stealth + +Shadowling weaknesses: + - The light + - Fire + - Enemy numbers + - Lasers (Lasers are concentrated light and do more damage) + - Flashbangs (High stun and high burn damage; if the light stuns humans, you bet your ass it'll hurt the shadowling very much!) + +Shadowlings start off disguised as normal crew members, and they only have two abilities: Hatch and Enthrall. +They can still enthrall and perhaps complete their objectives in this form. +Hatch will, after a short time, cast off the human disguise and assume the shadowling's true identity. +They will then assume the normal shadowling form and gain their abilities. + +The shadowling will seem OP, and that's because it kinda is. Being restricted to the dark while being alone most of the time is extremely difficult and as such the shadowling needs powerful abilities. +Made by Xhuis + +*/ + + + +/* + GAMEMODE +*/ + + +/datum/game_mode + var/list/datum/mind/shadows = list() + var/list/datum/mind/shadowling_thralls = list() + var/list/shadow_objectives = list() + 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 + + +/proc/is_thrall(var/mob/living/M) + return istype(M) && M.mind && ticker && ticker.mode && (M.mind in ticker.mode.shadowling_thralls) + + +/proc/is_shadow_or_thrall(var/mob/living/M) + return istype(M) && M.mind && ticker && ticker.mode && ((M.mind in ticker.mode.shadowling_thralls) || (M.mind in ticker.mode.shadows)) + + +/proc/is_shadow(var/mob/living/M) + return istype(M) && M.mind && ticker && ticker.mode && (M.mind in ticker.mode.shadows) + + +/datum/game_mode/shadowling + name = "shadowling" + config_tag = "shadowling" + required_players = 30 + required_enemies = 2 + recommended_enemies = 2 + restricted_jobs = list("AI", "Cyborg") + protected_jobs = list("Security Officer", "Warden", "Detective", "Head of Security", "Captain") + +/datum/game_mode/shadowling/announce() + world << "The current game mode is - Shadowling!" + world << "There are alien shadowlings on the station. Crew: Kill the shadowlings before they can eat or enthrall the crew. Shadowlings: Enthrall the crew while remaining in hiding." + +/datum/game_mode/shadowling/pre_setup() + if(config.protect_roles_from_antagonist) + restricted_jobs += protected_jobs + + var/list/datum/mind/possible_shadowlings = get_players_for_role(BE_SHADOWLING) + + if(!possible_shadowlings.len) + return 0 + + for(var/datum/mind/player in possible_shadowlings) + for(var/job in restricted_jobs) + if(player.assigned_role == job) + possible_shadowlings -= player + + var/shadowlings = 2 //How many shadowlings there are; hardcoded to 2 + + while(shadowlings) + var/datum/mind/shadow = pick(possible_shadowlings) + shadows += shadow + possible_shadowlings -= shadow + modePlayer += shadow + shadow.special_role = "Shadowling" + shadowlings-- + return 1 + + +/datum/game_mode/shadowling/post_setup() + for(var/datum/mind/shadow in shadows) + log_game("[shadow.key] (ckey) has been selected as a Shadowling.") + sleep(10) + shadow.current << "
" + shadow.current << "You are a shadowling!" + greet_shadow(shadow) + finalize_shadowling(shadow) + process_shadow_objectives(shadow) + //give_shadowling_abilities(shadow) + ..() + return + +/datum/game_mode/proc/greet_shadow(var/datum/mind/shadow) + shadow.current << "Currently, you are disguised as an employee aboard [world.name]." + shadow.current << "In your limited state, you have three abilities: Enthrall, Hatch, and Shadowling Hivemind (:8)." + shadow.current << "Any other shadowlings are your allies. You must assist them as they shall assist you." + shadow.current << "If you are new to shadowling, or want to read about abilities, check the wiki page at http://nanotrasen.se/wiki/index.php/Shadowling
" + + +/datum/game_mode/proc/process_shadow_objectives(var/datum/mind/shadow_mind) + 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." + shadow_objectives += "enthrall" + shadow_mind.memory += "Objective #1: [objective_explanation]" + shadow_mind.current << "Objective #1: [objective_explanation]
" + + +/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.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/enthrall + spawn(0) + shadow_mind.current.add_language("Shadowling Hivemind") + update_shadow_icons_added(shadow_mind) + if(shadow_mind.assigned_role == "Clown") + S << "Your alien nature has allowed you to overcome your clownishness." + S.mutations.Remove(CLUMSY) + +/datum/game_mode/proc/add_thrall(datum/mind/new_thrall_mind) + if (!istype(new_thrall_mind)) + return 0 + if(!(new_thrall_mind in shadowling_thralls)) + shadowling_thralls += new_thrall_mind + 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") + return 1 + + + +/* + GAME FINISH CHECKS +*/ + + +/datum/game_mode/shadowling/check_finished() + var/shadows_alive = 0 //and then shadowling was kill + for(var/datum/mind/shadow in shadows) //but what if shadowling was not kill? + if(!istype(shadow.current,/mob/living/carbon/human) && !istype(shadow.current,/mob/living/simple_animal/ascendant_shadowling)) + continue + if(shadow.current.stat == DEAD) + continue + shadows_alive++ + if(shadows_alive) + return ..() + else + shadowling_dead = 1 //but shadowling was kill :( + return 1 + + +/datum/game_mode/shadowling/proc/check_shadow_victory() + var/success = 0 //Did they win? + if(shadow_objectives.Find("enthrall")) + success = shadowling_ascended + return success + + +/datum/game_mode/shadowling/declare_completion() + if(check_shadow_victory() && emergency_shuttle.returned()) //Doesn't end instantly - this is hacky and I don't know of a better way ~X + world << "The shadowlings have ascended and taken over the station!" + 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!" + ..() + return 1 + + +/datum/game_mode/proc/auto_declare_completion_shadowling() + var/text = "" + if(shadows.len) + text += "
The shadowlings were:" + for(var/datum/mind/shadow in shadows) + text += "
[shadow.key] was [shadow.name] (" + if(shadow.current) + if(shadow.current.stat == DEAD) + text += "died" + else + text += "survived" + if(shadow.current.real_name != shadow.name) + text += " as [shadow.current.real_name]" + else + text += "body destroyed" + text += ")" + text += "
" + if(shadowling_thralls.len) + text += "
The thralls were:" + for(var/datum/mind/thrall in shadowling_thralls) + text += "
[thrall.key] was [thrall.name] (" + if(thrall.current) + if(thrall.current.stat == DEAD) + text += "died" + else + text += "survived" + if(thrall.current.real_name != thrall.name) + text += " as [thrall.current.real_name]" + else + text += "body destroyed" + text += "
" + world << text + + +/* + MISCELLANEOUS +*/ + + +/datum/species/shadow/ling + //Normal shadowpeople but with enhanced effects + name = "Shadowling" + + icobase = 'icons/mob/human_races/r_shadowling.dmi' + deform = 'icons/mob/human_races/r_shadowling.dmi' + + light_effect_amp = 1 + blood_color = "#555555" + flesh_color = "#222222" + + flags = NO_BLOOD | NO_BREATHE | NO_SCAN | NO_INTORGANS + burn_mod = 2 //2x burn damage + +/datum/game_mode/proc/update_shadow_icons_added(datum/mind/shadow_mind) + spawn(0) + for(var/datum/mind/shadowling in shadows) + if(shadowling.current && shadowling != shadow_mind) + if(shadowling.current.client) + var/I = image('icons/mob/mob.dmi', loc = shadow_mind.current, icon_state = "thrall") + shadowling.current.client.images += I + if(shadow_mind.current) + if(shadow_mind.current.client) + var/image/J = image('icons/mob/mob.dmi', loc = shadowling.current, icon_state = "shadowling") + shadow_mind.current.client.images += J + for(var/datum/mind/thrall in shadowling_thralls) + if(thrall.current) + if(thrall.current.client) + var/I = image('icons/mob/mob.dmi', loc = shadow_mind.current, icon_state = "thrall") + thrall.current.client.images += I + if(shadow_mind.current) + if(shadow_mind.current.client) + var/image/J = image('icons/mob/mob.dmi', loc = thrall.current, icon_state = "thrall") + shadow_mind.current.client.images += J + +/datum/game_mode/proc/update_shadow_icons_removed(datum/mind/shadow_mind) + spawn(0) + for(var/datum/mind/shadowling in shadows) + if(shadowling.current) + if(shadowling.current.client) + for(var/image/I in shadowling.current.client.images) + if((I.icon_state == "thrall" || I.icon_state == "shadowling") && I.loc == shadow_mind.current) + del(I) + + for(var/datum/mind/thrall in thralls) + if(thrall.current) + if(thrall.current.client) + for(var/image/I in thrall.current.client.images) + if((I.icon_state == "thrall" || I.icon_state == "shadowling") && I.loc == shadow_mind.current) + del(I) + + if(shadow_mind.current) + if(shadow_mind.current.client) + for(var/image/I in shadow_mind.current.client.images) + if(I.icon_state == "thrall" || I.icon_state == "shadowling") + del(I) diff --git a/code/game/gamemodes/shadowling/shadowling_abilities.dm b/code/game/gamemodes/shadowling/shadowling_abilities.dm new file mode 100644 index 00000000000..3260d8e5245 --- /dev/null +++ b/code/game/gamemodes/shadowling/shadowling_abilities.dm @@ -0,0 +1,617 @@ +/obj/effect/proc_holder/spell/wizard/targeted/glare + name = "Glare" + desc = "Stuns and mutes a target for a decent duration." + panel = "Shadowling Abilities" + charge_max = 300 + clothes_req = 0 + +/obj/effect/proc_holder/spell/wizard/targeted/glare/cast(list/targets) + for(var/mob/living/carbon/human/target in targets) + if(!ishuman(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 + + 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. + + + +/obj/effect/proc_holder/spell/wizard/aoe_turf/veil + name = "Veil" + desc = "Extinguishes all electronic lights in a decent radius." + panel = "Shadowling Abilities" + charge_max = 250 //Short cooldown because people can just turn the lights back on + clothes_req = 0 + range = 5 + +/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.") + return + F.on = 0 + F.visible_message("[F] gutters and falls dark.") + F.update_brightness() + 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.SetLuminosity(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/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.SetLuminosity(0) //failsafe + 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. + + + +/obj/effect/proc_holder/spell/wizard/targeted/shadow_walk + name = "Shadow Walk" + desc = "Phases you into the space between worlds for a short time, allowing movement through walls and invisbility." + panel = "Shadowling Abilities" + charge_max = 600 + clothes_req = 0 + range = -1 + include_user = 1 + +/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.SetStunned(0) + user.SetWeakened(0) + user.incorporeal_move = 1 + user.alpha = 0 + 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.incorporeal_move = 0 + user.alpha = 255 + + + +/obj/effect/proc_holder/spell/wizard/aoe_turf/flashfreeze + name = "Flash Freeze" + 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 + +/obj/effect/proc_holder/spell/wizard/aoe_turf/flashfreeze/cast(list/targets) + 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 + 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 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 + + + +//Enthrall is the single most important spell +/obj/effect/proc_holder/spell/wizard/targeted/enthrall + 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 + clothes_req = 0 + range = 1 //Adjacent to user + var/enthralling = 0 + +/obj/effect/proc_holder/spell/wizard/targeted/enthrall/cast(list/targets) + 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) + usr << "The target has no mind." + charge_counter = charge_max + return + if(target.stat) + usr << "The target must be conscious." + charge_counter = charge_max + return + if(is_shadow_or_thrall(target)) + usr << "You can not enthrall allies." + charge_counter = charge_max + return + if(!ishuman(target)) + usr << "You can only enthrall humans." + charge_counter = charge_max + return + if(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." + + 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.") + 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.") + target << "Your gaze is forcibly drawn into a blinding red light. You fall to the floor as conscious thought is wiped away." + target.Weaken(12) + 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!" + 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." + 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 + 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." + 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 Hivemind Commune ability." + target.adjustOxyLoss(-200) //In case the shadowling was choking them out + ticker.mode.add_thrall(target.mind) + target.mind.special_role = "Thrall" + +/obj/effect/proc_holder/spell/wizard/targeted/collective_mind + name = "Collective Hivemind" + desc = "Gathers the power of all of your thralls and compares it to what is needed for ascendance. Also gains you new abilities." + panel = "Shadowling Abilities" + charge_max = 300 //30 second cooldown to prevent spam + clothes_req = 0 + range = -1 + include_user = 1 + var/blind_smoke_acquired + var/screech_acquired + var/drain_thrall_acquired + var/thrall_swap_acquired + +/obj/effect/proc_holder/spell/wizard/targeted/collective_mind/cast(list/targets) + for(var/mob/living/user in targets) + var/thralls = 0 + var/victory_threshold = 15 + var/mob/M + + user << "You focus your telepathic energies abound, harnessing and drawing together the strength of your thralls." + + for(M in living_mob_list) + if(is_thrall(M)) + thralls++ + 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." + return + + if(thralls >= 3 && !blind_smoke_acquired) + blind_smoke_acquired = 1 + user << "The power of your thralls has granted you the Blinding Smoke ability. It will create a choking cloud that will blind any non-thralls who enter. \ + " + user.spell_list += 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.spell_list += new /obj/effect/proc_holder/spell/wizard/aoe_turf/drain_thralls + + 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.spell_list += 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.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/spatial_relocation + + 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." + + else if(thralls >= victory_threshold) + usr << "You are now powerful enough to ascend. Use the Ascendance ability when you are ready. This will kill all of your thralls." + 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 + 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 + + + +/obj/effect/proc_holder/spell/wizard/targeted/blindness_smoke + name = "Blindness Smoke" + desc = "Spews a cloud of smoke which will blind enemies." + panel = "Shadowling Abilities" + charge_max = 600 + clothes_req = 0 + range = -1 + include_user = 1 + +/obj/effect/proc_holder/spell/wizard/targeted/blindness_smoke/cast(list/targets) //Extremely hacky + for(var/mob/living/user in targets) + user.visible_message("[user] suddenly bends over and coughs out a cloud of black smoke, which begins to spread rapidly!") + user << "You regurgitate a vast cloud of blinding smoke." + playsound(user, 'sound/effects/bamf.ogg', 50, 1) + var/obj/item/weapon/reagent_containers/glass/beaker/large/B = new /obj/item/weapon/reagent_containers/glass/beaker/large(user.loc) + B.reagents.clear_reagents() //Just in case! + B.icon_state = null //Invisible + B.reagents.add_reagent("blindness_smoke", 10) + var/datum/effect/effect/system/chem_smoke_spread/S = new /datum/effect/effect/system/chem_smoke_spread + S.attach(B) + if(S) + S.set_up(B.reagents, 10, 0, B.loc) + S.start() + sleep(10) + S.start() + qdel(B) + +datum/reagent/shadowling_blindness_smoke //Blinds non-shadowlings, heals shadowlings/thralls + name = "!(%@ ERROR )!@$" + id = "blindness_smoke" + description = "<::ERROR::> CANNOT ANALYZE REAGENT <::ERROR::>" + color = "#000000" //Complete black (RGB: 0, 0, 0) + metabolization_rate = 100 //lel + +datum/reagent/shadowling_blindness_smoke/on_mob_life(var/mob/living/M as mob) + if(!M) M = holder.my_atom + if(!is_shadow_or_thrall(M)) + 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) + else + M << "You breathe in the black smoke, and you feel revitalized!" + M.heal_organ_damage(2,2) + M.adjustOxyLoss(-2) + M.adjustToxLoss(-2) + ..() + return + + + +/obj/effect/proc_holder/spell/wizard/aoe_turf/unearthly_screech + name = "Sonic Screech" + desc = "Deafens, stuns, and confuses nearby people. Also shatters windows." + panel = "Shadowling Abilities" + range = 7 + charge_max = 300 + clothes_req = 0 + +/obj/effect/proc_holder/spell/wizard/aoe_turf/unearthly_screech/cast(list/targets) + usr.audible_message("[usr] lets out a horrible scream!") + playsound(usr.loc, 'sound/effects/screech.ogg', 100, 1) + + for(var/turf/T in targets) + for(var/mob/target in T.contents) + if(is_shadow_or_thrall(target)) + if(target == usr) //No message for the user, of course + continue + else + continue + if(iscarbon(target)) + var/mob/living/carbon/M = target + M << "A spike of pain drives into your head and scrambles your thoughts!" + M.Weaken(2) + M.confused += 10 + M.ear_damage += 3 + else if(issilicon(target)) + var/mob/living/silicon/S = target + S << "ERROR $!(@ ERROR )#^! SENSOR INTERFERENCE DETECTED" + 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 + sp.set_up(5, 1, S) + sp.start() + S.Weaken(6) + for(var/obj/structure/window/W in T.contents) + W.hit(rand(50,100)) + + + +/obj/effect/proc_holder/spell/wizard/aoe_turf/drain_thralls + name = "Drain Thralls" + desc = "Damages nearby thralls, draining their life and healing yourself." + panel = "Shadowling Abilities" + range = 3 + charge_max = 100 + clothes_req = 0 + var/thralls_drained = 0 + var/list/nearby_thralls = list() + +/obj/effect/proc_holder/spell/wizard/aoe_turf/drain_thralls/cast(list/targets) + thralls_drained = 0 + nearby_thralls = 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 + charge_counter = charge_max + usr << "There were no nearby thralls for you to drain." + + + +/obj/effect/proc_holder/spell/wizard/targeted/spatial_relocation + name = "Spatial Relocation" + desc = "Swaps places with a thrall and breaks nearby lights." + panel = "Shadowling Abilities" + range = -1 + charge_max = 3000 + clothes_req = 0 + include_user = 1 + var/list/thralls_in_world = list() + +/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() + +// ASCENDANT ABILITIES BEYOND THIS POINT // + +/obj/effect/proc_holder/spell/wizard/targeted/annihilate + name = "Annihilate" + desc = "Gibs a human after a short time." + panel = "Ascendant" + range = 7 + charge_max = 300 + clothes_req = 0 + +/obj/effect/proc_holder/spell/wizard/targeted/annihilate/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 + + for(var/mob/living/carbon/human/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]!", \ + "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) + boom.visible_message("[boom] explodes!") + boom.gib() + + + +/obj/effect/proc_holder/spell/wizard/targeted/hypnosis + name = "Hypnosis" + desc = "Instantly enthralls a human." + panel = "Ascendant" + range = 7 + charge_max = 450 + clothes_req = 0 + +/obj/effect/proc_holder/spell/wizard/targeted/hypnosis/cast(list/targets) + var/mob/living/simple_animal/ascendant_shadowling/SHA = usr + if(SHA.phasing) + charge_counter = charge_max + usr << "You are not in the same plane of existence. Unphase first." + return + + for(var/mob/living/carbon/human/target in targets) + if(is_shadow_or_thrall(target)) + usr << "You cannot enthrall an ally." + charge_counter = charge_max + return + if(!target.ckey) + usr << "The target has no mind." + charge_counter = charge_max + return + if(target.stat) + usr << "The target must be conscious." + charge_counter = charge_max + return + if(!ishuman(target)) + usr << "You can only enthrall humans." + charge_counter = charge_max + return + + 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.add_language("Shadowling Hivemind") + + + +/obj/effect/proc_holder/spell/wizard/targeted/shadowling_phase_shift + name = "Phase Shift" + desc = "Phases you into the space between worlds at will, allowing you to move through walls and become invisible." + panel = "Ascendant" + range = -1 + include_user = 1 + charge_max = 15 + clothes_req = 0 + +/obj/effect/proc_holder/spell/wizard/targeted/shadowling_phase_shift/cast(list/targets) + var/mob/living/simple_animal/ascendant_shadowling/SHA = usr + for(SHA in targets) + SHA.phasing = !SHA.phasing + if(SHA.phasing) + SHA.visible_message("[SHA] suddenly vanishes!", \ + "You begin phasing through planes of existence. Use the ability again to return.") + SHA.incorporeal_move = 1 + SHA.alpha = 0 + else + SHA.visible_message("[SHA] suddenly appears from nowhere!", \ + "You return from the space between worlds.") + SHA.incorporeal_move = 0 + SHA.alpha = 255 + + + +/obj/effect/proc_holder/spell/wizard/aoe_turf/glacial_blast + name = "Glacial Blast" + desc = "Extremely empowered version of Flash Freeze." + panel = "Ascendant" + range = 5 + charge_max = 600 + clothes_req = 0 + +/obj/effect/proc_holder/spell/wizard/aoe_turf/glacial_blast/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 + + usr << "You freeze the nearby air." + playsound(usr.loc, 'sound/effects/ghost2.ogg', 100, 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 + 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) + + + +/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." + panel = "Ascendant" + range = -1 + include_user = 1 + charge_max = 1200 + clothes_req = 0 + +/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/shadowling_hivemind_ascendant + name = "Ascendant Commune" + desc = "Allows you to silently communicate with all other shadowlings and thralls." + panel = "Ascendant" + charge_max = 20 + clothes_req = 0 + range = -1 + include_user = 1 + +/obj/effect/proc_holder/spell/wizard/targeted/shadowling_hivemind_ascendant/cast(list/targets) + for(var/mob/living/user in targets) + var/text = stripped_input(user, "What do you want to say to fellow thralls and shadowlings?.", "Hive Chat", "") + if(!text) + return + text = "[text]" + for(var/mob/M in mob_list) + if(is_shadow_or_thrall(M) || (M in dead_mob_list)) + M << "\[Hive Chat\] [usr.real_name] (ASCENDANT): [text]" //Bigger text for ascendants. diff --git a/code/game/gamemodes/shadowling/shadowling_items.dm b/code/game/gamemodes/shadowling/shadowling_items.dm new file mode 100644 index 00000000000..fcb84062c5e --- /dev/null +++ b/code/game/gamemodes/shadowling/shadowling_items.dm @@ -0,0 +1,103 @@ +/obj/item/clothing/under/shadowling + name = "blackened flesh" + desc = "Black, chitonous skin." + item_state = "golem" + origin_tech = null + icon_state = "golem" + _color = "golem" + flags = ABSTRACT | NODROP + has_sensor = 0 + unacidable = 1 + + +/obj/item/clothing/suit/space/shadowling + name = "chitin shell" + desc = "Dark, semi-transparent shell. Protects against vacuum, but not against the light of the stars." //Still takes damage from spacewalking but is immune to space itself + icon_state = "golem" + item_state = "golem" + body_parts_covered = FULL_BODY //Shadowlings are immune to space + cold_protection = FULL_BODY + min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE + flags_inv = HIDEGLOVES | HIDESHOES | HIDEJUMPSUIT + flags = ABSTRACT | NODROP | THICKMATERIAL + slowdown = 0 + unacidable = 1 + heat_protection = null //You didn't expect a light-sensitive creature to have heat resistance, did you? + max_heat_protection_temperature = null + + +/obj/item/clothing/shoes/shadowling + name = "chitin feet" + desc = "Charred-looking feet. They have minature hooks that latch onto flooring." + icon_state = "golem" + unacidable = 1 + flags = NOSLIP | ABSTRACT | NODROP + + +/obj/item/clothing/mask/gas/shadowling + name = "chitin mask" + desc = "A mask-like formation with slots for facial features. A red film covers the eyes." + icon_state = "golem" + item_state = "golem" + origin_tech = null + siemens_coefficient = 0 + unacidable = 1 + flags = ABSTRACT | NODROP + + +/obj/item/clothing/gloves/shadowling + name = "chitin hands" + desc = "An electricity-resistant covering of the hands." + icon_state = "golem" + item_state = null + origin_tech = null + siemens_coefficient = 0 + unacidable = 1 + flags = ABSTRACT | NODROP + + +/obj/item/clothing/head/shadowling + name = "chitin helm" + desc = "A helmet-like enclosure of the head." + icon_state = "golem" + item_state = null + origin_tech = null + unacidable = 1 + flags = ABSTRACT | NODROP + + +/obj/item/clothing/glasses/night/shadowling + name = "crimson eyes" + desc = "A shadowling's eyes. Very light-sensitive and can detect body heat through walls." + icon = null + icon_state = null + item_state = null + origin_tech = null + vision_flags = SEE_MOBS + darkness_view = 3 + invisa_view = 2 + unacidable = 1 + flash_protect = -1 + flags = ABSTRACT | NODROP + +/obj/structure/shadow_vortex + name = "vortex" + desc = "A swirling hole in the fabric of reality. Eye-watering chimes sound from its depths." + density = 0 + anchored = 1 + icon = 'icons/effects/genetics.dmi' + icon_state = "shadow_portal" + +/obj/structure/shadow_vortex/New() + src.audible_message("\The [src] lets out a dismaying screech as dimensional barriers are torn apart!") + playsound(loc, 'sound/effects/eleczap.ogg', 100, 1) + sleep(100) + qdel(src) + +/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 + 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 new file mode 100644 index 00000000000..4dd5ff26b68 --- /dev/null +++ b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm @@ -0,0 +1,166 @@ +//In here: Hatch and Ascendance + +/mob/living/carbon/human/proc/shadowling_hatch() + set category = "Shadowling Evolution" + set name = "Hatch" + + if(usr.stat) + 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/obj/item/I in usr) //drops all items + usr.unEquip(I) + if(istype(I, /obj/item/organ) && (I in src.internal_organs)) //Shadowlings only have a brain, the other organs would drop otherwise. + qdel(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 + + 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.") + + 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(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(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!!!" + + 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" + + 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") + + 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.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/glare + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/aoe_turf/veil + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/shadow_walk + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/aoe_turf/flashfreeze + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/collective_mind + + + +/mob/living/carbon/human/proc/shadowling_ascendance() + set category = "Shadowling Evolution" + set name = "Ascendance" + + if(usr.stat) + 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.") + + 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(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.") + + 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(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.") + + 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.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/annihilate + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/hypnosis + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/shadowling_phase_shift + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/aoe_turf/glacial_blast + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/vortex + usr.spell_list += new /obj/effect/proc_holder/spell/wizard/targeted/shadowling_hivemind_ascendant + usr.mind.transfer_to(A) + A.spell_list = usr.spell_list + A.name = usr.real_name + 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) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index 8391118d1f6..a1a1e5f5f49 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -447,7 +447,7 @@ src.occupant.loc = src.loc src.icon_state = "pod_0" src.eject_wait = 0 //If it's still set somehow. - domutcheck(src.occupant) //Waiting until they're out before possible monkeyizing. + domutcheck(src.occupant) //Waiting until they're out before possible notransform. src.occupant.add_side_effect("Bad Stomach") // Give them an extra side-effect for free. src.occupant = null diff --git a/code/game/objects/effects/aliens.dm b/code/game/objects/effects/aliens.dm index cca19e50a98..cb94f416ff7 100644 --- a/code/game/objects/effects/aliens.dm +++ b/code/game/objects/effects/aliens.dm @@ -49,6 +49,12 @@ relativewall_neighbours() ..() +/obj/structure/alien/resin/wall/shadowling //For chrysalis + name = "chrysalis wall" + desc = "Some sort of purple substance in an egglike shape. It pulses and throbs from within and seems impenetrable." + health = INFINITY + icon_state = "wall0" + /obj/structure/alien/resin/membrane name = "resin membrane" desc = "Resin just thin enough to let light pass through." diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm index 3fba23576b5..a3d862afce6 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/player_panel.dm @@ -501,6 +501,12 @@ if(ticker.mode.traitors.len) dat += check_role_table("Traitors", ticker.mode.traitors, src) + if(ticker.mode.shadows.len) + dat += check_role_table("Shadowlings", ticker.mode.shadows, src) + + if(ticker.mode.thralls.len) + dat += check_role_table("Shadowling Thralls", ticker.mode.thralls, src) + if(ticker.mode.vampires.len) dat += check_role_table("Vampires", ticker.mode.vampires, src) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 0f737fba217..77e005c0422 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -17,12 +17,14 @@ var/global/list/special_roles = list( //keep synced with the defines BE_* in set "raider" = IS_MODE_COMPILED("heist"), // 1024 / 11 "vampire" = IS_MODE_COMPILED("vampire"), // 2048 / 12 "mutineer" = IS_MODE_COMPILED("mutiny"), // 4096 / 13 - "blob" = IS_MODE_COMPILED("blob") // 8192 / 14 + "blob" = IS_MODE_COMPILED("blob"), // 8192 / 14 + "shadowling" = IS_MODE_COMPILED("shadowling") //16384 / 15 ) var/global/list/special_role_times = list( //minimum age (in days) for accounts to play these roles num2text(BE_PAI) = 0, num2text(BE_TRAITOR) = 7, num2text(BE_CHANGELING) = 14, + num2text(BE_SHADOWLING) = 14, num2text(BE_WIZARD) = 14, num2text(BE_REV) = 14, num2text(BE_VAMPIRE) = 14, diff --git a/code/modules/mob/death.dm b/code/modules/mob/death.dm index cb72116b04a..e6107b4cca2 100644 --- a/code/modules/mob/death.dm +++ b/code/modules/mob/death.dm @@ -3,7 +3,7 @@ /mob/proc/gib() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -31,7 +31,7 @@ /mob/proc/dust() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -54,7 +54,7 @@ /mob/proc/melt() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm index 80761679cba..af41d20b7ad 100644 --- a/code/modules/mob/language.dm +++ b/code/modules/mob/language.dm @@ -356,6 +356,14 @@ key = "g" flags = RESTRICTED | HIVEMIND +/datum/language/shadowling + name = "Shadowling Hivemind" + desc = "Shadowlings and their thralls are capable of communicating over a psychic hivemind." + speech_verb = "says" + colour = "shadowling" + key = "8" + flags = RESTRICTED | HIVEMIND + /datum/language/ling/broadcast(var/mob/living/speaker,var/message,var/speaker_mask) if(speaker.mind && speaker.mind.changeling) diff --git a/code/modules/mob/living/carbon/alien/death.dm b/code/modules/mob/living/carbon/alien/death.dm index 1ae09f9f161..c72220790d1 100644 --- a/code/modules/mob/living/carbon/alien/death.dm +++ b/code/modules/mob/living/carbon/alien/death.dm @@ -1,7 +1,7 @@ /mob/living/carbon/alien/gib() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -22,7 +22,7 @@ /mob/living/carbon/alien/dust() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/mob/living/carbon/alien/humanoid/update_icons.dm b/code/modules/mob/living/carbon/alien/humanoid/update_icons.dm index 0c218c81204..e9e4fd88608 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/update_icons.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/update_icons.dm @@ -53,7 +53,7 @@ /mob/living/carbon/alien/humanoid/regenerate_icons() ..() - if (monkeyizing) return + if (notransform) return update_inv_head(0,0) update_inv_wear_suit(0,0) diff --git a/code/modules/mob/living/carbon/brain/brain_item.dm b/code/modules/mob/living/carbon/brain/brain_item.dm index 18b440e538a..5ad58df488f 100644 --- a/code/modules/mob/living/carbon/brain/brain_item.dm +++ b/code/modules/mob/living/carbon/brain/brain_item.dm @@ -23,8 +23,8 @@ /obj/item/organ/brain/New() ..() spawn(5) - if(brainmob && brainmob.client) - brainmob.client.screen.len = null //clear the hud + for(var/mob/living/carbon/brain/bmob in src) //I'm going to hell for this, but there's no other way to stop these runtimes. + bmob.client.screen.len = null //clear the hud /obj/item/organ/brain/proc/transfer_identity(var/mob/living/carbon/H) name = "\the [H]'s [initial(src.name)]" diff --git a/code/modules/mob/living/carbon/brain/death.dm b/code/modules/mob/living/carbon/brain/death.dm index 897b03c8a14..24b900a7a2d 100644 --- a/code/modules/mob/living/carbon/brain/death.dm +++ b/code/modules/mob/living/carbon/brain/death.dm @@ -19,7 +19,7 @@ /mob/living/carbon/brain/gib() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/mob/living/carbon/brain/posibrain.dm b/code/modules/mob/living/carbon/brain/posibrain.dm index 0b080d19738..8540507d057 100644 --- a/code/modules/mob/living/carbon/brain/posibrain.dm +++ b/code/modules/mob/living/carbon/brain/posibrain.dm @@ -169,17 +169,17 @@ ..() /obj/item/device/mmi/posibrain/New() - - src.brainmob = new(src) - src.brainmob.name = "[pick(list("PBU","HIU","SINA","ARMA","OSI"))]-[rand(100, 999)]" - src.brainmob.real_name = src.brainmob.name - src.brainmob.loc = src - src.brainmob.container = src - src.brainmob.robot_talk_understand = 1 - src.brainmob.stat = 0 - src.brainmob.silent = 0 - src.brainmob.brain_op_stage = 4.0 - dead_mob_list -= src.brainmob + for(var/mob/living/carbon/brain/bmob in src) //Also going to hell for this, but this should fix the runtimes. + bmob = new /mob/living/carbon/brain(src) + bmob.name = "[pick(list("PBU","HIU","SINA","ARMA","OSI"))]-[rand(100, 999)]" + bmob.real_name = src.brainmob.name + bmob.loc = src + bmob.container = src + bmob.robot_talk_understand = 1 + bmob.stat = 0 + bmob.silent = 0 + bmob.brain_op_stage = 4.0 + dead_mob_list -= bmob ..() diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index 078af523c0f..d37cec20e60 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -1,7 +1,7 @@ /mob/living/carbon/human/gib() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -42,7 +42,7 @@ /mob/living/carbon/human/dust() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -62,7 +62,7 @@ /mob/living/carbon/human/melt() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index eb4907e1341..b3f2b7d8afc 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1400,6 +1400,8 @@ regenerate_icons() fixblood() + UpdateAppearance() + if(species) return 1 else diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 5b7f9b708b1..d7220974175 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -46,7 +46,7 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc set invisibility = 0 //set background = 1 - if (monkeyizing) return + if (notransform) return if(!loc) return // Fixing a null error that occurs when the mob isn't found in the world -- TLE ..() @@ -760,9 +760,24 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc if(A.lighting_use_dynamic) light_amount = T.lighting_lumcount else light_amount = 10 if(light_amount > species.light_dam) //if there's enough light, start dying - take_overall_damage(1,1) + if(species.light_effect_amp) + adjustFireLoss(5) //This gets doubled by Shadowling's innate fire weakness, so it ends up being 10. + else + adjustFireLoss(1) + adjustBruteLoss(1) + src << "The light burns you!" + src << 'sound/weapons/sear.ogg' else //heal in the dark - heal_overall_damage(1,1) + if(species.light_effect_amp) + adjustFireLoss(-5) + adjustBruteLoss(-5) + adjustBrainLoss(-25) //gibbering shadowlings are hilarious but also bad to have + adjustCloneLoss(-1) + SetWeakened(0) + SetStunned(0) + else + adjustFireLoss(-1) + adjustBruteLoss(-1) //The fucking FAT mutation is the greatest shit ever. It makes everyone so hot and bothered. diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index f30951a5716..124c7086897 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -471,7 +471,7 @@ proc/get_damage_icon_part(damage_state, body_part) //For legacy support. /mob/living/carbon/human/regenerate_icons() ..() - if(monkeyizing) return + if(notransform) return update_mutations(0) force_update_limbs() update_mutantrace(0) diff --git a/code/modules/mob/living/carbon/metroid/life.dm b/code/modules/mob/living/carbon/metroid/life.dm index 55b6f5c4d69..8b11c8a1b2f 100644 --- a/code/modules/mob/living/carbon/metroid/life.dm +++ b/code/modules/mob/living/carbon/metroid/life.dm @@ -9,7 +9,7 @@ set invisibility = 0 //set background = 1 - if (src.monkeyizing) + if (src.notransform) return ..() diff --git a/code/modules/mob/living/carbon/monkey/death.dm b/code/modules/mob/living/carbon/monkey/death.dm index 8e982eb9356..0c3ef632cca 100644 --- a/code/modules/mob/living/carbon/monkey/death.dm +++ b/code/modules/mob/living/carbon/monkey/death.dm @@ -1,7 +1,7 @@ /mob/living/carbon/monkey/gib() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -21,7 +21,7 @@ /mob/living/carbon/monkey/dust() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/mob/living/carbon/monkey/life.dm b/code/modules/mob/living/carbon/monkey/life.dm index 65a5f5b14e6..1a3bfc3f05a 100644 --- a/code/modules/mob/living/carbon/monkey/life.dm +++ b/code/modules/mob/living/carbon/monkey/life.dm @@ -12,7 +12,7 @@ /mob/living/carbon/monkey/Life() set invisibility = 0 //set background = 1 - if (monkeyizing) return + if (notransform) return if (update_muts) update_muts=0 domutcheck(src,null,MUTCHK_FORCED) diff --git a/code/modules/mob/living/carbon/species.dm b/code/modules/mob/living/carbon/species.dm index cc25d319842..b709f1f5b8b 100644 --- a/code/modules/mob/living/carbon/species.dm +++ b/code/modules/mob/living/carbon/species.dm @@ -41,7 +41,8 @@ var/brute_mod = null // Physical damage reduction/malus. var/burn_mod = null // Burn damage reduction/malus. - var/light_dam + var/light_dam //Light level above which species takes damage, and below which it heals. + var/light_effect_amp //If 0, takes/heals 1 burn and brute per tick. Otherwise, both healing and damage effects are amplified. var/max_hurt_damage = 9 // Max melee damage dealt + 5 if hulk var/list/default_genes = list() diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 12b35279466..86eae591aff 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1,7 +1,7 @@ /mob/living/Life() ..() - if (monkeyizing) return + if (notransform) return if(!loc) return // Fixing a null error that occurs when the mob isn't found in the world -- TLE if(mind) if(mind in ticker.mode.implanted) diff --git a/code/modules/mob/living/login.dm b/code/modules/mob/living/login.dm index 8a212e106b1..f487188ac80 100644 --- a/code/modules/mob/living/login.dm +++ b/code/modules/mob/living/login.dm @@ -32,4 +32,7 @@ if("vampire") if((ref in ticker.mode.thralls) || (mind in ticker.mode.enthralled)) ticker.mode.update_vampire_icons_added(mind) + if("shadowling") + if((mind in ticker.mode.shadowling_thralls) || (mind in ticker.mode.shadows)) + ticker.mode.update_shadow_icons_added(src.mind) return . diff --git a/code/modules/mob/living/silicon/death.dm b/code/modules/mob/living/silicon/death.dm index 45b0268437d..c8c7e41d94e 100644 --- a/code/modules/mob/living/silicon/death.dm +++ b/code/modules/mob/living/silicon/death.dm @@ -1,7 +1,7 @@ /mob/living/silicon/gib() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -22,7 +22,7 @@ /mob/living/silicon/dust() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/mob/living/silicon/mommi/life.dm b/code/modules/mob/living/silicon/mommi/life.dm index eb7aa1dd700..04ab3871af6 100644 --- a/code/modules/mob/living/silicon/mommi/life.dm +++ b/code/modules/mob/living/silicon/mommi/life.dm @@ -2,7 +2,7 @@ set invisibility = 0 set background = 1 - if (src.monkeyizing) + if (src.notransform) return diff --git a/code/modules/mob/living/silicon/robot/death.dm b/code/modules/mob/living/silicon/robot/death.dm index fef353eec6d..c73bf68f1ab 100644 --- a/code/modules/mob/living/silicon/robot/death.dm +++ b/code/modules/mob/living/silicon/robot/death.dm @@ -1,7 +1,7 @@ /mob/living/silicon/robot/gib() //robots don't die when gibbed. instead they drop their MMI'd brain var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -23,7 +23,7 @@ /mob/living/silicon/robot/dust() death(1) var/atom/movable/overlay/animation = null - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index 976708e4e1d..7f713c8a2c3 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -2,7 +2,7 @@ set invisibility = 0 //set background = 1 - if (src.monkeyizing) + if (src.notransform) return src.blinded = null diff --git a/code/modules/mob/living/simple_animal/ascendant_shadowling.dm b/code/modules/mob/living/simple_animal/ascendant_shadowling.dm new file mode 100644 index 00000000000..9445db7592c --- /dev/null +++ b/code/modules/mob/living/simple_animal/ascendant_shadowling.dm @@ -0,0 +1,33 @@ +/mob/living/simple_animal/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_emote = list("telepathically thunders", "telepathically booms") + force_threshold = INFINITY //Can't die by normal means + health = 100000 + maxHealth = 100000 + speed = 0 + var/phasing = 0 + see_in_dark = 8 + see_invisible = SEE_INVISIBLE_MINIMUM + + 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" + attack_sound = 'sound/weapons/slash.ogg' + + minbodytemp = 0 + maxbodytemp = INFINITY + environment_smash = 2 + + faction = list("faithless") + +/mob/living/simple_animal/ascendant_shadowling/Process_Spacemove(var/movement_dir = 0) + return 1 //copypasta from carp code diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 3af5be404dc..ac726058103 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1023,7 +1023,7 @@ var/list/slot_equipment_priority = list( \ if(world.time < client.move_delay) return 0 if(stat==2) return 0 if(anchored) return 0 - if(monkeyizing) return 0 + if(notransform) return 0 if(restrained()) return 0 return 1 diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm index f26d26d2470..f43759f4279 100644 --- a/code/modules/mob/mob_defines.dm +++ b/code/modules/mob/mob_defines.dm @@ -57,7 +57,7 @@ var/disabilities = 0 //Carbon var/atom/movable/pulling = null var/next_move = null - var/monkeyizing = null //Carbon + var/notransform = null //Carbon var/other = 0.0 var/hand = null var/eye_blind = null //Carbon diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 784ae01d668..a50d948dc3b 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -190,7 +190,7 @@ if(isAI(mob)) return AIMove(n,direct,mob) - if(mob.monkeyizing) return//This is sota the goto stop mobs from moving var + if(mob.notransform) return//This is sota the goto stop mobs from moving var if(isliving(mob)) var/mob/living/L = mob diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index aaee5a723f6..4c708c8e92e 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -5,14 +5,14 @@ /* /mob/living/carbon/human/proc/monkeyize() - if (monkeyizing) + if (notransform) return for(var/obj/item/W in src) if (W==w_uniform) // will be torn continue unEquip(W) regenerate_icons() - monkeyizing = 1 + notransform = 1 canmove = 0 stunned = 1 icon = null @@ -62,7 +62,7 @@ return ..() /mob/living/carbon/human/AIize(move=1) // 'move' argument needs defining here too because BYOND is dumb - if (monkeyizing) + if (notransform) return for(var/t in organs) del(t) @@ -70,11 +70,11 @@ return ..(move) /mob/living/carbon/AIize() - if (monkeyizing) + if (notransform) return for(var/obj/item/W in src) unEquip(W) - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -178,12 +178,12 @@ //human -> robot /mob/living/carbon/human/proc/Robotize() - if (monkeyizing) + if (notransform) return for(var/obj/item/W in src) unEquip(W) regenerate_icons() - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -236,12 +236,12 @@ //human -> alien /mob/living/carbon/human/proc/Alienize() - if (monkeyizing) + if (notransform) return for(var/obj/item/W in src) unEquip(W) regenerate_icons() - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -267,12 +267,12 @@ return /mob/living/carbon/human/proc/slimeize(adult as num, reproduce as num) - if (monkeyizing) + if (notransform) return for(var/obj/item/W in src) unEquip(W) regenerate_icons() - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -302,12 +302,12 @@ return /mob/living/carbon/human/proc/corgize() - if (monkeyizing) + if (notransform) return for(var/obj/item/W in src) unEquip(W) regenerate_icons() - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 @@ -332,13 +332,13 @@ usr << "\red Sorry but this mob type is currently unavailable." return - if(monkeyizing) + if(notransform) return for(var/obj/item/W in src) unEquip(W) regenerate_icons() - monkeyizing = 1 + notransform = 1 canmove = 0 icon = null invisibility = 101 diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index 430418dfaa8..a9ef5784dcc 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -108,6 +108,8 @@ if(H.species.name == "Golem") user << "\red Your metal fingers don't fit in the trigger guard!" return + if(user.dna && user.dna.species == "Shadowling") + user << "The muzzle flash would cause damage to your form!" add_fingerprint(user) diff --git a/code/modules/projectiles/projectile/change.dm b/code/modules/projectiles/projectile/change.dm index a0b96353d4e..23f44bf19da 100644 --- a/code/modules/projectiles/projectile/change.dm +++ b/code/modules/projectiles/projectile/change.dm @@ -12,8 +12,8 @@ /obj/item/projectile/change/proc/wabbajack (mob/M as mob in living_mob_list) if(istype(M, /mob/living) && M.stat != DEAD) - if(M.monkeyizing) return - M.monkeyizing = 1 + if(M.notransform) return + M.notransform = 1 M.canmove = 0 M.icon = null M.overlays.Cut() diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm index 127557cd3b5..e6fc21e672f 100644 --- a/code/modules/projectiles/projectile/magic.dm +++ b/code/modules/projectiles/projectile/magic.dm @@ -127,8 +127,8 @@ proc/wabbajack(mob/living/M) if(istype(M)) if(istype(M, /mob/living) && M.stat != DEAD) - if(M.monkeyizing) return - M.monkeyizing = 1 + if(M.notransform) return + M.notransform = 1 M.canmove = 0 M.icon = null M.overlays.Cut() diff --git a/code/modules/reagents/Chemistry-Reagents.dm b/code/modules/reagents/Chemistry-Reagents.dm index 6201723c6ec..8766271a170 100644 --- a/code/modules/reagents/Chemistry-Reagents.dm +++ b/code/modules/reagents/Chemistry-Reagents.dm @@ -393,8 +393,8 @@ datum if(!M) M = holder.my_atom if(istype(M, /mob/living/carbon) && M.stat != DEAD) M << "\red Your flesh rapidly mutates!" - if(M.monkeyizing) return - M.monkeyizing = 1 + if(M.notransform) return + M.notransform = 1 M.canmove = 0 M.icon = null M.overlays.Cut() diff --git a/code/setup.dm b/code/setup.dm index 393de3e9723..f629ab3b14f 100644 --- a/code/setup.dm +++ b/code/setup.dm @@ -739,6 +739,7 @@ var/list/TAGGERLOCATIONS = list("Disposals", #define BE_VAMPIRE 2048 #define BE_MUTINEER 4096 #define BE_BLOB 8192 +#define BE_SHADOWLING 16384 var/list/be_special_flags = list( "traitor" = BE_TRAITOR, @@ -819,7 +820,7 @@ var/list/restricted_camera_networks = list( //Those networks can only be accesse #define IS_SLOW 4 #define RAD_ABSORB 8 #define NO_SCAN 16 -#define NO_PAIN 32 +#define NO_PAIN 32 #define REQUIRE_LIGHT 64 #define IS_WHITELISTED 128 #define HAS_LIPS 512 diff --git a/code/stylesheet.dm b/code/stylesheet.dm index 7d5ba8127a0..82a6d814154 100644 --- a/code/stylesheet.dm +++ b/code/stylesheet.dm @@ -62,7 +62,6 @@ h1.alert, h2.alert {color: #000000;} .boldnotice {color: #000099; font-weight: bold;} .suicide {color: #ff5050; font-style: italic;} - .newscaster {color: #800000;} .ghostalert {color: #5c00e6; font-style: italic; font-weight: bold;} @@ -84,6 +83,7 @@ h1.alert, h2.alert {color: #000000;} .kidan {color: #664205;} .slime {color: #0077AA;} .clown {color: #ff0000;} +.shadowling {color: #311648;} .rough {font-family: "Trebuchet MS", cursive, sans-serif;} .say_quote {font-family: Georgia, Verdana, sans-serif;} .sans {font-family: "Comic Sans MS", cursive, sans-serif; font-weight: bold;} @@ -91,6 +91,11 @@ h1.alert, h2.alert {color: #000000;} .say_quote {font-family: Georgia, Verdana, sans-serif;} .interface {color: #330033;} + +.big {font-size: 3;} +.greentext {color: #00FF00; font-size: 3;} +.redtext {color: #FF0000; font-size: 3;} + BIG IMG.icon {width: 32px; height: 32px;} diff --git a/icons/mob/human_races/r_shadowling.dmi b/icons/mob/human_races/r_shadowling.dmi new file mode 100644 index 00000000000..6add64458a0 Binary files /dev/null and b/icons/mob/human_races/r_shadowling.dmi differ diff --git a/icons/mob/mob.dmi b/icons/mob/mob.dmi index 44b9b3a3043..2a003edd4f0 100644 Binary files a/icons/mob/mob.dmi and b/icons/mob/mob.dmi differ diff --git a/paradise.dme b/paradise.dme index 316731af4cd..b15100499bf 100644 --- a/paradise.dme +++ b/paradise.dme @@ -316,6 +316,10 @@ #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\shadowling.dm" +#include "code\game\gamemodes\shadowling\shadowling_abilities.dm" +#include "code\game\gamemodes\shadowling\shadowling_items.dm" +#include "code\game\gamemodes\shadowling\special_shadowling_abilities.dm" #include "code\game\gamemodes\traitor\traitor.dm" #include "code\game\gamemodes\vampire\hud.dm" #include "code\game\gamemodes\vampire\vampire.dm" @@ -1311,6 +1315,7 @@ #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"