mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Makes VV hallucination not shit (#27609)
* Push because I forgor to merge master * Fix * Remove this
This commit is contained in:
@@ -781,17 +781,15 @@
|
||||
if(!check_rights(R_SERVER | R_EVENT))
|
||||
return
|
||||
|
||||
var/mob/living/carbon/C = locateUID(href_list["hallucinate"])
|
||||
var/mob/living/carbon/human/C = locateUID(href_list["hallucinate"])
|
||||
if(!istype(C))
|
||||
to_chat(usr, "<span class='warning'>This can only be used on instances of type /mob/living/carbon</span>")
|
||||
to_chat(usr, "<span class='warning'>This can only be used on instances of type /mob/living/carbon/human</span>")
|
||||
return
|
||||
|
||||
var/haltype = input(usr, "Select the hallucination type:", "Hallucinate") as null|anything in subtypesof(/obj/effect/hallucination)
|
||||
var/haltype = input(usr, "Select the hallucination type:", "Hallucinate") as null|anything in (subtypesof(/obj/effect/hallucination) + subtypesof(/datum/hallucination_manager))
|
||||
if(!haltype)
|
||||
return
|
||||
C.Hallucinate(20 SECONDS)
|
||||
var/datum/status_effect/transient/hallucination/H = C.has_status_effect(STATUS_EFFECT_HALLUCINATION)
|
||||
H.hallucinate(haltype)
|
||||
C.invoke_hallucination(haltype)
|
||||
message_admins("[key_name(usr)] has given [key_name(C)] the [haltype] hallucination")
|
||||
log_admin("[key_name_admin(usr)] has given [key_name_admin(C)] the [haltype] hallucination")
|
||||
href_list["datumrefresh"] = href_list["hallucinate"]
|
||||
|
||||
Reference in New Issue
Block a user