mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-10 09:16:43 +00:00
* move phoronlock define * t * force rename * nuke unneeded things * don't do that * tgui sync? * changes * unit testing module * backend * tools update * aaah * go and stay go * path replace * move everything * toss out more stuff * remove * fine those can stay * dependencies.sh * ruin datum move + rename * level assets why did you guys put the turfs in my atmosphers folder grr * more moving * basemap, force stuff * fix that desync meme * move more stuff * move those too * repath * get rid of useless initializers * hacky patchy * reservations * alright * tgui * changelog example * checksum * md5 * errors * more * turf empty * stop * fix * bad kwarg * let's get those in again * alright * rid of that * huh * newlines * newlines * folder * mood * woops * readme * might as well trim now * let's go * fuck it tether isn't being used anyways lol * ok * empty files go * tether is demoted * sorry but this goes too * okay * make that work too * ok * wow. * whew * Fix * fixes * ok * sigh * fix * fix * aah. * rust_g logging * update rust g file * fix * funny * Fix * map issues * fix * initialize hints * solves some problems * those too * ok * pills * let's do that. * hit that too * runtime * add that too * alright * fix * fix * fix * Fix * add * fix * wildwest, what have they done to you... * do that too' git push * fixes * fixes * fixes * pack this tightly * let's not have empty files * sigh * fix * FUCK OFF * fix icon * rip old mapmerge * zz * woo yeah woo yeah * logging * fix * better logs * GRRRRRR * last commit?? * awful
102 lines
2.5 KiB
Plaintext
102 lines
2.5 KiB
Plaintext
/obj/item/projectile/change
|
|
name = "bolt of change"
|
|
icon_state = "ice_1"
|
|
damage = 0
|
|
damage_type = BURN
|
|
nodamage = 1
|
|
check_armour = "energy"
|
|
|
|
combustion = FALSE
|
|
|
|
/obj/item/projectile/change/on_hit(var/atom/change)
|
|
wabbajack(change)
|
|
|
|
/obj/item/projectile/change/proc/wabbajack(var/mob/M)
|
|
if(istype(M, /mob/living) && M.stat != DEAD)
|
|
if(M.transforming)
|
|
return
|
|
if(M.has_brain_worms())
|
|
return //Borer stuff - RR
|
|
|
|
if(istype(M, /mob/living/silicon/robot))
|
|
var/mob/living/silicon/robot/Robot = M
|
|
if(Robot.mmi)
|
|
qdel(Robot.mmi)
|
|
else
|
|
for(var/obj/item/W in M)
|
|
if(istype(W, /obj/item/implant)) //TODO: Carn. give implants a dropped() or something
|
|
qdel(W)
|
|
continue
|
|
M.drop_from_inventory(W)
|
|
|
|
var/mob/living/new_mob
|
|
|
|
var/options = list("robot", "slime")
|
|
for(var/t in GLOB.all_species)
|
|
options += t
|
|
if(ishuman(M))
|
|
var/mob/living/carbon/human/H = M
|
|
if(H.species)
|
|
options -= H.species.name
|
|
else if(isrobot(M))
|
|
options -= "robot"
|
|
else if(isslime(M))
|
|
options -= "slime"
|
|
|
|
var/randomize = pick(options)
|
|
switch(randomize)
|
|
if("robot")
|
|
new_mob = new /mob/living/silicon/robot(M.loc)
|
|
new_mob.gender = M.gender
|
|
new_mob.invisibility = 0
|
|
new_mob.job = "Cyborg"
|
|
var/mob/living/silicon/robot/Robot = new_mob
|
|
Robot.mmi = new /obj/item/mmi(new_mob)
|
|
Robot.mmi.transfer_identity(M) //Does not transfer key/client.
|
|
if("slime")
|
|
new_mob = new /mob/living/simple_mob/slime/xenobio(M.loc)
|
|
new_mob.universal_speak = 1
|
|
else
|
|
var/mob/living/carbon/human/H
|
|
if(ishuman(M))
|
|
H = M
|
|
else
|
|
new_mob = new /mob/living/carbon/human(M.loc)
|
|
H = new_mob
|
|
|
|
if(M.gender == MALE)
|
|
H.gender = MALE
|
|
H.name = pick(first_names_male)
|
|
else if(M.gender == FEMALE)
|
|
H.gender = FEMALE
|
|
H.name = pick(first_names_female)
|
|
else
|
|
H.gender = NEUTER
|
|
H.name = pick(first_names_female|first_names_male)
|
|
|
|
H.name += " [pick(last_names)]"
|
|
H.real_name = H.name
|
|
|
|
H.set_species(randomize)
|
|
H.universal_speak = 1
|
|
var/datum/preferences/A = new() //Randomize appearance for the human
|
|
A.randomize_appearance_and_body_for(H)
|
|
|
|
if(new_mob)
|
|
for (var/spell/S in M.spell_list)
|
|
new_mob.add_spell(new S.type)
|
|
|
|
new_mob.a_intent = "hurt"
|
|
if(M.mind)
|
|
M.mind.transfer_to(new_mob)
|
|
else
|
|
new_mob.key = M.key
|
|
|
|
to_chat(new_mob, "<span class='warning'>Your form morphs into that of \a [lowertext(randomize)].</span>")
|
|
|
|
qdel(M)
|
|
return
|
|
else
|
|
to_chat(M, "<span class='warning'>Your form morphs into that of \a [lowertext(randomize)].</span>")
|
|
return
|