mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Animalize tgui (#25455)
This commit is contained in:
@@ -203,7 +203,10 @@
|
||||
/mob/living/carbon/human/Animalize()
|
||||
|
||||
var/list/mobtypes = typesof(/mob/living/simple_animal)
|
||||
var/mobpath = input("Which type of mob should [src] turn into?", "Choose a type") in mobtypes
|
||||
var/mobpath = tgui_input_list(usr, "Which type of mob should [src] turn into?", "Choose a Type", mobtypes)
|
||||
|
||||
if(!mobpath)
|
||||
return
|
||||
|
||||
if(notransform)
|
||||
return
|
||||
@@ -222,8 +225,6 @@
|
||||
|
||||
new_mob.key = key
|
||||
new_mob.a_intent = INTENT_HARM
|
||||
|
||||
|
||||
to_chat(new_mob, "You suddenly feel more... animalistic.")
|
||||
new_mob.update_pipe_vision()
|
||||
qdel(src)
|
||||
@@ -231,7 +232,10 @@
|
||||
/mob/proc/Animalize()
|
||||
|
||||
var/list/mobtypes = typesof(/mob/living/simple_animal)
|
||||
var/mobpath = input("Which type of mob should [src] turn into?", "Choose a type") in mobtypes
|
||||
var/mobpath = tgui_input_list(usr, "Which type of mob should [src] turn into?", "Choose a Type", mobtypes)
|
||||
|
||||
if(!mobpath)
|
||||
return
|
||||
|
||||
var/mob/new_mob = new mobpath(src.loc)
|
||||
|
||||
@@ -239,7 +243,6 @@
|
||||
new_mob.a_intent = INTENT_HARM
|
||||
to_chat(new_mob, "You feel more... animalistic")
|
||||
new_mob.update_pipe_vision()
|
||||
|
||||
qdel(src)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user