Stop AI Floating

Stops the AI floating when bolted to the ground
This commit is contained in:
SoundScopes
2014-08-17 20:06:06 +01:00
parent 241b1ff290
commit c45157928f
2 changed files with 49 additions and 2 deletions
+9
View File
@@ -725,7 +725,16 @@ var/list/ai_list = list()
user.visible_message("\blue \The [user] decides not to bolt \the [src].")
return
user.visible_message("\blue \The [user] finishes fastening down \the [src]!")
if(floating)
float(0)
anchored = 1
return
else
return ..()
/mob/living/silicon/ai/float(var/on = 0)
if(anchored)
msg_scopes("AI is bolted")
..(0)
else
..(on)