mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Fixes hobo-bombing exploit
This commit is contained in:
@@ -539,10 +539,9 @@
|
||||
return
|
||||
|
||||
var/response = alert(src, "Are you -sure- you want to become a space hobo?","Are you sure you want to ramble?","Yeah!","Nope!")
|
||||
if(response != "Yeah!")
|
||||
if(response != "Yeah!" || !src.key)
|
||||
return //Hit the wrong key...again.
|
||||
|
||||
//find a viable mouse candidate
|
||||
var/mob/living/carbon/human/hobo = new(pick(hobostart))
|
||||
hobo.key = src.key
|
||||
hobo.set_species(pick(200;"Human",50;"Vox",50;"Insectoid",25;"Diona",25;"Grey",1;"Tajaran",10;"Unathi"))
|
||||
|
||||
Reference in New Issue
Block a user