mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-06-09 23:43:48 +01:00
f4bf017921
* Unit Test rework & Master/Ticker update * Fixes and working unit testing * Fixes * Test fixes and FA update * Fixed runtimes * Radio subsystem * move that glob wherever later * ident * CIBUILDING compile option * Fixed runtimes * Some changes to the workflow * CI Split * More split * Pathing * Linters and Annotators * ci dir fix * Missing undef fixed * Enable grep checks * More test conversions * More split * Correct file * Removes unneeded inputs * oop * More dependency changes * More conversions * Conversion fixes * Fixes * Some assert fixes * Corrects start gate * Converted some README.dms to README.mds * Removes duplicate proc * Removes unused defines * Example configs * fix dll access viol by double calling * Post-rebase fixes * Cleans up names global list * Undef restart counter * More code/game/ cleanup * Statpanel update * Skybox * add * Fix ticker * Roundend fix * Persistence dependency update * Reordering * Reordering * Reordering * Initstage fix * . * . * Reorder * Reorder * Circle * Mobs * Air * Test fix * CI Script Fix * Configs * More ticker stuff * This is now in 'reboot world' * Restart world announcements * no glob in PreInit * to define * Update * Removed old include * Make this file normal again * moved * test * shared unit testing objects * Updates batched_spritesheets and universal_icon * . * job data debug * rm that * init order * show us * . * i wonder * . * . * urg * do we not have a job ID? * . * rm sleep for now * updated rust-g linux binaries * binaries update 2 * binaries update 3 * testing something * change that * test something * . * . * . * locavar * test * move that * . * debug * don't run this test * strack trace it * cleaner * . * . * cras again * also comment this out * return to official rust g * Update robot_icons.dm * monitor the generation * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
100 lines
2.4 KiB
Plaintext
100 lines
2.4 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(isliving(M) && M.stat != DEAD)
|
|
if(M.transforming)
|
|
return
|
|
if(M.has_brain_worms())
|
|
return //Borer stuff - RR
|
|
|
|
if(isrobot(M))
|
|
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 = INVISIBILITY_NONE
|
|
new_mob.job = 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(GLOB.first_names_male)
|
|
else if(M.gender == FEMALE)
|
|
H.gender = FEMALE
|
|
H.name = pick(GLOB.first_names_female)
|
|
else
|
|
H.gender = NEUTER
|
|
H.name = pick(GLOB.first_names_female|GLOB.first_names_male)
|
|
|
|
H.name += " [pick(GLOB.last_names)]"
|
|
H.real_name = H.name
|
|
|
|
H.set_species(randomize)
|
|
H.universal_speak = 1
|
|
|
|
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_warning("Your form morphs into that of \a [lowertext(randomize)]."))
|
|
|
|
qdel(M)
|
|
return
|
|
else
|
|
to_chat(M, span_warning("Your form morphs into that of \a [lowertext(randomize)]."))
|
|
return
|