Mobs polymorphed into silicons are lawless (#23216)

🆑 coiax
add: Any silicons created by bolts of change have no laws.
add: Cyborgs are immune to polymorph while changing module.
/🆑
This commit is contained in:
coiax
2017-01-29 17:23:44 +00:00
committed by KorPhaeron
parent cd9d04e21c
commit 2ab35a05fd
2 changed files with 5 additions and 0 deletions
@@ -191,6 +191,7 @@
/obj/item/weapon/robot_module/proc/do_transform_animation()
var/mob/living/silicon/robot/R = loc
R.notransform = TRUE
var/obj/effect/overlay/temp/decoy/fading/fivesecond/ANM = new /obj/effect/overlay/temp/decoy/fading/fivesecond(R.loc, R)
ANM.layer = R.layer - 0.01
new /obj/effect/overlay/temp/small_smoke(R.loc)
@@ -210,6 +211,7 @@
if(!prev_lockcharge)
R.SetLockdown(0)
R.anchored = FALSE
R.notransform = FALSE
R.notify_ai(2)
if(R.hud_used)
R.hud_used.update_robot_modules_display()
@@ -202,6 +202,9 @@
new_mob.job = "Cyborg"
var/mob/living/silicon/robot/Robot = new_mob
Robot.mmi.transfer_identity(M) //Does not transfer key/client.
Robot.clear_inherent_laws()
Robot.clear_zeroth_law(0)
Robot.connected_ai = null
if("slime")
new_mob = new /mob/living/simple_animal/slime/random(M.loc)
if("xeno")