mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Makes emotes case insensitive (#4386)
Also prevents unconscious emoting
This commit is contained in:
@@ -103,6 +103,8 @@ VampyrBytes
|
||||
/datum/emote/proc/prevented(var/mob/user)
|
||||
if(user.stat == DEAD)
|
||||
return "you are dead"
|
||||
if(user.stat == UNCONSCIOUS)
|
||||
return "you are unconscious"
|
||||
if(restrained && user.restrained())
|
||||
return "you are restrained"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
var/datum/emote/found = searchTree(emote)
|
||||
if(found)
|
||||
for(var/command in found.commands)
|
||||
commands[command] = found
|
||||
commands[lowertext(command)] = found
|
||||
found.addVerbs(owner)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user