mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] usr to user part two (#10015)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
538c8e7187
commit
a245b8687f
@@ -245,13 +245,13 @@
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
/mob/living/carbon/human/Animalize()
|
||||
/mob/living/carbon/human/Animalize(mob/user)
|
||||
|
||||
var/list/mobtypes = typesof(/mob/living/simple_mob)
|
||||
var/mobpath = tgui_input_list(usr, "Which type of mob should [src] turn into?", "Choose a type", mobtypes)
|
||||
var/mobpath = tgui_input_list(user, "Which type of mob should [src] turn into?", "Choose a type", mobtypes)
|
||||
|
||||
if(!safe_animal(mobpath))
|
||||
to_chat(usr, span_red("Sorry but this mob type is currently unavailable."))
|
||||
to_chat(user, span_red("Sorry but this mob type is currently unavailable."))
|
||||
return
|
||||
|
||||
if(transforming)
|
||||
@@ -279,13 +279,13 @@
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
/mob/proc/Animalize()
|
||||
/mob/proc/Animalize(mob/user)
|
||||
|
||||
var/list/mobtypes = typesof(/mob/living/simple_mob)
|
||||
var/mobpath = tgui_input_list(usr, "Which type of mob should [src] turn into?", "Choose a type", mobtypes)
|
||||
var/mobpath = tgui_input_list(user, "Which type of mob should [src] turn into?", "Choose a type", mobtypes)
|
||||
|
||||
if(!safe_animal(mobpath))
|
||||
to_chat(usr, span_red("Sorry but this mob type is currently unavailable."))
|
||||
to_chat(user, span_red("Sorry but this mob type is currently unavailable."))
|
||||
return
|
||||
|
||||
var/mob/new_mob = new mobpath(src.loc)
|
||||
|
||||
Reference in New Issue
Block a user