mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 00:49:06 +01:00
Changes how clumsy checks are handled (#6299)
This pr adds the is_clumsy check, that checks if the mob has the mutation or if they are drunk enough. This fixes a bug where mobs would still have the clumsy mutation due to drinking.
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
to_chat(user,"<span class='warning'>\The [src]'s cartridge is empty!</span>")
|
||||
return
|
||||
|
||||
if (((CLUMSY in user.mutations) || (DUMB in user.mutations)) && prob(10))
|
||||
if (((user.is_clumsy()) || (DUMB in user.mutations)) && prob(10))
|
||||
to_chat(user,"<span class='danger'>Your hand slips from clumsiness!</span>")
|
||||
eyestab(M,user)
|
||||
user.visible_message("<span class='notice'>[user] accidentally sticks \the [src] in [M]'s eye!</span>","<span class='notice'>You accidentally stick the [src] in [M]'s eye!</span>")
|
||||
|
||||
Reference in New Issue
Block a user