mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
This part focuses on: -structuring the way silicon mobs initialise upon login (there was some hideous copypasta in Login() and New() which used spawn() to change the order of the calls so it was all jumbled up. I think I've got it sorted now. -Borgs var/real_name was not initialising as "Cyborg". Meaning the name checks were kind of borked. -Ghosts are now deleted at logout if they no longer have a key. This will stop unneeded ghosts being left lying around. It will not delete ghosts with keys assigned (so people can't respawn or anything). Removed all the del(ghost_ref) stuff I could find. Generally movign the key from a ghost should be the last thing you do as the ghost will be deleted by Logout. However I've put it in a spawn() to hopefully avoid coders accisentally using it in a way which causes runtimes. -Fixed clone-plants spawning dud potato-people left, right and centre. They'll now dump seeds if it fails for whatever reason. -Cultist and Rev status are removed at mob/living/silicon/Login() rather than having to be called on a special-case basis everywhere. This may not be necessary when this stuff is finished. -Removed a bunch of : -Commented mob/living/Login() with the rest of the antag-indicator code from cloning.dm and hydroponics.dm for any coders whom feel brave/suicidal to fix the related issues Next on the agenda, replacing mob/var/original_name with datum/mind/var/name to fix the ticker runtimes Then, fixing mind/proc/transfer_to(mob) once and for all. (There are issues with duplicate minds, role updates, inconsistent initialisation etc etc *yawn* There's probably a few obscure bugs in there somewhere. Might want to hold off on the updates for a bit. Coderbus will likely spot them all by the end of the week. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4322 316c924e-a436-60f5-8080-3fe189b3f50e
66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
//Nanomachines!
|
|
|
|
/datum/disease/robotic_transformation
|
|
name = "Robotic Transformation"
|
|
max_stages = 5
|
|
spread = "Syringe"
|
|
spread_type = SPECIAL
|
|
cure = "An injection of copper."
|
|
cure_id = list("copper")
|
|
cure_chance = 5
|
|
agent = "R2D2 Nanomachines"
|
|
affected_species = list("Human")
|
|
desc = "This disease, actually acute nanomachine infection, converts the victim into a cyborg."
|
|
severity = "Major"
|
|
var/gibbed = 0
|
|
|
|
/datum/disease/robotic_transformation/stage_act()
|
|
..()
|
|
switch(stage)
|
|
if(2)
|
|
if (prob(8))
|
|
affected_mob << "Your joints feel stiff."
|
|
affected_mob.take_organ_damage(1)
|
|
if (prob(9))
|
|
affected_mob << "\red Beep...boop.."
|
|
if (prob(9))
|
|
affected_mob << "\red Bop...beeep..."
|
|
if(3)
|
|
if (prob(8))
|
|
affected_mob << "\red Your joints feel very stiff."
|
|
affected_mob.take_organ_damage(1)
|
|
if (prob(8))
|
|
affected_mob.say(pick("Beep, boop", "beep, beep!", "Boop...bop"))
|
|
if (prob(10))
|
|
affected_mob << "Your skin feels loose."
|
|
affected_mob.take_organ_damage(5)
|
|
if (prob(4))
|
|
affected_mob << "\red You feel a stabbing pain in your head."
|
|
affected_mob.Paralyse(2)
|
|
if (prob(4))
|
|
affected_mob << "\red You can feel something move...inside."
|
|
if(4)
|
|
if (prob(10))
|
|
affected_mob << "\red Your skin feels very loose."
|
|
affected_mob.take_organ_damage(8)
|
|
if (prob(20))
|
|
affected_mob.say(pick("beep, beep!", "Boop bop boop beep.", "kkkiiiill mmme", "I wwwaaannntt tttoo dddiiieeee..."))
|
|
if (prob(8))
|
|
affected_mob << "\red You can feel... something...inside you."
|
|
if(5)
|
|
affected_mob <<"\red Your skin feels as if it's about to burst off..."
|
|
affected_mob.adjustToxLoss(10)
|
|
affected_mob.updatehealth()
|
|
if(prob(40)) //So everyone can feel like robot Seth Brundle
|
|
if(src.gibbed != 0) return 0
|
|
var/turf/T = find_loc(affected_mob)
|
|
gibs(T)
|
|
src.cure(0)
|
|
gibbed = 1
|
|
var/mob/living/carbon/human/H = affected_mob
|
|
if(istype(H) && !jobban_isbanned(affected_mob, "Cyborg"))
|
|
H.Robotize()
|
|
else
|
|
affected_mob.death(1)
|
|
|