mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-15 20:52:07 +00:00
Unifying MMI creation on robot subtypes.
This commit is contained in:
@@ -46,12 +46,11 @@
|
||||
var/randomize = pick(options)
|
||||
switch(randomize)
|
||||
if("robot")
|
||||
new_mob = new /mob/living/silicon/robot(M.loc)
|
||||
new_mob = new /mob/living/silicon/robot(M.loc, FALSE, new /obj/item/mmi)
|
||||
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)
|
||||
@@ -98,4 +97,4 @@
|
||||
return
|
||||
else
|
||||
to_chat(M, "<span class='warning'>Your form morphs into that of \a [lowertext(randomize)].</span>")
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user